Advertisement
SilverExploitz

FiveM noclip

Oct 8th, 2022 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.71 KB | None | 0 0
  1. local User = game:GetService("UserInputService")
  2. local player = game:GetService("Players").LocalPlayer
  3. local GuiService = game:GetService("StarterGui")
  4. local mouse = game.Players.LocalPlayer:GetMouse()
  5.  
  6. local holdingWKey = false
  7. local holdingSKey = false
  8. local holdingAKey = false
  9. local holdingDKey = false
  10. local holdingSpaceKey = false
  11. local holdingControlKey = false
  12.  
  13. Speed_1 = -1
  14.  
  15. mouse.KeyDown:connect(function(key)
  16. if key == "-" then
  17. Speed_1 = Speed_1 + 0.2
  18. GuiService:SetCore("SendNotification", {Title = "Speed", Text = "Speed has gone down";})
  19. end
  20. end)
  21.  
  22. mouse.KeyDown:connect(function(key)
  23. if key == "=" then
  24. Speed_1 = Speed_1 - 0.2
  25. GuiService:SetCore("SendNotification", {Title = "Speed", Text = "Speed has gone up";})
  26. end
  27. end)
  28.  
  29. mouse.KeyDown:connect(function(key)
  30. if key == "t" then
  31. if startup == true then
  32. startup = false
  33. GuiService:SetCore("SendNotification", {Title = "Speed", Text = "Speed is now disabled";})
  34. else
  35. startup = true
  36. GuiService:SetCore("SendNotification", {Title = "Speed", Text = "Speed is now enabled";})
  37.  
  38. local brick = Instance.new("Part", workspace)
  39. brick.Size = Vector3.new(3, 2, 3)
  40. brick.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0, -4, 0)
  41. brick.Transparency = 1
  42. brick.Anchored = true
  43. brick.Name = "Brick"
  44. mouse.KeyDown:connect(function(key)
  45. if key == "t" then
  46. brick:remove()
  47. end
  48. end)
  49. for i = 1, math.huge do
  50. brick.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0, -4, 0)
  51. wait(0)
  52. end
  53. end
  54. end
  55. end)
  56.  
  57. game:GetService('RunService').Stepped:connect(function()
  58. if startup then
  59. if WHeld == true then
  60. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,Speed_1)
  61.  
  62. end
  63. end
  64. end)
  65.  
  66. game:GetService('RunService').Stepped:connect(function()
  67. if startup then
  68. if SHeld == true then
  69. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-Speed_1)
  70. end
  71. end
  72. end)
  73.  
  74. game:GetService('RunService').Stepped:connect(function()
  75. if startup then
  76. if AHeld == true then
  77. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(Speed_1,0,0)
  78. end
  79. end
  80. end)
  81.  
  82.  
  83. game:GetService('RunService').Stepped:connect(function()
  84. if startup then
  85. if DHeld == true then
  86. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(-Speed_1,0,0)
  87. end
  88. end
  89. end)
  90.  
  91.  
  92. game:GetService('RunService').Stepped:connect(function()
  93. if startup then
  94. if SpaceHeld == true then
  95. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,-Speed_1,0)
  96. end
  97. end
  98. end)
  99.  
  100. game:GetService('RunService').Stepped:connect(function()
  101. if startup then
  102. if ControlHeld == true then
  103. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0,Speed_1,0)
  104. end
  105. end
  106.  
  107. end)
  108.  
  109. User.InputBegan:Connect(function(inputObject)
  110. if(inputObject.KeyCode==Enum.KeyCode.W) then
  111. holdingWKey = true WHeld = true
  112. end
  113.  
  114. if(inputObject.KeyCode==Enum.KeyCode.S) then
  115. holdingSKey = true SHeld = true
  116. end
  117.  
  118. if(inputObject.KeyCode==Enum.KeyCode.A) then
  119. holdingAKey = true AHeld = true
  120. end
  121.  
  122. if(inputObject.KeyCode==Enum.KeyCode.D) then
  123. holdingDKey = true DHeld = true
  124. end
  125. if(inputObject.KeyCode==Enum.KeyCode.LeftControl) then
  126. holdingControlKey = true ControlHeld = true
  127. end
  128.  
  129. if(inputObject.KeyCode==Enum.KeyCode.Space) then
  130. holdingSpaceKey = true SpaceHeld= true
  131. end
  132.  
  133. if(inputObject.KeyCode==Enum.KeyCode.W) then
  134. holdingUKey = true WHeld = true
  135. end
  136. end)
  137.  
  138. User.InputEnded:Connect(function(inputObject)
  139. if(inputObject.KeyCode==Enum.KeyCode.W) then
  140. holdingWKey = false WHeld = false
  141. end
  142.  
  143. if(inputObject.KeyCode==Enum.KeyCode.S) then
  144. holdingSKey = false SHeld = false
  145. end
  146.  
  147. if(inputObject.KeyCode==Enum.KeyCode.A) then
  148. holdingAKey = false AHeld = false
  149. end
  150.  
  151. if(inputObject.KeyCode==Enum.KeyCode.D) then
  152. holdingDKey = false DHeld = false
  153. end
  154.  
  155. if(inputObject.KeyCode==Enum.KeyCode.LeftControl) then
  156. holdingShiftKey = false ControlHeld = false
  157. end
  158.  
  159. if(inputObject.KeyCode==Enum.KeyCode.Space) then
  160. holdingSpaceKey = false SpaceHeld = false
  161. end
  162. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement