Hello There!
I want to make it so that the ball that is connected to the player using Motor6D always touches the ground.
I am not sure if this is what Motor6D is used for, but I found articles that this is how objects should be connected to the player.
I tried looking for articles about this and trying to do something about it but I couldn’t find anything like this so please help!
Here is Script:
RunService.RenderStepped:Connect(function()
if Player.Character then
if Player.Character:FindFirstChild("HumanoidRootPart") then
if not Player.Character.HumanoidRootPart:FindFirstChild("Ball") then
local PlayerBall = Balls.Ball:Clone()
PlayerBall.Parent = Player.Character.HumanoidRootPart
local Motor6D = Instance.new("Motor6D")
Motor6D.Parent = Player.Character.HumanoidRootPart
Motor6D.Part0 = Player.Character.HumanoidRootPart
Motor6D.Part1 = PlayerBall
else
Player.Character.HumanoidRootPart.Motor6D.C0 = CFrame.new(0, 0, -4)
end
end
end
end)
Thanks for any help!