Advertisement
igdegoo

Untitled

Nov 4th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. flash0 = false
  2. flash = coroutine.create(function()
  3. while true do
  4. if flash0 then
  5. script.Parent.TextColor3 = Color3.new(1,1,0)
  6. wait(0)
  7. script.Parent.TextColor3 = Color3.new(1,0,0)
  8. wait(0)
  9.  
  10. end wait(0) end end) --much nicer to have them on one line
  11. coroutine.resume(flash)
  12. script.Parent.MouseEnter:Connect(function()flash0 = true end)
  13. script.Parent.MouseLeave:Connect(function()flash0 = false end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement