I am making a war map so i want the script for the winner, for the guy that kill everybody view that he is the winner
COMMUNITY QUESTION
HOW I MAKE A WINNER SCREEN?
1 answer
DO NOT ASK FOR SCRIPTS NEXT TIME,
This what you should have in order to do that.
-- Script
local Players = game:GetService("Players")
local Remote = workspace:WaitForChild"RemoteEvent"
local function DisplayWinner()
Remote:FireAllClients()
end
-- run the DisplayWinner function once there's a winner
After you've fired all the clients from the Script then you need a LocalScript to handle the rest
-- LOCALSCRIPT
local Players = game:GetService"Players"
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild"PlayerGui"
local Remote = workspace:WaitForChild"RemoteEvent"
local Gui = PlayerGui:WaitForChild"ScreenGui" -- the gui you wants to pop up
local function Open()
Gui.Enabled = true
end
Remote.OnClientEvent:connect(Open)
I hope this helps.
2 comments
0
what. the. hell.
0
why no parenthesis
This discussion is preserved as it was. New answers, comments, and votes are closed.

6 comments
Do not repost the same question, also we are not a request site.
Don't duplicate your questions. It will not get you anywhere.
Please don't post the same question twice in such a short time. This isn't a request website, it's a support one. Try doing it yourself then come back if you have problems.
if you want to close this question vote so for moderation because this guy is annoying me
same for his other question
As DeveloperSolo said this is not a request site, anyways you could use remoteEvents or Function to it there is a method called FireAllClients