I am trying to insert a BillboardGUI into a players head when they join, but I don’t know how to address the new players model. Here is my attempt:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local label = Instance.new("BillboardGui", player.Character)
local text = Instance.new("TextLabel", label)
end)
Using “player.Character” was a complete guess and unsurprisingly it didn’t work.
The thing that @Operatik said would look like this:
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
-- I would clone a template of the Gui here since it would be easier to customise.
local label = Instance.new("BillboardGui", character)
local text = Instance.new("TextLabel", label)
end)
end)