Advertisement
Guest User

Noclip script Roblox [Lua] FE

a guest
Oct 15th, 2019
8,637
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. wait()
  2. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  3. -- @CloneTrooper1019, 2015
  4. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  5.  
  6. local Tool = Instance.new("HopperBin")
  7. Tool.Parent = game.Players.LocalPlayer.Backpack
  8. Tool.Name = "NoClip"
  9.  
  10. wait(1)
  11. local c = workspace.CurrentCamera
  12. local player = game.Players.LocalPlayer
  13. local userInput = game:GetService("UserInputService")
  14. local rs = game:GetService("RunService")
  15. local starterPlayer = game:GetService("StarterPlayer")
  16.  
  17. local selected = false
  18. local speed = 60
  19. local lastUpdate = 0
  20.  
  21. function getNextMovement(deltaTime)
  22. local nextMove = Vector3.new()
  23. -- Left/Right
  24. if userInput:IsKeyDown("A") or userInput:IsKeyDown("Left") then
  25. nextMove = Vector3.new(-1,0,0)
  26. elseif userInput:IsKeyDown("D") or userInput:IsKeyDown("Right") then
  27. nextMove = Vector3.new(1,0,0)
  28. end
  29. -- Forward/Back
  30. if userInput:IsKeyDown("W") or userInput:IsKeyDown("Up") then
  31. nextMove = nextMove + Vector3.new(0,0,-1)
  32. elseif userInput:IsKeyDown("S") or userInput:IsKeyDown("Down") then
  33. nextMove = nextMove + Vector3.new(0,0,1)
  34. end
  35. -- Up/Down
  36. if userInput:IsKeyDown("Space") then
  37. nextMove = nextMove + Vector3.new(0,1,0)
  38. elseif userInput:IsKeyDown("LeftControl") then
  39. nextMove = nextMove + Vector3.new(0,-1,0)
  40. end
  41. return CFrame.new( nextMove * (speed * deltaTime) )
  42. end
  43.  
  44. game.Players.LocalPlayer.Backpack.NoClip.Selected:connect()
  45. local char = player.Character
  46. if char then
  47. local humanoid = char:WaitForChild("Humanoid")
  48. local root = char:WaitForChild("HumanoidRootPart")
  49. currentPos = root.Position
  50. selected = true
  51. root.Anchored = true
  52. lastUpdate = tick()
  53. humanoid.PlatformStand = true
  54. while selected do
  55. wait()
  56. local delta = tick()-lastUpdate
  57. local look = (c.Focus.p-c.CoordinateFrame.p).unit
  58. local move = getNextMovement(delta)
  59. local pos = root.Position
  60. root.CFrame = CFrame.new(pos,pos+look) * move
  61. lastUpdate = tick()
  62. end
  63. root.Anchored = false
  64. root.Velocity = Vector3.new()
  65. humanoid.PlatformStand = false
  66. end
  67.  
  68. game.Players.LocalPlayer.Backpack.NoClip.Deselected:connect()
  69. selected = false
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement