Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do I script a winner message?

Asked by 2 years ago
Edited 2 years ago

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?

0
This is not a requesting site. Try it yourself first! Unpopularising 77 — 2y
0
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. :) HeyItzDanniee 222 — 2y
1
^ 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. dog6779 25 — 2y
0
^ well it's bad to be lazy User#19524 170 — 2y
1
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. Dirtyhobo1993 -6 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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.

0
Bad answer, this is not FE RedcommanderV2 1256 — 2y
0
I will try something like that. Thank you. Dirtyhobo1993 -6 — 2y
0
This IS FE, ClickDetector replicates instantly without the need of remotes. tiraner300 903 — 2y
Ad

Answer this question