Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- noclip = false
- changingstate = false
- statechosen = 0
- b = false
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- --[[
- plr.Character.Head.Transparency = 0.45
- plr.Character.Torso.Transparency = 0.45
- plr.Character["Left Leg"].Transparency = 0.45
- plr.Character["Right Leg"].Transparency = 0.45
- plr.Character["Left Arm"].Transparency = 0.45
- plr.Character["Right Arm"].Transparency = 0.45
- --]]
- lplayer = plr
- noclip = false
- game:GetService('RunService').Stepped:connect(function()
- if noclip then
- if lplayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- lplayer.Character.Head.CanCollide = false
- lplayer.Character.Torso.CanCollide = false
- lplayer.Character["Left Leg"].CanCollide = false
- lplayer.Character["Right Leg"].CanCollide = false
- else
- lplayer.Character.Humanoid:ChangeState(11)
- end
- if changingstate then
- lplayer.Character.Humanoid:ChangeState(statechosen)
- end
- end
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- noclip = not noclip
- if noclip == true then
- plr.Character.Head.Transparency = 0.45
- plr.Character.Torso.Transparency = 0.45
- plr.Character["Left Leg"].Transparency = 0.45
- plr.Character["Right Leg"].Transparency = 0.45
- plr.Character["Left Arm"].Transparency = 0.45
- plr.Character["Right Arm"].Transparency = 0.45
- end
- if noclip == false then
- plr.Character.Head.Transparency = 0
- plr.Character.Torso.Transparency = 0
- plr.Character["Left Leg"].Transparency = 0
- plr.Character["Right Leg"].Transparency = 0
- plr.Character["Left Arm"].Transparency = 0
- plr.Character["Right Arm"].Transparency = 0
- end
- --game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
- end
- end)
- game:GetService("StarterGui"):SetCore("SendNotification",{
- Title = "Noclip",
- Text = "Press Q to toggle noclip",
- Duration = 6,
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement