How do i clone gui only once for each player in game

what do you mean by that

Is their any errors in the output?

RP.Remotes.ShowForAllClients.OnClientEvent:Connect(function(player)
	local newTemplate = tradingTemplate:Clone()
	newTemplate.Parent = script.Parent
	newTemplate:WaitForChild("playerName").Text = player.Name
end)
game.Players.PlayerAdded:Connect(function(player)
	Remotes.ShowForAllClients:FireClient(player)
end)

He means are you using LocalScript or ServerScript

I don’t see why FireAllClients would be used over FireClient in this situation

wouldn’t that just make it show for one client? Sorry i don’t really understand it

as I said in my previous post you are not passing the player

no I just wanted to know what his code was lol

All you need is a server script @NotZylon I did it for my roleplay game I will show some of the code:

-- //ServerScript
game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        local bill = Instance.new("BillboardGui")
        bill.Parent = workspace
        bill.Adornee = character.Head
    end)
end)

you need to learn more about events lmao

FireAllClients, fire a remote to all the clients at once. If the server wants to tell all the clients that there is another player you can do

game.Players.PlayerAdded:Connect(function(player)
     Remote:FireAllClients(player) -- pass which player joined
end)

on the client

remote.OnClientEvent:Connect(function(player)
    -- now we can do whatever we want and use the "player" value that was passed through
end)

this is what happens when i use fireallclients
On one client:


And on the other client:

This thread is getting way too long everyone is just repeating themselves at this point.

Yeah that would work too because it fires all the players / acts like the server so it shows all players

ik you only need a server script
ALSO he doesn’t need a billboardGui
and I was only fixing the code he gave me

I know he can change the billboardgui that was my code

for Example to show him :slight_smile:

you don’t need FireAllClients tho XD

I didn’t come up with it your replying to me lol XD

no I said he didn’t want a billboard gui at all
he is just using normal gui