Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
- getgenv().r6noclip = true
- game:GetService("RunService").Stepped:Connect(function()
- if getgenv().r6noclip == true then
- game.Players.LocalPlayer.Character.Head.CanCollide = false
- game.Players.LocalPlayer.Character.Torso.CanCollide = false
- game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
- game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
- end
- end)
- end
- if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
- getgenv().r15noclip = true
- game:GetService("RunService").Stepped:Connect(function()
- if getgenv().r15noclip == true then
- Clip = false
- if Clip == false and plr.Character ~= nil then
- for i,v in pairs(plr.Character:GetDescendants()) do
- if v:IsA("BasePart") and v.CanCollide == true and v.Name ~= floatName then
- v.CanCollide = false
- end
- end
- end
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement