I made this to my game and its working:
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local Character = game.Workspace:WaitForChild(player.Name)
Character.HumanoidRootPart.CFrame =(Here put the part and then .CFrame)
end)
I made this to my game and its working:
script.Parent.ClickDetector.MouseClick:Connect(function(player)
local Character = game.Workspace:WaitForChild(player.Name)
Character.HumanoidRootPart.CFrame =(Here put the part and then .CFrame)
end)