Roblox touch to bounce1/27/2024 You could use animations for this, because you can make a part where the player stumbles over and 3 other keyframes for when they will bounce. If you want to bounce a player back, you can use a BodyMover (specifically a BodyVelocity, or BodyForce): local dir = (yourHRP.Position - penguinTorso.Position).UnitīodyVelocity.Velocity = dir * speed_Number - if you're using bodyvelocityīodyForce.Force = dir * high_number - if you're using bodyforces CFrames are pretty much complicated, but if you are good at math, this wouldn’t be much of a problem. Possible Error There is a possibility that TweenService won’t let you weld any part to a tweening part (Primary_Part), if that occurs I recommend you using to create a Bouncing Path by yourself. When Primary_Part reaches the Max_Distance, players HumanoidRootPart will be unwelded (destroyed) and player will start falling down. Primary_part should be spawned at the place where player touched the Main_Part. Once player touches the Main_Part, players HumanoidRootPart will be welded to a Primary_Part. Max_Distance would be a maximum distance of the Primary_Part. Bouncing path will lead to a Max_Distance. Primary_Part will be a part that will create a Bouncing Path. Then add another part called Primary_Part. Main_Part would be a simple part that player is going to touch and bounce from it. I can’t give you an exact code, but I can give you an idea how to do it.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |