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

This script spams a message constantly, what's wrong with it? [UNANSWERED]

Asked by 10 years ago

So there's a problem with this script. It spams "Voting Time:", over, and over again. Just constantly. It does it even if there isn't 2 players in the game. Does anyone know the error? Here's the script.

001Maps = {"Wobbly Bridge","Tower Of Magic"}
002 
003Time_Per_Round = 60
004 
005HowLongMessageLasts = 5
006 
007HowLongVotingPeriodLasts = 15
008 
009MessageToBeStated = "Seconds Left: "
010 
011Option = 1
012 
013COLOR = 1
014 
015function Op1()
View all 179 lines...

3 answers

Log in to vote
0
Answered by 10 years ago

Replace:

01repeat
02 
03            a = HowLongVotingPeriodLasts
04 
05            wait(1)
06 
07            m = Instance.new("Message", Workspace)
08 
09            m.Text = "Voting Time: "
10 
11            a = a - 1
12 
13            wait(1)
14 
15until a == 0

with:

1local m = Instance.new("Message", game.Workspace)
2 
3m.Text = "Voting Time: "
4 
5wait(HowLongVotingPeriodLasts)
6 
7m:Destroy()

This should work

Ad
Log in to vote
0
Answered by
mymw 5
10 years ago
01local ChrNum = {"39563808","80254","1","48705637","15861410","42943434"}
02 
03 
04 
05 
06 
07 
08 
09 
10 
11 
12 
13 
14 
15 
View all 75 lines...
0
Oops. I put in the wrong script. I don't know a script to replace it with. mymw 5 — 10y
0
Remove this, this has nothing to do with the original question. Nickoakz 231 — 10y
Log in to vote
0
Answered by
Nickoakz 231 Moderation Voter
10 years ago

Its flooding one message for a reason.. Look harder.

01Maps = {"Wobbly Bridge","Tower Of Magic"}
02Time_Per_Round = 60
03HowLongMessageLasts = 5
04HowLongVotingPeriodLasts = 15
05MessageToBeStated = "Seconds Left: "
06Option = 1
07COLOR = 1
08function Op1()
09    m = Instance.new("Message", Workspace)
10    m.Text = "Map Selected: ".. MAP .."!"
11    wait(3)
12    m:Destroy()
13end
14function Op2()
15    m = Instance.new("Message", Workspace)
View all 92 lines...

Answer this question