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

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

Asked by 2 years ago

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!

0
you can use the GuiObject.Visible property JesseSong 3916 — 2y
0
you can set the position with UDim2 and then use math.random to randomize JustinWe12 723 — 2y
0
you can set the position with UDim2 and then use math.random to randomize JustinWe12 723 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

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
Ad

Answer this question