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

How do I make a Brick that when it touched it's gonna say = " The Player " v... " Has won!"?

I got an Round script . There is a intermission ( 30 secs ) Then it says " Get ready to teleport " and u get teleported into a Random math map that I made. I got 2 Problems.

First Problem is that not all Players are getting teleported at the same time. I did not put a wait between something there or something like that. It is cause of the Map size it's getting teleported with. Any ideas how to fix that? Any new teleport script? And second it that I got a main script in serverscriotservice and i want to put a Brick into my maps when a player touch it its gonna say who won and ends the script. I'm an advanced scripted not an Beginner so I know something. Please help me :) I would apreciate it!

2 comments

1

Can you give us a script to fix? You can't expect us to WORK for you. Please supply us a code. Thanks

0

I can't at the moment cause I'm not on PC. hm could u tell me then how I can conect the brick script with my main scriot?

1 answer

✓ Accepted answer

I think you should do this. And make the winner name a global variuble of Winner for this to work

while true do
print(game.Players.Winner.Name.." has won!")
wait()--put the amount of time each round lasts
end

So if the winner is Bob then it will say "Bob has won!" In case u dont know how to make a global variuble, do this

_G.VariubleNameHere = VariubleDefinitionHere

Or to make the server see it, do

Instance.new(Message, game.Workspace) --Tell me if i did this part wrong
game.Workspace.Message.Text = game.Players.Winner.Name.." has won!"

This discussion is preserved as it was. New answers, comments, and votes are closed.