Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

sliding door every 25s?

can someone help me with a script on a door that opens that door and close it 2 seconds after every 25s?

1 answer

✓ Accepted answer

Basic simple door, put this script inside the block.

--[[if you want it to open automatically looply then do this]]

while wait(25) do
script.Parent.CanCollide = false
script.Parent.Transparency = 0.6
wait(2)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
--[[ if you want the door to open when it's touched. do this.]]
local function KewlBoi(Touched)
	local char = Touched.Parent
	if char:FindFirstChild('Humanoid') then
		script.Parent.CanCollide = false
		script.Parent.Transparency = 0.6
		wait(2)
		script.Parent.CanCollide = true
		script.Parent.Transparency = 0
	end
end

script.Parent.Touched:Connect(KewlBoi)

1 comment

0

thanks!

This discussion is preserved as it was. New answers, comments, and votes are closed.