Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

how could i make a text label appear on screen at random times and a random place?

basically i want to make a text label appear on the screen at a random time and a random place on my screen. im very new to using guis n stuff so explanation would be awesome, thanks!

4 comments

0

you can use the GuiObject.Visible property

0

you can set the position with UDim2 and then use math.random to randomize

0

you can set the position with UDim2 and then use math.random to randomize

1 answer

Here's a template u can use

Gui = [insert gui object here]
Panel = Gui.Panel

While true do

     wait(math.random(1,10))

     Panel.Position = UDim2.new(0, math.random([screen width]), 0, math.random([screen height]))
     Panel.Visible = true

     wait(1) -- dissapear after a second

     Panel.Visible = false

end

This discussion is preserved as it was. New answers, comments, and votes are closed.