The marble moves, but doesn't jump

  1. What do you want to achieve? i already have this marble with the player inside. but it only “walks”, i want it to jump, too

  2. What is the issue? I don’t know how to do it

  3. What solutions have you tried so far? i looked around in the forum but couldn’t find the answer :frowning:

this is my server script. i hope somebody can answer, thank you ^^

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
		local HRP = char:WaitForChild("HumanoidRootPart")
		local bowl = game.ReplicatedStorage.Bowl
		local marble = bowl:Clone()
		marble.Parent = char
		local Velocity = Instance.new("BodyAngularVelocity")
		Velocity.Parent = marble
		local Hum = char:WaitForChild("Humanoid")
		local Weld = Instance.new("Weld")
		Weld.Parent = marble
		Weld.Part0 = HRP
		Weld.Part1 = marble
		Hum.PlatformStand = true
		
		while true do
			wait()
			marble.BodyAngularVelocity.AngularVelocity = Vector3.new(char.Humanoid.MoveDirection.z * 8,0,char.Humanoid.MoveDirection.x * -8)
			marble.BodyAngularVelocity.MaxTorque = Vector3.new(10000,10000,10000)
			if char.Humanoid.MoveDirection == Vector3.new(0,0,0) then
				marble.BodyAngularVelocity.MaxTorque = Vector3.new(0,0,0)
			end
		end
	end)
end)
1 Like

you want it like in the game Marble Mania?

robloxapp-20221228-2310589.wmv

yes this is on my alt account because i have a private server on that account

1 Like

sorry, the file isn’t compatible, anyways yeah, like marble mania

i checked and it did not jump, here is the video

I don’t really understand your code, but I can tell you that you can make the marble jump by adding a function that runs when the jump key is pressed.
marble.BodyVelocity.Velocity = Vector3.new(0,200,0)