Disabling a script through local script

Is it possible to disable a script from a local script? I’m trying to make a Button that deletes your trail and disables a script from ServerScriptService on the clients side. However, I am getting no errors and the script doesn’t disable.

Button Script:

local Player = game.Players.LocalPlayer
local Char = Player.Character
local Trail = Player.Character:WaitForChild("HumanoidRootPart").TrailAttachment1
local Trail2 = Player.Character.Head.TrailAttachment0
	

script.Parent.MouseButton1Click:Connect(function()
	Trail:Destroy()
	Trail2:Destroy()
	game.ServerScriptService:WaitForChild("TrailHandler").Enabled = false
	script.Parent.Parent:TweenPosition(UDim2.new(0.317, 0,1, 0), "Out", "Linear")
end)

I’m starting to think it’s not possible to do this. Any help will be appreciated!

if you want to disable other local scripts it is possible but if you are trying to disable server script its not possible

1 Like

or you can make a remoteevent for that

Okay, thanks for the information!