I have a script here that lets a user perform a stunt. When they play the trick, if they’re on edge, they can float forward until the stunt ends. What I want is for the user to fall like normal gravity if they’re on a rim.
My script:
elseif key.KeyCode == Enum.KeyCode.E then
if candash2 and force >= 30 then
candash2 = false
force = force - 30
updateStamina()
local v = Instance.new('BodyVelocity')
v.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
v.Velocity = char.HumanoidRootPart.CFrame.lookVector * Vector3.new(50,50,50)
v.Parent = char.Torso
wdash:Play()
debris:AddItem(v,1)
wait(1.5)
candash2 = true
wait(0.6)
end
What are my options? Examples appreciated!