Hello, I’m trying to create a dropper minigame. I want to slow down a player’s fall when they touch the script parent. This script works, but players can’t move while falling. Any advice would be helpful!
Thank you!
local part = script.Parent
part.Touched:Connect(function(otherpart)
local hrp = otherpart.Parent:FindFirstChild("HumanoidRootPart")
local bodyvelocity = hrp and hrp:FindFirstChildWhichIsA("BodyVelocity")
if hrp and not bodyvelocity then
local InstanceVelocity = Instance.new("BodyVelocity")
InstanceVelocity.Velocity = Vector3.new(0, -25, 0)
InstanceVelocity.MaxForce = Vector3.new(10000, 10000, 10000)
InstanceVelocity.P = 5000
InstanceVelocity.Parent = hrp
end
end)