Re: Door Script
Posted: 13 Jul 2024 14:35 PM
-- Door itself local Door = script.Parent local ClickDetetcor = Instance.new("ClickDetector") ClickDetetcor.Parent = Door local originaltransparancy = Door.Transparency -- Cooldowns local debounce = false local cooldown = 3 -- Everyt time the clickdtetector is clicked function Run() if debounce then return end debounce = true Door.Transparency = originaltransparancy + ((1 - originaltransparancy) * 0.5) Door.CanCollide = false wait(cooldown) Door.Transparency = originaltransparancy Door.CanCollide = true debounce = false end ClickDetetcor.Mous
|