Hi!!
So I tried to do body velocity with jump pads and when the player jumps on a tilted jump pad it will fling them in a direction but if you flip the direction of the pad it will still fling them in the same direction.
Video of what I mean: roblox body velocity issue - YouTube
here is the script for the jump pad
local jump = script.Parent
local function particles()
jump.ParticleEmitter.Enabled = true
wait(.25)
jump.ParticleEmitter.Enabled = false
end
local function jump_pad(otherPart)
local hrp = otherPart.Parent:FindFirstChild('HumanoidRootPart')
local bodyVel = hrp:FindFirstChildWhichIsA('BodyVelocity')
if hrp and not bodyVel then
local newVel = Instance.new('BodyVelocity')
newVel.Velocity = Vector3.new(100,jump.JumpForce.Value,0)
newVel.MaxForce = Vector3.new(10000,10000,10000)
newVel.P = 5000
newVel.Parent = hrp
particles()
wait(jump.JumpTime.Value)
newVel:Destroy()
end
end
jump.Touched:Connect(jump_pad)
What should I do to fix this?
Also JumpForce = 75 and JumpTime = 0.
Thanks!