Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Sound = Instance.new("Sound") -- Insert the sound
- Sound.Parent = script.Parent
- Sound.SoundId = 'http://www.roblox.com/asset/?id=(ExampleID)' -- Change the Sounds ID
- Sound.Volume = .5 -- Ajust volume of sound
- function startglow(gui)
- for i = 1, 0.5, -0.1 do
- gui.BackgroundTransparency = I
- end
- end
- function endglow(gui)
- for i = 0.5, 1, 0.1 do
- gui.BackgroundTransparency = I
- end
- end
- function hover()
- script.Parent.Sound:Play() -- Hover to make sound play?
- startglow(script.Parent.Glow)
- end
- function hover2()
- endglow(script.Parent.Glow)-- Hover out to make glow vanish?
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement