I know how to teleport a person and there are many scripts that do that, but I'm trying to teleport a ball when it touches an object named ground it will teleport me back to a certain position.
ball = balllocationhere ballname = "NameOfBallHere" --Change this to the name of the ball, make sure the name is unique. script.Parent.Touched:connect(function(hit) if hit.Name == ballname then --Figure out the rest of the code from here end)
I went ahead and threw down some beginning code for you. I don't know exactly what it is you're trying to do, so you'll have to figure out the rest, which should be pretty simple.
Part.CFrame=CFrame.new()
For both the player and ball you can use this.