Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- PRESS AND HOLD Q TO ENABLE NOCLIP
- local cool = game.Workspace.Model
- game:GetService("UserInputService").InputBegan:Connect(function(i, gpe)
- if not gpe and i.KeyCode == Enum.KeyCode.Q then
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Model") and v.PrimaryPart == nil and v.Name ~= 'Model' then
- do cool.Parent = v
- end
- end
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:Connect(function(i, gpe)
- if not gpe and i.KeyCode == Enum.KeyCode.Q then
- do cool.Parent = game.Workspace
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement