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

Use .Random( ) to change font of text randomly?

Asked by 3 years ago
while wait(0.1) do
local Gui = script.Parent
Gui.Frame.TextLabel.Font.Random()
end

2 answers

Log in to vote
1
Answered by 3 years ago

You have to set the property you want to change equal to something. There are 45 values for the font enumeration so you want to get a random number between 1-45.

Gui.Frame.TextLabel.Font = math.random(1,45) 

Let me know if this works for you.

0
Thanks Radiant_Sparkles 69 — 3y
Ad
Log in to vote
1
Answered by 3 years ago

You could try:

while wait (0.1) do
local Gui = script.Parent
Gui.Frame.TextLabel.Font = math.random(1,10) --In the brackets, write your smallest and largest random number
end

Try this - it could work! Let me know if it is useful!

Answer this question