Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I script a winner message?

Asked by 6 years ago
Edited 6 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! User#21527 0 — 6y
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 252 — 6y
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 — 6y
0
^ well it's bad to be lazy User#19524 175 — 6y
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 — 6y

1 answer

Log in to vote
0
Answered by 6 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 User#20388 0 — 6y
0
I will try something like that. Thank you. Dirtyhobo1993 -6 — 6y
0
This IS FE, ClickDetector replicates instantly without the need of remotes. Le_Teapots 913 — 6y
Ad

Answer this question