1
parse("msg ©"..math.random(0,255)..""..math.random(0,255)..""..math.random(0,255).." message")
Would this work ?
Scripts
How to make random color in message ?
How to make random color in message ?
1

parse("msg ©"..math.random(0,255)..""..math.random(0,255)..""..math.random(0,255).." message")
math.randomseed(os.time())
function rndmsg(text)
	msg("©" .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. text)
end
function fix_part(s)
	s = tostring(s)
	
	local fix = 3 - string.len(s)
	if fix == 1 then return "0" .. s end
	if fix == 2 then return "00" .. s end
	return s
end
mafia_man has writtenmath.randomseed(os.time())
function rndmsg(text)
	msg("©" .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. text)
end
function fix_part(s)
	s = tostring(s)
	
	local fix = 3 - string.len(s)
	if fix == 1 then return "0" .. s end
	if fix == 2 then return "00" .. s end
	return s
end
local randques = math.random(1,25) if randques == 1 then text = "text text text" elseif randques == 2 then text = "text bla text" elseif randques == 3 then text = "random text bla bla"
mafia_man's code. Call the function rndmsg(with your text here) randomQuestion = {
	'Are we strangers to love?',
	'Do you know the rules?',
	'Are you thinking of a full commitment?',
	'Would you get this from any other guy?',
	'Do you want to tell how you're feeling?',
	'Do you understand?',
	'Are you gonna give me up?',
	'Are you gonna let me down?',
	'Are you gonna run around and desert me?',
	'Are you gonna make me cry?',
	'Are you gonna say goodbye?',
	'Are you gonna tell a lie and hurt me?'
}
local question = randomQuestion[math.random(1, #randomQuestion)]
Rainoth: Yes. Random message is possible as well. question = {"sup bro","wazzap?","how are you?","u liek pie?"}
function rndq()
	return question[math.random(1,#question)]
end
mafia_man's code so:rndmsg(rndq)
addhook("usebutton","school")
function school(id,x,y)
	if (x==40 and y==42) then
		math.randomseed(os.time())
		function rndmsg(rndq)
			msg("©" .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. text)
		end
	end
end
function fix_part(s)
s = tostring(s)
local fix = 3 - string.len(s)
if fix == 1 then return "0" .. s end
if fix == 2 then return "00" .. s end
return s
end
question = {"Why is the sky blue ?","Who found USA ?","Josh's father has 4 children. Jack John Jill. What's 4th childs name ?","What are the colors of the rainbow ?","If you shoot 1 out of 10 birds. How many are left ?","You have 2 cakes. I give you 60 and then you eat all of them. What do you have ?","Green ray of light passes a glass of wine and lands on wall. What's color of ray on wall ?","sin 90 = ?","2+2x2x3x3x2 = ?","Who found North America ?","What's the capital of Spain/Italy/France/Lithuania/Poland/Russia/Japan/China/USA ?","Which came first Chicken or the Egg ?"}
function rndq()
return question[math.random(1,#question)]
end
math.randomseed(os.time())
function fix_part(s)
	s = tostring(s)
	local fix = 3 - string.len(s)
	if fix == 1 then return "0" .. s end
	if fix == 2 then return "00" .. s end
	return s
end
function rndmsg(text)
	msg("©" .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. text)
end
question = {"Why is the sky blue ?","Who found USA ?","Josh's father has 4 children. Jack John Jill. What's 4th childs name ?","What are the colors of the rainbow ?","If you shoot 1 out of 10 birds. How many are left ?","You have 2 cakes. I give you 60 and then you eat all of them. What do you have ?","Green ray of light passes a glass of wine and lands on wall. What's color of ray on wall ?","sin 90 = ?","2+2x2x3x3x2 = ?","Who found North America ?","What's the capital of Spain/Italy/France/Lithuania/Poland/Russia/Japan/China/USA ?","Which came first Chicken or the Egg ?"}
function rndq()
	return question[math.random(1, #question)]
end
addhook("usebutton","school")
function school(id,x,y)
	if x == 40 and y == 42 then
		rndmsg(rndq())
	end
end
mafia_man has writtenmath.randomseed(os.time())
function fix_part(s)
	s = tostring(s)
	local fix = 3 - string.len(s)
	if fix == 1 then return "0" .. s end
	if fix == 2 then return "00" .. s end
	return s
end
function rndmsg(text)
	msg("©" .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. fix_part(math.random(0,255)) .. text)
end
question = {"Why is the sky blue ?","Who found USA ?","Josh's father has 4 children. Jack John Jill. What's 4th childs name ?","What are the colors of the rainbow ?","If you shoot 1 out of 10 birds. How many are left ?","You have 2 cakes. I give you 60 and then you eat all of them. What do you have ?","Green ray of light passes a glass of wine and lands on wall. What's color of ray on wall ?","sin 90 = ?","2+2x2x3x3x2 = ?","Who found North America ?","What's the capital of Spain/Italy/France/Lithuania/Poland/Russia/Japan/China/USA ?","Which came first Chicken or the Egg ?"}
function rndq()
	return question[math.random(1, #question)]
end
addhook("usebutton","school")
function school(id,x,y)
	if x == 40 and y == 42 then
		rndmsg(rndq())
	end
end
1
