Players = game:GetService("Players") function onPlayerAdded(player) while wait(.1) do local RPart = Instance.new("Part") local RPosition = player.Head.Position RPart.Position = RPosition RPart.BrickColor = BrickColor.new("Green") repeat until 1 == 2 end end game.Players.PlayerAdded:connect(onPlayerAdded) for _,player in pairs(Players:GetPlayers()) do onPlayerAdded(player) end
It said: "13:06:50.064 - Head is not a valid member of Player".
Line 6: local RPosition = player.Head.Position
It's not player.Head
because you're getting the player and not the Character. Head is inside the Character Model.
So change it to: player.Character.Head