1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
local rnd1,rnd2,rnd3,color addhook("minute","changecolor") function changecolor() rnd1 = tostring(math.random(0,255)) rnd2 = tostring(math.random(0,255)) rnd3 = tostring(math.random(0,255)) color = ("0"):rep(3-#rnd1)..rnd1..("0"):rep(3-#rnd2)..rnd2..("0"):rep(3-#rnd3)..rnd3 end addhook("say","coloredtext") function coloredtext(id,txt) 	for k,v in ipairs(admin) do 		if player(id,"usgn") == v then 			msg("©255255255(Admin)"..player(id,"name").." : © "..color.." "..txt) 			return 1 		end 	end 	for k,v in ipairs(mod) do 		if player(id,"usgn") == v then 			msg("©255255255(Moderator)"..player(id,"name").." : © "..color.." "..txt) 			return 1 		end 	end 	for k,v in ipairs(vip) do 		if player(id,"usgn") == v then 			msg("©255255255(VIP)"..player(id,"name").." : © "..color.." "..txt) 			return 1 		end 	end end
Could anyone point out the mistake in here ? I get error
1
46:Attempt to concatenate upvalue 'color' (a nil value)
But I'm preety sure I concatenated everything fine. I don't need a working remake. Fix of this script or even better a simple answer telling what's wrong will suffice. Thanks in advance