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
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.
Marked as Duplicate by DeceptiveCaster, DeveloperSolo, and RubenKan
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?