Hi today I am Gonna Teach you How to make a Simple timer Portal or Door
NOTE: This is for Beginners
First Select a Part and add a Script to it
And Go to the Script Delete everything in it and start scripting
Create a variable for the Part and GO function
local part = script.Parent
local function go()
part.Transparency = 0.3
part.CanCollide = false
end
Now Lets add stop function
local part = script.Parent
local function go()
part.Transparency = 0.3
part.CanCollide = false
end
local function stop()
part.Transparency = 0
part.CanCollid = true
end
lets call the function and make it run forever
local part = script.Parent
local function go()
part.Transparency = 0.3
part.CanCollide = false
end
local function stop()
part.Transparency = 0
part.CanCollide = true
end
while true do
go() --open
wait(3) --seconds
stop()--close
wait(3)
end
and save it and play in your game and check if it works
if you have any doubt let me know for example if don’t know what is function i will explain it to you and lets hope for 10 likes