So, I made this and.... I tryed looking on the wiki about this stuff and still couldn't fix this please help me?
wait(0.1) function Update() local children = game.Players:GetChildren() local PlayerName = script.Parent.Parent.Name for i = 1, #children do local plr = (i, children[i].PlayerGui.Players:WaitForChild(PlayerName)) plr.Position = script.Parent.Position end end script.Parent.Changed:connect(Update)
The output also said: 20:49:40.351 - Workspace.Players.Player.PlayerPosition.PositionUpdater:9: attempt to index local 'plr' (a number value)