-
What do you want to achieve?
For my gliding/hoverboard system: i want the hoverboard to dash forward when the player hits the spacebar. im currently doing this using a Vectorforce which is applied from the hoverboard. -
What is the issue?
in the script, the force is being changed when hitting the spacebar but in game nothing seems to happen. -
What solutions have you tried so far?
playing around with the force properties
serverscript inside of the hoverboard:
game.ReplicatedStorage.Dash.OnServerEvent:Connect(function(plr)
if script.Parent.Parent == plr.ValFolder.CurrentGlider.Value then
script.Parent.Attachmentt.ForwardForce.Force = plr.Character.PrimaryPart.CFrame.LookVector * 1000
print("Dash")
task.wait(1)
script.Parent.Attachmentt.ForwardForce.Force = Vector3.new(0,0,0)
end
end)
--keeping the hoverboard in the air:
while true do
script.Parent.Attachmentt.LinearVelocity.LineVelocity = -10
task.wait(0.25)
end