Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. TextButton.MouseButton1Click:Connect(function()
  2. local me = game.Players.LocalPlayer.Character
  3.  
  4. local targetplayer = game.Workspace.str(GetPlayer(TextBox.Text)).HumanoidRootPart
  5.  
  6. me.HumanoidRootPart.CFrame = CFrame.new(targetplayer.Position.X, targetplayer.Position.Y, targetplayer.Position.Z)
  7. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement