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!