Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I script a winner message?

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?

5 comments

0

This is not a requesting site. Try it yourself first!

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. :)

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.

0

^ well it's bad to be lazy

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.

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.