This is my first topic on the Developer Forum.
I’m currently creating my game, an Obby, with a time system, etc… I want to warn you that I’m still a novice in programming and that I’m trying to learn, I think with some basics, but they are consolidated.
For the traps, I thought about a fan that pushes the players, after several researches I found a solution, but I can’t understand very well how it works, “BodyVelocity”. I found the one thanks to (Pushing fan player) and (How to Use BodyVelocity).
So I started to find out more about BodyVelocity and I understood something about it.
Here’s my code:
local BodyVelocity = Instance.new("BodyVelocity") BodyVelocity.Velocity = Vector3.new(-1,0,0) BodyVelocity.P = math.huge BodyVelocity.MaxForce = Vector3.new(math.huge,0,0) BodyVelocity.Parent = part.Parent.HumanoidRootPart wait(2.5) BodyVelocity:Destroy()
On this page one of them, @fego2015, has a system that I would be interested in, so I’m asking you, if you can make me a script that would do the same thing as @fego2015, and if possible also, if you could explain to me what the three following properties of “BodyVelocity” correspond to:
I think I understood Velocity, that to prohibit or not, the movement on the axis, but I don’t know more.
So I would like my fan to push the player in one direction, and that the player can always move forward, backward, “counter” this force.
Thanks for all.