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!
COMMUNITY QUESTION
how could i make a text label appear on screen at random times and a random place?
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.

4 comments
you can use the GuiObject.Visible property
more info here: https://developer.roblox.com/en-us/api-reference/property/GuiObject/Visible
you can set the position with UDim2 and then use math.random to randomize
you can set the position with UDim2 and then use math.random to randomize