Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --USER VARIABLES - THESE ARE STUDS PER 0.016 SECONDS--
- Slow = 2
- Fast = 5
- NOCLIPKEY = "v"
- --END USER VARIABLES--
- inc = Slow
- w = false
- a = false
- s = false
- d = false
- q = false
- e = false
- sel = false
- noclip = false
- local Players = game:GetService("Players")
- local Player = Players.zxCoolKidXx
- repeat
- wait()
- Character = Player.Character
- until Character
- local Run = game:GetService("RunService")
- local Torso = Character.Torso
- local Mouse = Player:GetMouse()
- Mouse.KeyDown:connect(function (k)
- if k == NOCLIPKEY then
- noclip = not noclip
- end
- if noclip then
- if k == "w" then
- w = true
- end
- if k == "a" then
- a = true
- end
- if k == "s" then
- s = true
- end
- if k == "d" then
- d = true
- end
- if k == "q" then
- q = true
- end
- if k == "e" then
- e = true
- end
- if string.byte(k) == 48 then
- inc = Fast
- end
- else
- w = false
- a = false
- s = false
- d = false
- q = false
- e = false
- sel = false
- end
- end)
- Mouse.KeyUp:connect(function (k)
- if noclip then
- if k == "w" then
- w = false
- end
- if k == "a" then
- a = false
- end
- if k == "s" then
- s = false
- end
- if k == "d" then
- d = false
- end
- if k == "q" then
- q = false
- end
- if k == "e" then
- e = false
- end
- if string.byte(k) == 48 then
- inc = Slow
- end
- else
- w = false
- a = false
- s = false
- d = false
- q = false
- e = false
- sel = false
- end
- end)
- coroutine.resume(coroutine.create(function ()
- Run.RenderStepped:connect(function ()
- Torso.Anchored = noclip
- Character.Humanoid.PlatformStand = noclip
- if w then
- Torso.CFrame = Torso.CFrame * CFrame.new(0, 0, -inc)
- end
- if a then
- Torso.CFrame = Torso.CFrame * CFrame.new(-inc, 0, 0)
- end
- if s then
- Torso.CFrame = Torso.CFrame * CFrame.new(0, 0, inc)
- end
- if d then
- Torso.CFrame = Torso.CFrame * CFrame.new(inc, 0, 0)
- end
- if q then
- Torso.CFrame = Torso.CFrame * CFrame.new(0, -inc ,0)
- end
- if e then
- Torso.CFrame = Torso.CFrame * CFrame.new(0, inc, 0)
- end
- if noclip then
- Torso.CFrame = CFrame.new(Torso.CFrame.p, workspace.CurrentCamera.CoordinateFrame * CFrame.new(0, 0, -1000).p)
- end
- end)
- end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement