Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

Try this

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

script.Parent.Touched:connect(onTouched)

1 comment

0

and add an X button to the gui

This discussion is preserved as it was. New answers, comments, and votes are closed.