Hello! I am trying to make the player fall slower after touching a part, I tried this with using BodyVelocity but I don’t notice a change in the falling speed, here is the script:
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
if not hit.Parent:FindFirstChild("Fall") and not hit.Parent:FindFirstChild("Gravity") then
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://6404521916"
animation.Name = "Fall"
animation.Parent = hit.Parent
local track = hit.Parent.Humanoid:LoadAnimation(animation)
track:Play()
local gravity = Instance.new("BodyVelocity")
gravity.Name = "Gravity"
gravity.P = 10000
gravity.MaxForce = Vector3.new(0,100000,0)
gravity.Parent = hit.Parent
end
end
end)
The Fall animation is made to show load an animation of the player falling on the character, and Gravity isn’t doing anything, this script is inside of the part that the player touches. Could anyone help?
Thanks for reading!