Hi, this is a script which is meant to duplicate a overhead gui, and set it to appear over every players head. I have tried many things and I cant find out why it doesnt work
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
char.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
local gui = game.ServerStorage.OverheadGui
local clone = gui:Clone()
clone.Parent = workspace
clone.Adornee = char.Head
local frame = clone.Frame
local name = frame.PlrName
name.Text = plr.Name
print(plr.Name.." has joined - gui given!")
while wait() do
name.Text = plr.RpName.Value
end
end)
end)
Here is the issue: when testing, the gui goes above my head which my name, but doesnt go above anyone elses head with theirs. I tried it in a 2 player test server in studio and it worked for both players. Help would be much appreciated, cheers.

2 comments
Maybe reboot studio and try it. Also try it in a normal server Not in studio
put it in a server script