game.Players.PlayerAdded:Connect(function(plr) wait(5) Localscript = game.ReplicatedStorage:FindFirstChild("LocalScript") Localscript.Parent = plr:WaitForChild('PlayerScripts') end) --But it keeps throwing a errror at me saying 12:03:36.595 - Infinite yield possible on 'Players.KawaiiSatanBoy:WaitForChild("PlayerScripts")' when i perfectly did everything and it should find it?
The PlayerScripts folder is created client side. It will not exist on the server side. What you can do is either
Alright, so if you tested the game, you would see that "PlayerScripts" is Client-Side only. So instead of being in a Server Script, your code should be placed in a LocalScript under StarterGui and be written this way:
local plr = game.Players.LocalPlayer wait(5) local Localscript = game.ReplicatedStorage:FindFirstChild("LocalScript") Localscript.Parent = plr:WaitForChild('PlayerScripts')