sufsty
(sufsty)
November 16, 2024, 10:46am
#1
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
bura1414
(Bura)
November 16, 2024, 10:55am
#3
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
sufsty
(sufsty)
November 16, 2024, 10:57am
#4
alright I’ll try to do that now thanks
sufsty
(sufsty)
November 16, 2024, 11:08am
#5
Thanks to both of you, it really helped me out and I’ve learned new things.
system
(system)
Closed
November 30, 2024, 11:09am
#7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.