Is it possible to delete a server script on the client side?
No; FilteringEnabled prevents this.
but you can do it thorough remote events right?
Yes; create a Remote that the server listens to and have the server delete the script from there
but the server script has ti be stored in the client right?
ServerScripts are stored on the server. This is what I’m saying:
-- Server
RemoteEvent.OnServerEvent:Connect(function()
-- Delete the server script
end)
-- Client
RemoteEvent:FireServer()
Could you explain your use case or situation here? Why do you need to remove a Script using a LocalScript, or rather in what circumstance are you running into that this is a possibility?
for knowledge I guess.
blank space
I still deletes it form the server.
yeah but only if it’s in like workspace(if I understood you right)
put a script called test2 in workspace and it should delete that script, but only for the client. not sure if it works at all though since this is just a random, rough solution I thought
local test2 = game.Workspace.test2
test2:Destroy()
that will still delete form the server…
no? put the code into a localscript and it should appear to delete the serverscript. if you test it and look through the explorer, you’ll see the script disappear;but if you look at it through servermode, you’ll see it still exist.
again, not sure if it’d actually prevent the script from running, but it should appear to be deleted for the client
oh it works. Thnakls didn’t know it was in local.
But keep in mind this won’t prevent it from running, so I’m not sure how useful this would be.