Not sure how to fix this

Hi, I’m trying to make a local script that when a player presses their mouse, a kill script in a part is enabled. However when I click, the script is enabled but doesn’t work. I’m pretty sure this has something to do with client and server but I’m just not sure what to do to be honest.

the variable ‘la’ is the kill script and ‘cappa’ is the part.

uh maybe cuz its a local script, try sending a remoteevent to server

1 Like

Try disabling the script on the server instead of the client

→ after the player clicks the button player sends the server a message asking to disable or enable the script
→ server disables or enables the script

instead of disabling the script fully you could also make changes to the kill script too and check if the player wants it disabled

1 Like

alright I’ll try to do that now thanks

Thanks to both of you, it really helped me out and I’ve learned new things.