Im making a script where the player use a parachute using LinearVelocity but i dont know how to manage the LinearVelocity to make the player go straight to his look direction
Here is what i tried to do without succes
Velocity.VectorVelocity = Vector3.new(0, 0, 50) * Hrp.CFrame.LookVector Velocity.MaxAxesForce = Vector3.new(0, 0, 500) * Hrp.CFrame.LookVector
I am getting this message in the ouput
22:13:17.192 value of type Vector3 cannot be converted to a number - Client - ParachutteKey:62
RipGobtain
(CreateTimeExplore)
May 30, 2024, 8:16pm
#4
Oh yes, sorry. Just set velocity.maxforce to 500.
Velocity.MaxForce = 500
It stills do not works and there is nothing sent to the output
RipGobtain
(CreateTimeExplore)
May 30, 2024, 8:23pm
#6
Can you send me your parachute script?
First of all the player get sent up and then he is supposed to go where he is looking at
UIS.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.E or input.KeyCode == Enum.KeyCode.ButtonX then
if player.leaderstats.Folder.PushVAL.Value == 2 then
if cooldown == true then
cooldown = false
local Velocity = Instance.new("LinearVelocity", Hrp)
local Attachement = Instance.new("Attachment", Hrp)
Velocity.Attachment0 = Attachement
Velocity.Enabled = true
Velocity.VectorVelocity = Vector3.new(0, 30, 0)
Velocity.MaxAxesForce = Vector3.new(0, 1000, 0)
Velocity.ForceLimitMode = "PerAxis"
hum.WalkSpeed = 0
remote:FireServer()
abilityGUI.Parent.BackgroundColor = BrickColor.new("Grey")
wait(1)
Velocity.VectorVelocity = Hrp.CFrame.LookVector * 50
Velocity.MaxForce = 500
hum.WalkSpeed = 30
game.Workspace.Gravity = 30
end
end
end
end)
RipGobtain
(CreateTimeExplore)
May 30, 2024, 8:28pm
#8
It’s because of the MaxAxesForce.
Well, you was right i confused MaxAxesForce with MaxoForce
It works now, thank you !
1 Like
system
(system)
Closed
June 13, 2024, 8:31pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.