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

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

Asked by 7 years ago

Please include the code which you are trying to use, so the community will be better-equipped to help you with your problem.

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!

1
Can you give us a script to fix? You can't expect us to WORK for you. Please supply us a code. Thanks EzraNehemiah_TF2 3552 — 7y
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? Paintertable 171 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago
Edited 7 years ago

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!"
Ad

Answer this question