How do i give my marble physics?

Well, what I want to achieve is for the player (the ball) to be able to roll and, you know, have physics. At the moment, it doesn’t have any. I have disabled the default Roblox controls because I want to rewrite them entirely.

The issues are clear: The ball appears anchored without actually being anchored. It just lacks the expected physics. I’ve tried asking friends, searching the dev forum, and AI, but nothing has worked so far. The ball remains immobilized.

If you have a solution, please let me know. I can provide screenshots and videos if needed.

My current code:

local Char = script.Parent

local Ball = game.ReplicatedStorage:WaitForChild("Ball"):Clone()

local Weld = Instance.new("WeldConstraint")

Weld.Parent = Ball

Weld.Part0 = Ball

Weld.Part1 = Char:WaitForChild("HumanoidRootPart")

Ball.Position = Char.PrimaryPart.Position + Vector3.new(0, 0, 0)

Ball.Parent = Char


local humanoid = Char:WaitForChild("Humanoid")

humanoid.Sit = true


if Char then
	for _, part in pairs(Char:GetDescendants()) do
		if part:IsA("MeshPart") then
			part.Transparency = 1
		end
	end
end

thank you.

I recommend you look at this post, and the contents of it, it should help you.

Okay, i will look into it thanks for sharing

Their whole system is deprecated and is no long working, do u have another solution?