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 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
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