Results Gui not working!

Hey,
So I have a results gui, but it isn’t working!
The doge get’s displayed, but the other players don’t! The template doesn’t appear in the PlayerList frame!
Script:

local ReplicatedStorage = game:GetService('ReplicatedStorage')
local Events = ReplicatedStorage:WaitForChild('Events')
local OutcomeText = script.Parent.Frame:WaitForChild('Outcome')

Events.ShowResults.OnClientEvent:Connect(function(PlayingPlayers,Winners,Doge,Outcome)
	OutcomeText.Text = Outcome
	script.Parent.Frame.Doge.DogeName.Text = Doge.Name
	script.Parent.Frame:TweenPosition(UDim2.new(0.267, 0,0.288, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1)
	for i, PlayingPlayer in pairs(PlayingPlayers) do
		if not PlayingPlayer:FindFirstChild('DogeTag') then
			local Cloned = ReplicatedStorage.Template:Clone()
			Cloned.PlayerName.Text = PlayingPlayer.Name
			Cloned.Parent = script.Parent.Frame.PlayerList
			if table.find(Winners,PlayingPlayer) then
				Cloned.Results.TextColor3 = Color3.fromRGB(89, 255, 0)
				Cloned.Results.Text = 'ESCAPED'
			else
				Cloned.Results.TextColor3 = Color3.fromRGB(255,0,0)
				Cloned.Results.Text = 'LOST'
			end
		end
	end
end)

I get no errors, thanks for any help!

1 Like

You can do all these actions on the Server instead of on the client.
Example:

for _, v in ipairs(game.Players:GetChildren()) do
	
	local playerGui = v.PlayerGui;
	
	-- Code.
end

Can you show where it fires, like event:FireClient(arguments)

local Outcome
		
		if #PlayingPlayers <= 1 then
			Outcome = 'Doge Won'
		end
		
		if Status.Value == '00:00' then
			Outcome = 'Time Over'
		end
		
		if #Winners >= 1 then
			Outcome = 'Players Escaped'
		end
		
		wait(.2)
		
		Events.ShowResults:FireAllClients(PlayingPlayers,Winners,Doge,Outcome)