I've been using "PlayerScripts" for a few things in some recent scripts and they yet worked without a problem. I'm having an example script over here to show it work works:
script.Parent.Touched:connect(function(part) script.Disabled = true if game.Players:GetPlayerFromCharacter(part.Parent) then if script.Parent.Locking.Value == true then local player = game.Players:GetPlayerFromCharacter(part.Parent) local control = player.PlayerScripts.ControlScript control.Parent = nil script.Parent.Locking.Changed:connect(function() if script.Parent.Locking.Value == false then control.Parent = player.PlayerScripts end end) end end wait() script.Disabled = false end)
But now "PlayerScripts" seems to only exist in Studio, but not in real servers. So now I'm wondering how to get "PlayerScripts" to fix scripts. Any method, function or whatever would be appreciated really much.
Thanks in advance,
MrHaIIoween