Advertisement
Guest User

Simple Tp Script

a guest
Jun 25th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local char = plr.Character
  3. local mouse = plr:GetMouse()
  4. local switch = false
  5.  
  6. game:GetService("UserInputService").InputBegan:Connect(function(k,b)
  7. local key = k.KeyCode
  8. if b == true then
  9. if key == Enum.KeyCode.Q then
  10. if switch == false then
  11. switch = true
  12. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  13. Text = "[system]: " .. "tp on";
  14. Font = Enum.Font.Cartoon;
  15. Color = Color3.new(0,0,0);
  16. FontSize = Enum.FontSize.Size96;
  17. })
  18. elseif switch == true then
  19. switch = false
  20. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  21. Text = "[system]: " .. "tp off";
  22. Font = Enum.Font.Cartoon;
  23. Color = Color3.new(0,0,0);
  24. FontSize = Enum.FontSize.Size96;
  25. })
  26. end
  27. end
  28. end
  29. end)
  30.  
  31. mouse.Button1Down:Connect(function()
  32. if switch == true then
  33. char:MoveTo(mouse.Hit.p)
  34. end
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement