So there is a Local Script with a script inside of it. Then i want to clone the script inside the local script and put the clone inside the workspace, but when i do that, the clone script does not run. But it is in the workspace and is not disabled. I want filtering enabled on in case the game is hacked. so is there any way for me to keep it on and just change the way i am doing this. That is my situation but how do get filtering enabled on and still have scripts work inside the client?
LocalScript inside gui:
local s = script.Script:Clone()
s.Parent = game.Workspace
s.Disabled = false
Script:
print("Runs") -- this is to make sure it works but it doesn't work
local Player = game.Players:FindFirstChild(script.Parent.Value.Value)
Player.PlayerGui.MurderScreen.Enabled = false

6 comments
They still do. Client changes just does not get replicated to the server.
but when i clone a script and set the parent of the script to the clients workspace the script does not run
then set the parent of the script to workspace IN STUDIO HOW HARD IS THAT?
That Script you are using seems to do something that should only affect the client anyway - the server cannot see inside PlayerGui also. Just integrate that code into your LocalScript. Also hiim, you need to chill lol
The main script in the game stops until the MurderScreen's enabled is false and the main script only looks at the server cause it is a normal script so i need to get a script inside the server. When i was testing it i moved the script's parent to the server and it worked so i just need a way of doing that with scripts
Well the problem is the server can't actually look inside PlayerGui. I recommend you have an external value in the player or you use RemoteEvents to communicate with the server.