Localscript bugging out, need help on this!

Hello everyone :wave:

So basically i have Two localscripts in starterplayerscripts and they work fine but, only one line doesn’t work and it is script.OptionTriggered.Enabled = true -- OptionTriggered is a local script but even the rest of the code below works aswell & i have absolutely no idea how it happened (line 83).

Screenshot of the actual problem

Video of the actual problem (script doesn't enable as asked by the local script)

The script doesn’t shoot any errors and OptionTriggered script doesn’t get enabled

Is it printing “The option below doesn’t work” and still just not enabling the script?

yes indeed This text will be blurred its shown in output too

Have you tried adding a print inside the OptionTriggered script to see if it is actually running?

Add a print(“Option Began”) to the top of the localscript.

oh nice idea, i forgot there was playerscripts instead of starterplayerscripts

Yeah I was thinking you’d be checking StarterPlayerScripts instead of the actual PlayerScripts folder.

It should be enabling if there’s no errors and it’s printing “The option below doesn’t work”.

Likely just an issue with your OptionTriggered script.

1 Like

no way, you were right, i forgot to enable to whole function in OptionTriggered

Result

it was most likely my fault, i checked starterplayer scripts instead of playerscripts

you could actually show Full codes of each LocalScript or that related, and Explaining what was the Purpose of each LocalScript, so it alot easier to find issue

1 Like

Happy to help. :slight_smile:

Glad to see it was solved.

Had that feeling that’s why I asked.

1 Like

oh yea, thank you so much for the info! i’ll keep that in mind

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.