Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- made by tturley23
- --[[ Thank you for choosing this noclip script!
- The noclip will be enabled automatically, please enter the values below - mode, hitpart according the the instructions.
- Want to disable the noclip? Type "noclip disable" in chat.
- Want to re-enable the noclip? Type "noclip enable" in chat.
- If you are going to share this etc please give credit :)
- --]]
- local plr = game.Players.LocalPlayer -- Player
- local mode = ""
- --[[ MODE:
- The mode is what mode the noclip script is on. You must enter one of these values. CASE SENSITIVE.
- tempnoclip - Will allow you to walk through touched objects for 3 seconds before making them solid again. While you can walk through them they are semi-transparent
- destroy - Will permanently destroy any touched objects
- noclip - Will Allow you to walk through any touched object permanently
- invis - Will make any touched object invisible.
- --]]
- local HitPart = ""
- --[[ HITPART
- This Value is what part of your character will activate the noclip mode. You must enter one of the following values. CASE SENSITIVE.
- BE AWARE OF WETHER YOU ARE PLAYING R15 OR R6 ANIMATED GAMES.
- Head - R15/R6
- Torso - R6
- HumanoidRootPart - R15 Torso
- LeftLeg - R15
- LeftFoot - R15
- RightLeg - R15
- RightFoot - R15
- --]]
- local enabled = true
- if (plr ~= nil) then
- print("Activating NoClip...")
- enabled = true
- if (mode ~= "TEMPNOCLIP" and mode ~= "tempnoclip" and mode ~= "DESTROY" and mode ~= "destroy" and mode ~= "NOCLIP" and mode ~= "noclip" and mode ~= "INVIS" and mode ~= "invis") then
- print ("Invalid mode! Setting to noclip by default!")
- mode = "noclip"
- else
- print("Succesfully Changed Mode! Mode: " ..mode)
- end
- if (HitPart ~= "Head" and HitPart ~= "Torso" and HitPart ~= "HumanoidRootPart" and HitPart ~= "LeftHand" and HitPart ~= "LeftFoot" and HitPart ~= "RightFoot" and HitPart ~= "RightHand") then
- print ("Invalid Hit Object! Setting to head by default!")
- HitPart = "Head"
- else
- print ("Successfully Changed Hit Object! Object: " ..HitPart)
- end
- print("Noclip succesfully activated!")
- end
- plr.Chatted:connect(function(msg)
- if (msg == string.lower("noclip disable")) then
- print("Disabling noclip")
- enabled = false
- end
- if (msg == string.lower("noclip enable")) then
- print("Enabling noclip")
- enabled = true
- end
- end)
- plr.Character[HitPart].Touched:connect(function(obj)
- if(obj:IsA("MeshPart") or obj:IsA("Part") or obj:IsA("WedgePart") or obj:IsA("UnionOperation")) then
- if(obj.CanCollide == true) then
- if (mode == "TEMPNOCLIP" or mode == "tempnoclip") then
- if enabled == true then
- local ogtransp = obj.Transparency
- obj.CanCollide = false
- obj.Transparency = 0.5
- wait(4)
- obj.CanCollide = true
- obj.Transparency = ogtransp
- end
- end
- if (mode == "DESTROY" or mode == "destroy") then
- if enabled == true then
- obj:remove()
- end
- end
- if (mode == "NOCLIP" or mode == "noclip") then
- if enabled == true then
- obj.CanCollide = false
- end
- end
- if (mode == "INVIS" or mode == "invis") then
- if enabled == true then
- obj.Transparency = 0.8
- else
- end
- end
- end
- else
- print("Not Available obj")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement