This isn't a request site, but to help you get started I'll give you this:
You could start by having two IntValues
- one for each team - to act as a counter for each team's number of points. You can come up with how/when you want points added to these however you want.
Then you could make another script with two functions that get called whenever either one of the IntValues' value changes. You could do this by doing for example:
RedPoints.Changed:connect(function)
and BluePoints.Changed:connect(function)
.
These could lead to individual functions that will check the number of points for each team.
Inside these functions you could have if statements to check if one of the teams has exceeded a certain number of points needed to win.
Here's a little script to help you get started:
01 | function RedChecker(points) |
03 | game.Workspace.RedSound:Play() |
08 | function BlueChecker(points) |
10 | game.Workspace.BlueSound:Play() |
14 | game.Workspace.RedPoints.Changed:connect(RedChecker) |
15 | game.Workspace.BluePoints.Changed:connect(BlueChecker) |
Closed as Not Constructive by Shawnyg and EzraNehemiah_TF2
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?