Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

PlayerAdded won't work?

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.

4 comments

0

Then have you tried debugging by putting in lots of prints?

0

Yes, it stops after if c =="BanMode"

0

You do know, that if you don't lowercase the text, you will need to say it with capsensitive. 'BanMode', not 'banmode'.

0

I know..

1 answer

✓ Accepted answer

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)

4 comments

0

Doesn't work >:0

0

Just kidding

0

Hah, good job. Always a classic to make spell errors like that.

1

Hello friends I think you guys r rlly kewl

This discussion is preserved as it was. New answers, comments, and votes are closed.