I don't understand... Can someone help me?
game.Players.PlayerAdded:connect(function(plr) wait(2) plr.PlayerScripts.ControlScript:Destroy() end)
I don't get why this doesn't work. Although it works in singleplayer test, it does not work on a server. It says that PlayerScripts is not a valid member of player. That's why I have the wait(2). At first i did this:
game.Players.PlayerAdded:connect(function(plr) plr:WaitForChild("PlayerScripts"):WaitForChild("ControlScript"):Destroy() end)
No idea why, but it also doesn't work. It just says possible infinite yeild and never deletes the control script. Maybe it is something simple I am overlooking, either way, help me out. Thanks!
put a local script in Starter Player Scripts
wait(0.5) local cs = script.Parent:WaitForChild("ControlScript") cs:Destroy()
Should work lol