function clikk() game.Player.LocalPlayer.Character.Torso.CFrame = CFrame.new(1, 10, 10) end script.Parent.ClickDetector.MouseClick:connect(clikk)
It won't teleport the player who clicked the part or brick. I only WANT to teleport the player who clicked it, NOT all the players in the server
this has to be in a Server Script, not a local script
function clikk(hit) local player = game.Workspace:FindFirstChild(hit.Name) -- the player's model who clicked player.Torso.CFrame = CFrame.new(1, 10, 10) end script.Parent.ClickDetector.MouseClick:connect(clikk)