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 8 years ago
game.Players.PlayerAdded:connect(function(p)

if p.Name == "fireboltofdeath" then

p.Chatted:connect(function(c)

if c == "BanMode" then

game.Workpace.Banning.Disabled = not game.Workpace.Banning.Disabled

end

end

end)

end)

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 — 8y
0
Yes, it stops after if c =="BanMode" fireboltofdeath 635 — 8y
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 — 8y
0
I know.. fireboltofdeath 635 — 8y

1 answer

Log in to vote
1
Answered by
xAtom_ik 574 Moderation Voter
8 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!):

game.Players.PlayerAdded:connect(function(p)

if p.Name == "fireboltofdeath" then

p.Chatted:connect(function(c)

if c == "BanMode" then

game.Workspace.Banning.Disabled = not game.Workpace.Banning.Disabled

end

end)

end

end)
0
Doesn't work >:0 fireboltofdeath 635 — 8y
0
Just kidding fireboltofdeath 635 — 8y
0
Hah, good job. Always a classic to make spell errors like that. darkelementallord 686 — 8y
1
Hello friends I think you guys r rlly kewl Davdanther 0 — 8y
Ad

Answer this question