Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local Sound = Instance.new("Sound") -- Insert the sound
  2. Sound.Parent = script.Parent
  3. Sound.SoundId = 'http://www.roblox.com/asset/?id=(ExampleID)' -- Change the Sounds ID
  4. Sound.Volume = .5 -- Ajust volume of sound
  5.  
  6. function startglow(gui)
  7. for i = 1, 0.5, -0.1 do
  8. gui.BackgroundTransparency = I
  9. end
  10. end
  11.  
  12. function endglow(gui)
  13. for i = 0.5, 1, 0.1 do
  14. gui.BackgroundTransparency = I
  15. end
  16. end
  17.  
  18. function hover()
  19. script.Parent.Sound:Play() -- Hover to make sound play?
  20. startglow(script.Parent.Glow)
  21. end
  22.  
  23. function hover2()
  24. endglow(script.Parent.Glow)-- Hover out to make glow vanish?
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement