Advertisement
Guest User

ClickForSound (ROBLOX Lua)

a guest
Dec 17th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.28 KB | None | 0 0
  1. -- Made by Eli_90 --
  2.  
  3. local sound = Instance.new("Sound", game.Workspace)
  4. local part = Instance.new("Part", game.Workspace)
  5. local click = Instance.new("ClickDetector", game.Workspace.Part)
  6.  
  7. sound.SoundId = "84768467"
  8.  
  9. part.click.MouseClick:connect(function()
  10. sound:Play
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement