Welcome to Roblogs Forums

You have to be over the age of 13 years old and agree to the Forum's guidelines

Author Thread: Door Script

 palas

1

Joined: Feb 21, 2024

Total Posts: 6

Door Script

Posted: 13 Jul 2024 14:35 PM

Does anyone have a "door"(part) that requires a hopperbin to click the "door" (part) to open (remove for few seconds) ####

 windowsserver1009

1

Joined: Aug 15, 2024

Total Posts: 20

Re: Door Script

Posted: 13 Jul 2024 14:35 PM

Mario: No?

 dankm8

1

Joined: Sep 29, 2024

Total Posts: 10

Re: Door Script

Posted: 13 Jul 2024 14:35 PM

If you need a quick door script i could whip one up

 dankm8

1

Joined: Sep 29, 2024

Total Posts: 10

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

 palas

1

Joined: Feb 21, 2024

Total Posts: 6

Re: Door Script

Posted: 13 Jul 2024 14:35 PM

thx

 dankm8

1

Joined: Sep 29, 2024

Total Posts: 10

Re: Door Script

Posted: 13 Jul 2024 14:35 PM

local door = script.Parent -- the door local click = Instance.new("ClickDetector") click.Parent = door local debounce = false local cooldown = 3 local ogt = door.Transparency function run() if debounce then return end debounce = true door.Transparency = ogt + ((1 - ogt) / 2) door.CanCollide = false wait(cooldown) door.Transparency = ogt door.CanCollide = true debounce = true end click.MouseClick:connect(run)

 dankm8

1

Joined: Sep 29, 2024

Total Posts: 10

Re: Door Script

Posted: 13 Jul 2024 14:35 PM

np also pls ignore the formatting idk why its like that.

   

Page 1 of 1

[1]