Advertisement
OnFireRobloxScriptin

Click to change tip/hint GUI Script

Feb 1st, 2024
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. --//Variables
  2. local textbutton = script.Parent --Variable for Tip/Hint GUI
  3. local tips = { --Table for tips, to add more, go down a line, write tip in quotes, then add a comma at the end
  4.     "Fun Fact1: [insert cool fact about game]", --Feel Free to replace what is inside the quotes and delete/add any tips you want!
  5.     "Fun Fact2: [insert cool fact about game]",
  6.     "Fun Fact3: [insert cool fact about game]",
  7.     "Tip1: [Tip Here]",
  8.     "Tip2: [Tip Here]",
  9.     "Tip3: [Tip Here]",
  10.     "Hint1: [Hint Here]",
  11.     "Hint2: [Hint Here]",
  12.     "Hint3: [Hint Here]",
  13. } --End table
  14.  
  15. --//Manual
  16. textbutton.MouseButton1Click:Connect(function() --When user clicks on the button
  17.     textbutton.Text = tips[math.random(1, #tips)] --Choose a random tip
  18. end)
  19.  
  20. --//Automatic (Delete the next few lines if you don't want an automatic tip selector)
  21. while task.wait(5) do --Every 5 seconds
  22.     textbutton.Text = tips[math.random(1, #tips)] --Choose a random tip
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement