RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Noclip"
-- local script local player = game.Players.LocalPlayer local character = player.Character local humanoid = character:WaitForChild("Humanoid") local noclip = false local function noclipToggle() if noclip then noclip = false humanoid.WalkSpeed = 16 else noclip = true humanoid.WalkSpeed = 50 end end game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.LeftShift then noclipToggle() end end) -- make a door open when a player walks up to it -- put this script under the part you want to open local part = script.Parent local door = game.Workspace.Door local canOpen = true local function openDoor(otherPart) local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA('Humanoid') if humanoid and canOpen then canOpen = false door.Position = door.Position + Vector3.new(0,12,0) wait(3) door.Position = door.Position + Vector3.new(0,-12,0) canOpen = true end end part.Touched:Connect(openDoor)