Part only TPs once, want it to happen all the time

I have a part on the bottom of my map to bring any players / parts that fall off back to a position, yet if the part falls off, it can only fall off three or four times before just falling for eternity but the player works fine.

ServerScript inside Part

script.Parent.Touched:Connect(function(base)
	if base.Parent:FindFirstChild("Humanoid") then
		local humanoid = base.Parent:FindFirstChild("Humanoid")
		local character = humanoid.Parent
		
		character.HumanoidRootPart.Position = Vector3.new(-35.5, 6, -20)
	elseif base.Name == "Ball" then
		base.CFrame = CFrame.new(-32, 7.5, -21)
	end
end)

If the part is falling off then it’s not Anchored, try anchoring it

The part is supposed to be unachored, its a ball for players to mess around with in the lobby.
image

So what does the ball do? Is the ball the part with the script or not?

No its just a ball, the script is inside the part under the map

I think I know what the problem is, in thsi line:


if base.Parent:FindFirstChild("Humanoid") then

You are looking for the humanoid, but if there ain’t one it’s not gonna fire, try doing this:


if base.Parent:FindFirstChild("Humanoid") or base.Name == “theNameOfTheBall” then

Thats for if a player falls, the part for the ball is under that

	elseif base.Name == "Ball" then
		base.CFrame = CFrame.new(-32, 7.5, -21)
	end
Character:MoveTo(Vector3.new(-35.5, 6, -20))

Ok, also I’ve seen a thing, you define a variable for the humanoid, but you never use it, it’s pretty useless, unless there’s another part of the script taht uses that

You could anchor it, TP it, then unanchor it.

Thats not the issue, that part works perfectly fine. Its below it for the ball…

That’s gonna move the HumanoidRootPart, he needs to teleport it

I don’t think you understand setting Positions of Models

MoveTo will move the Character to a set position, its basically PivotTo but with Vector3 instead of CFrame

Yea, but he doesn’t need to move the HumanoidRootPart, but to teleport it, and also the problem is in the end of the script

Wait, you used Vector3 For the player, try using it too for the Ball, maybe it’s gonna work? Not sure tho

You still arent understanding what It does, but he said it isnt the issue, PM if you have more to say

This has nothing to do with the humanoid root part, that part works perfectly fine, its the ball im trying to move which works, but only so many times and then it breaks

Can you show a Video of this? An Image isnt going to help

when moving parts you use [CFrame]

sure
sorry took so long, had to compress file from 19mb

ball starts to fall forever at 0:21