Advertisement
LuisKey

JailTrail

Apr 22nd, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. -- Objects
  2.  
  3. local JailTrial = Instance.new("ScreenGui")
  4. local Main = Instance.new("Frame")
  5. local Walk = Instance.new("TextButton")
  6. local InfAm = Instance.new("TextButton")
  7. local InfNit = Instance.new("TextButton")
  8. local Table = Instance.new("Frame")
  9. local Name = Instance.new("TextLabel")
  10.  
  11. -- Properties
  12.  
  13. JailTrial.Name = "JailTrial"
  14. JailTrial.Parent = game.CoreGui
  15.  
  16. Main.Name = "Main"
  17. Main.Parent = JailTrial
  18. Main.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.12549)
  19. Main.BorderSizePixel = 0
  20. Main.Position = UDim2.new(0.152094066, 0, 0.359467447, 0)
  21. Main.Size = UDim2.new(0, 633, 0, 370)
  22.  
  23. Walk.Name = "Walk"
  24. Walk.Parent = Main
  25. Walk.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  26. Walk.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  27. Walk.BorderSizePixel = 3
  28. Walk.Position = UDim2.new(0.687203765, 0, 0.189189196, 0)
  29. Walk.Size = UDim2.new(0, 187, 0, 50)
  30. Walk.Font = Enum.Font.SourceSans
  31. Walk.Text = "WalkSpeed(Q)"
  32. Walk.TextColor3 = Color3.new(1, 1, 1)
  33. Walk.TextScaled = true
  34. Walk.TextSize = 14
  35. Walk.TextWrapped = true
  36.  
  37. InfAm.Name = "InfAm"
  38. InfAm.Parent = Main
  39. InfAm.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  40. InfAm.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  41. InfAm.BorderSizePixel = 3
  42. InfAm.Position = UDim2.new(0.35229063, 0, 0.189189196, 0)
  43. InfAm.Size = UDim2.new(0, 187, 0, 50)
  44. InfAm.Font = Enum.Font.SourceSans
  45. InfAm.Text = "Inf Ammo"
  46. InfAm.TextColor3 = Color3.new(1, 1, 1)
  47. InfAm.TextScaled = true
  48. InfAm.TextSize = 14
  49. InfAm.TextWrapped = true
  50.  
  51. InfNit.Name = "InfNit"
  52. InfNit.Parent = Main
  53. InfNit.BackgroundColor3 = Color3.new(0.0980392, 0.0980392, 0.0980392)
  54. InfNit.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  55. InfNit.BorderSizePixel = 3
  56. InfNit.Position = UDim2.new(0.0157977641, 0, 0.189189196, 0)
  57. InfNit.Size = UDim2.new(0, 187, 0, 50)
  58. InfNit.Font = Enum.Font.SourceSans
  59. InfNit.Text = "Inf Nitro"
  60. InfNit.TextColor3 = Color3.new(1, 1, 1)
  61. InfNit.TextScaled = true
  62. InfNit.TextSize = 14
  63. InfNit.TextWrapped = true
  64.  
  65. Table.Name = "Table"
  66. Table.Parent = Main
  67. Table.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.12549)
  68. Table.BorderColor3 = Color3.new(1, 1, 1)
  69. Table.Position = UDim2.new(0.0156817138, 0, 0.0457540452, 0)
  70. Table.Size = UDim2.new(0, 612, 0, 39)
  71.  
  72. Name.Name = "Name"
  73. Name.Parent = Table
  74. Name.BackgroundColor3 = Color3.new(0.12549, 0.12549, 0.12549)
  75. Name.BorderSizePixel = 0
  76. Name.Size = UDim2.new(0, 612, 0, 39)
  77. Name.Font = Enum.Font.Cartoon
  78. Name.Text = "JailTrail"
  79. Name.TextColor3 = Color3.new(1, 1, 1)
  80. Name.TextScaled = true
  81. Name.TextSize = 14
  82. Name.TextWrapped = true
  83.  
  84. Main.Active = true
  85. Main.Selectable = true
  86. Main.Draggable = true
  87.  
  88. InfAm.MouseButton1Down:connect(function()
  89. game.Players.LocalPlayer.PlayerGui.MainGui.Ammo.MagSize.Name = "Lol"
  90. end)
  91.  
  92. InfNit.MouseButton1Down:connect(function()
  93. game:GetService('Players').LocalPlayer.PlayerGui.MainGui.Nitro.Name = "Nitr"
  94. game:GetService('Players').LocalPlayer.PlayerGui.ProductGui.Nitro:Destroy()
  95. end)
  96.  
  97. Walk.MouseButton1Down:connect(function()
  98.  
  99. --This may be a little buggy, so beware.
  100. --Hold "Q" to speed up
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107. down = false
  108. velocity = Instance.new("BodyVelocity")
  109. velocity.maxForce = Vector3.new(100000, 0, 100000)
  110. ---vv Use that to change the speed v
  111. local speed = 150
  112. gyro = Instance.new("BodyGyro")
  113. gyro.maxTorque = Vector3.new(100000, 0, 100000)
  114.  
  115. local hum = game.Players.LocalPlayer.Character.Humanoid
  116.  
  117. function onButton1Down(mouse)
  118. down = true
  119. velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
  120. velocity.velocity = (hum.MoveDirection) * speed
  121. gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
  122. while down do
  123. if not down then break end
  124. velocity.velocity = (hum.MoveDirection) * speed
  125. local refpos = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
  126. gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(refpos.x, gyro.Parent.Position.y, refpos.z))
  127. wait(0.1)
  128. end
  129. end
  130.  
  131. function onButton1Up(mouse)
  132. velocity.Parent = nil
  133. gyro.Parent = nil
  134. down = false
  135. end
  136. --To Change the key in those 2 lines, replace the "q" with your desired key
  137. function onSelected(mouse)
  138. mouse.KeyDown:connect(function(k) if k:lower()=="q"then onButton1Down(mouse)end end)
  139. mouse.KeyUp:connect(function(k) if k:lower()=="q"then onButton1Up(mouse)end end)
  140. end
  141.  
  142. onSelected(game.Players.LocalPlayer:GetMouse())
  143. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement