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

Output: "An error occured". Anyone know the problem?

Asked by 10 years ago

Anyone know why this might be bugging out?

01oldcolor = BrickColor.new("Toothpaste");
02newcolor = BrickColor.new("Toothpaste");
03times = 0;
04 
05game.Players.PlayerAdded:connect(function(plr)
06plr.Changed:connect(function(prop)
07print("hi")
08if(plr[prop] == plr.TeamColor) then
09print("hi1")
10times = times+1;
11if(times <= 1) then
12print("first")
13oldcolor = plr[prop];
14newcolor = plr[prop];
15end
View all 47 lines...

Answer this question