I built a deathmatch in which I am trying to create a script that would announce the player with the most kills at the end of a match, but I can't figure out how to do so. Could anyone give me some assistance?
COMMUNITY QUESTION
How do I script a winner message?
1 answer
Use a Gui. Here is an example:
part = script.Parent
part.ClickDetector.MouseClick:Connect(function()
for _,j in pairs(game.Players:GetPlayers()) do
j.PlayerGui.ScreenGui.TextLabel.Text = "Winner!"
end
end)
If you like, you can also make a sound play when the player clicks the "Win" part.
3 comments
0
Bad answer, this is not FE
0
I will try something like that. Thank you.
0
This IS FE, ClickDetector replicates instantly without the need of remotes.
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
This is not a requesting site. Try it yourself first!
Go on wiki and read about GUI`s and dont ask for a ready made script. And read the rules before you post another question. :)
^ You guy are not really helping at all. This person is not asking to like this example "I need a scripter!" No, you both guys are wrong she wants to know how to. Wow.
^ well it's bad to be lazy
I never came out and asked for a pre-made script. I asked for some guidance. I already attempted it a few times, thank you.