Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to let sensor detects a part/model, then How to enable the GUI?

Asked by 4 years ago
Edited 4 years ago

BSM System -- I am bad at english so see down below the video so You can understand it better This is working but Not works really well

function onTouched(hit)
script.Parent.Parent.Parent.Parent.Misc.FL.Mirror.BSML.On.Enabled = true
wait(0.1) -- if i add else / or here, it says there is a error
script.Parent.Parent.Parent.Parent.Misc.FL.Mirror.BSML.On.Enabled = false
end

script.Parent.Touched:connect(onTouched)

1 answer

Log in to vote
0
Answered by 4 years ago

Try this

function onTouched(hit)
script.Parent.Parent.Parent.Parent.Misc.FL.Mirror.BSML.On.Enabled = true
end

script.Parent.Touched:connect(onTouched)

0
and add an X button to the gui DindinYT37 246 — 4y
Ad

Answer this question