So I'm making a ban hammer that actually bans the player (not really, it's just a kick with a silly message and some creepy music plays inside their head so only they can hear it) but that's not the issue. So I wanted the player to be able to toggle kicking others or not. So, when the player equips the hammer, there is a ban Gui that lets you turn it on and off. Here is the local script:
local lp = game.Players.LocalPlayer
local lpc = lp.Character
local ON = script.Parent.BanModeToggle.ON
local OFF = script.Parent.BanModeToggle.OFF
local l = ON.Parent.BanLabel
ON.MouseButton1Click:Connect(function()
if lpc.BanHammer ~= nil then
lpc.BanHammer.Handle.KickRadius.Kick.Disabled = false
l.Text = "Ban Mode: ON"
end
end)
OFF.MouseButton1Click:Connect(function()
if lpc.BanHammer ~= nil then
lpc.BanHammer.Handle.KickRadius.Kick.Disabled = true
l.Text = "Ban Mode: OFF"
end
end)
When viewing on the client, the script disables. But when viewing on the server, the script stays enabled. How can I make the script actually disable? (also, no there is nothing wrong with the kicking script, I've tested it a million times) EDIT: I should also clarify, the text is changing on the script that disables and enables the script plus no errors in the output.

2 comments
Its obvious. local script runs in the client, normal script in the server. You cannot disable a script with a localscript, try with a script!
I hope i was able to help! good day!
Due to Filtering Enabled, you CANNOT do what you're trying to portray unless with a remote event or a serverscript. Gui's are only accessible with a local script!