-
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
-
What is the issue? I don’t know how to do it
-
What solutions have you tried so far? i looked around in the forum but couldn’t find the answer
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)