Advertisement
yayicoded

Arsenal Click Tp

Mar 31st, 2020
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.17 KB | None | 0 0
  1. -- Once again I didn't touch this script credit goes to elite_doge and u basically hold e and ur good to teleport I found this script off of a guest https://pastebin.com/Z2s0T5wM that was where I found it and it was made by elite_doge check them out
  2.  
  3. -- developed by elite_doge, not me
  4.  
  5. local enableKey = "e" -- what key you need to press to teleport
  6.  
  7. ------------------------------------
  8. -- getting needed locals
  9. local p = game.Players.LocalPlayer
  10. local mouse = p:GetMouse()
  11. local char = p.Character
  12. -- creating gui creation functions
  13. function setProperties(gui,t)
  14.     gui.BackgroundColor3 = Color3.new(0,0,0)
  15.     gui.BackgroundTransparency = t
  16.     gui.BorderSizePixel = 0
  17. end
  18.  
  19. function setText(gui,te)
  20.     gui.TextStrokeTransparency = 0
  21.     gui.TextStrokeColor3 = Color3.new(255,255,255)
  22.     gui.TextColor3 = Color3.new(0,0,0)
  23.     gui.Text = te
  24.     gui.TextScaled = true
  25.     gui.TextXAlignment = Enum.TextXAlignment.Center
  26. end
  27. --- creating gui
  28. local gui = Instance.new("ScreenGui",p.PlayerGui)
  29. gui.Name = "TeleportationInfo"
  30. local f = Instance.new("Frame",gui)
  31. f.Size = UDim2.new(0.2,0,0.4,0)
  32. f.Position = UDim2.new(1,0,0.3,0)
  33. setProperties(f,0.5)
  34. local open = Instance.new("TextButton",gui)
  35. open.Name = "Open"
  36. setProperties(open,0.5)
  37. setText(open,"Tele Help")
  38. open.Size = UDim2.new(0.1,0,0.05,0)
  39. open.Position = UDim2.new(1 - open.Size.X.Scale,0,0.5,0)
  40. local text = Instance.new("TextLabel",f)
  41. text.Name = "Text"
  42. setProperties(text,1)
  43. text.Size = UDim2.new(1,0,0.8,0)
  44. setText(text,"Hold 'e' and click where you want to teleport. Click on this gui to close.")
  45. local name = "elite_doge"
  46. local text2  = text:Clone()
  47. text2.Parent = text.Parent
  48. text2.Size = UDim2.new(1,0,0.2,0)
  49. text2.Position = UDim2.new(0,0,0.8,0)
  50. text2.Name = "Creator"
  51. local isOpen = false
  52. local close = Instance.new("TextButton",f)
  53. close.Name = "Close"
  54. text2.Text = "Developed by " .. name.. ", 1/11/2015"
  55. setProperties(close,1)
  56. close.Visible = false
  57. close.Text = ""
  58. close.Size = UDim2.new(1,0,1,0)
  59. -- creating gui functions
  60. close.MouseButton1Down:connect(function()
  61.     if isOpen == true then
  62.         f:TweenPosition(UDim2.new(1,0,0.3,0),"InOut","Quad",1,true)
  63.         open:TweenPosition(UDim2.new(1 - open.Size.X.Scale,0,0.5,0),"InOut","Quad",1,true)
  64.         isOpen = false
  65.         close.Visible = false
  66.     else
  67.         close.Visible = false
  68.         open:TweenPosition(UDim2.new(1,0,0.5,0),"InOut","Quad",1,true)
  69.     end
  70. end)
  71.  
  72. open.MouseButton1Down:connect(function()
  73.     if isOpen == false then
  74.         isOpen = true
  75.         f:TweenPosition(UDim2.new(1 - f.Size.X.Scale,0,0.3,0),"InOut","Quad",1,true)
  76.         open:TweenPosition(UDim2.new(1,0,0.5,0),"InOut","Quad",1,true)
  77.         close.Visible = true
  78.     end
  79. end)
  80. -- click and keydown functions
  81. local enabled = false
  82.  
  83. mouse.KeyDown:connect(function(key)
  84.     key = key:lower()
  85.     if key == "e" then
  86.         enabled = true
  87.     end
  88. end)
  89.  
  90. mouse.KeyUp:connect(function(key)
  91.     key = key:lower()
  92.     if key == "e" then
  93.         enabled = false
  94.     end
  95. end)
  96.  
  97. mouse.Button1Down:connect(function()
  98.     if char and enabled == true then
  99.         char.HumanoidRootPart.CFrame = mouse.Hit + Vector3.new(0,7,0)
  100.     end
  101. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement