BodyForces not working

I made the remote event.

This is the UIS script

game.Workspace.DevSnowboard:WaitForChild("MovementControl")
local UserInputService = game:GetService('UserInputService')
local MovementControl = game.Workspace.DevSnowboard.MovementControl
local BodyForceController = game.Workspace.DevSnowboard.BodyForceController

if MovementControl.Transparency == 0 then
UserInputService.InputBegan:Connect(function(input,gameProccesedEvent)
		if input.KeyCode == Enum.KeyCode.W then
		print"Pressed w"
			game.ReplicatedStorage.Movement:FireServer()
			end
		end)
	end

And this is the RemoteEvent script

game.Workspace.DevSnowboard.Front:WaitForChild("BodyForce")
game.Workspace.DevSnowboard:WaitForChild("BodyForceController")
game.Workspace.DevSnowboard:WaitForChild("MovementControl")

local BodyForce = game.Workspace.DevSnowboard.Front.BodyForce
--local BodyForceController = game.Workspace.DevSnowboard.BodyForceController

game.ReplicatedStorage.Movement.OnServerEvent:Connect(function()
			print("Updating body force")
			BodyForce.Force = BodyForce.Force*Vector3.new(10,0,0)
end)

Now I don’t even get the message “Pressed w”

you dont need if MovementControl.Tansparency == 0 then

Hmm… It works but the only downfall is the snowboard isnt moving
image

use body velocity dont use bodyforce

I’m just curious why? what’s the difference

body force uses force which needs to be more than the mass of the whole thing but velocity doesnt care about mass

My board is just floating now lol image

how can that be did you put the bodyvelocity y value

This is my script

game.Workspace.DevSnowboard.Front:WaitForChild("BodyVelocity")
game.Workspace.DevSnowboard:WaitForChild("BodyForceController")
game.Workspace.DevSnowboard:WaitForChild("MovementControl")

local BodyVelocity = game.Workspace.DevSnowboard.Front.BodyVelocity
--local BodyForceController = game.Workspace.DevSnowboard.BodyForceController

game.ReplicatedStorage.Movement.OnServerEvent:Connect(function()
			print("Updating bodyVelocity")
			BodyVelocity.Velocity = BodyVelocity.Velocity*Vector3.new(10,0,0)
end)

game.Workspace.DevSnowboard.Front:WaitForChild("BodyVelocity")
game.Workspace.DevSnowboard:WaitForChild("BodyForceController")
game.Workspace.DevSnowboard:WaitForChild("MovementControl")

local BodyVelocity = game.Workspace.DevSnowboard.Front.BodyVelocity
local BodyForceController = game.Workspace.DevSnowboard.BodyForceController

game.ReplicatedStorage.Movement.OnServerEvent:Connect(function()
			print("Updating bodyVelocity")
			BodyVelocity.Velocity=Vector3.new(10,0,0)
end)
1 Like

Works almost perfectly the board moves forward but is still floating
would BodyVelocity.MaxForce fix that?

make a body force that pushes the board down

edit:so

bodyforce.Force=Vector3.new(0,10,0)
bodyforce.MaxForce=10000

edit2:make the 10 value to be higher if its still floating and make it negative value

image

oh i just realised there isnt anything like maxforce for BodyForce just remove that line

try this

while true do
wait()
bodyforce.Force=Vector3.new(0,-1000,0)
end

Still floating but even higher

yes make the value negative number forgot to mention that :sweat_smile:

It’s already negative

local BodyForce = script.Parent
while true do
	wait()
BodyForce.Force=Vector3.new(0,-1000,0)
end

show me the explorer
(30…-_-)

This is the explorer when I’m in game
image

then use bodyThrust im not sure whats different between bodyforce and thrust but i made a jetpack model and bodyforce didnt work and i use body thrust try using it and make the bodythrust.Force=Vector3.new(0,-5000,0)