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

PlayerAdded won't work?

Asked by 9 years ago
01game.Players.PlayerAdded:connect(function(p)
02 
03if p.Name == "fireboltofdeath" then
04 
05p.Chatted:connect(function(c)
06 
07if c == "BanMode" then
08 
09game.Workpace.Banning.Disabled = not game.Workpace.Banning.Disabled
10 
11end
12 
13end
14 
15end)
16 
17end)

As I have said before, my output broke. Shows no errors.

0
Then have you tried debugging by putting in lots of prints? Nickoakz 231 — 9y
0
Yes, it stops after if c =="BanMode" fireboltofdeath 635 — 9y
0
You do know, that if you don't lowercase the text, you will need to say it with capsensitive. 'BanMode', not 'banmode'. Nickoakz 231 — 9y
0
I know.. fireboltofdeath 635 — 9y

1 answer

Log in to vote
1
Answered by
xAtom_ik 574 Moderation Voter
9 years ago

1: You spelt Workspace wrong, you put "Workpace"

2: Your ")" at the ends of the "end" are wrong

Fixed Script (It was tested!):

01game.Players.PlayerAdded:connect(function(p)
02 
03if p.Name == "fireboltofdeath" then
04 
05p.Chatted:connect(function(c)
06 
07if c == "BanMode" then
08 
09game.Workspace.Banning.Disabled = not game.Workpace.Banning.Disabled
10 
11end
12 
13end)
14 
15end
16 
17end)
0
Doesn't work >:0 fireboltofdeath 635 — 9y
0
Just kidding fireboltofdeath 635 — 9y
0
Hah, good job. Always a classic to make spell errors like that. darkelementallord 686 — 9y
1
Hello friends I think you guys r rlly kewl Davdanther 0 — 9y
Ad

Answer this question