function AttachBall(part,ball)
local Attacher = Instance.new("WeldConstraint",part)
Attacher.Part0 = part
Attacher.Part1 = ball
end
local Character = script.Parent
local RootPart = Character:WaitForChild("UpperTorso") or Character:WaitForChild("Torso")
local Ball = Instance.new("Part",Character)
Ball.Shape = Enum.PartType.Ball
Ball.Size = Vector3.new(8,8,8)
Ball.CFrame = RootPart.CFrame
AttachBall(RootPart,Ball)
Ball.Anchored = false
Character.PrimaryPart = RootPart
Character:WaitForChild("HumanoidRootPart"):Destroy()
it wont roll when the person controls pls help

2 comments
but this is a character script
please explain what you're trying to do