I want it to turn red upon a random number.
calltime = math.random(3,60)
prank = math.random(1,2)
phone = script.Parent
while true do
wait(calltime)
phone.Call:play()
function onClicked(playerWhoClicked)
phone.Call:Stop()
phone.Pickup:Play()
if prank == 1 then
game.StarterGui.ScreenGui.Frame.TextLabel.TextColor3 = Color3.new(251,255,0)
else
game.StarterGui.ScreenGui.Frame.TextLabel.TextColor3 = Color3.new(255,0,0)
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
end
I already have a gui, and it has its own script to have its parent be the localplayer's playergui.

5 comments
how do i do that?
thanks a bunch!
You could also use fromRGB so you don't have to divide; ie TextLabel.TextColor3 = Color3.fromRGB(251,255,0)
I want it to be a random color between red, and yellow. how do i do that?
Do math.random(0,255)