Overhead GUI not cloning to the head

Hello,

I made an overhead GUI that displays your name on top of your head, I made a script that clones the gui and sets the parent to the player head when the character spawns in, but it won’t clone for some reason. The GUI is located in the ServerStorage

image

Script:

local gui = script.BillboardGui
local playerService = game:GetService("Players")

playerService.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local clonedGui = gui:Clone()
		clonedGui.PlayerName.Text = plr.Name
		clonedGui.Parent = char:WaitForChild("Head")
	end)
end)

Scripts don’t run if they’re in Serverstorage. Move it to ServerScriptService or alike.

1 Like

It’s working now, thanks a lot.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.