hello. i am trying to make a script that makes a transparent part visible when a 25 seconds timer hits 0 but it doesn't work. this is my script:
local timer = game.Workspace.Timer.SurfaceGui.TextLabel local part = game.Workspace.saracie while true do if timer.Text == "25" then part.Transparency = 1 else if timer.Text == "0" then part.Transparency = 0 wait(3) part.Transparency = 1 end end end
local PartInvis = false while true do if Partinvis == true then part.Transparency = 0 PartInvis = false else Part.Transparency = 1 PartInvis = true end wait(25) end
All that's happening is this while loop will continuously run, but will pause for 25 seconds after running the code before running it again. The PartInvis is only used to determine whether at the time the code is running the part is transparent.
I didn't really understamd what you were saying, but anyway, here's a script that makes the part disappear every 25 seconds. Let me know if this helps. :)
Part=script.parent Part.Transparency=0 Part.CanCollide=true while true do Part.Transparency=1 Part.CanCollide=false wait(25) Part=script.parent Part.Transparency=0 Part.CanCollide=true