I need a little bit script support

Ekran Alıntısı

The button is making Head transparency 1 but I want to turn off the visibility of the billboard gui

if script.Parent.Parent.Transparency == 1 then
script.Parent.MaxDistance = 1
end
if script.Parent.Parent.Transparency == 0 then
script.Parent.MaxDistance = 75
end

It works but only one time how to loop this script or idk… (sorry i dont know lua :confused: )

1 Like

I’m assuming it only works once and then you want it to work again due to a Tycoon-build possibly. Firstly I highly recommend that instead of reverting all the changes after the player leaves you should just have another empty tycoon prepared in server storage, this way less calculations need to be done and its a very simple delete and clone.

To address your problem you should be making the BilBoard Gui Disabled (Not sure if it’s called Disabled or Enabled). This will essentially make it not be visible for you, hope this helped!

1 Like

while true do
if script.Parent.Parent.CanCollide == true then
script.Parent.Enabled = true
end

if script.Parent.Parent.CanCollide == false then
script.Parent.Enabled = false
end
wait()
end

SOLVED