local BillboardGui = game:GetService('ReplicatedStorage'):WaitForChild('BillboardGui')
local text = script.Parent.Parent.TextBox.Text
script.Parent.MouseButton1Click:connect(function()
BillboardGui.frame.TextBox.Text = text
print ("text changed")
end)
local BillboardGui = game:GetService('ReplicatedStorage'):WaitForChild('BillboardGui') --You may have also made a spelling mistake here.
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char) --Fires everytime the player respawns
char:WaitForChild('Head')
local clonedBillBoard = BillboardGui:Clone()
clonedBillBoard.Parent = char.Head
clonedBillBoard.frame.RPText.Text = plr.Name
end)
end)
the first script is in a textutton and the second is in server script service

1 comment
i get this error 19:39:08.069 - Infinite yield possible on 'Players.EpicAshtonTheBoy:WaitForChild("BillboardGui")'