Advertisement
Stefanuk12

ROBLOX Script Builder Scripts (Chat2Sound) WIP

Jan 5th, 2018
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.53 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. c = Player.Character
  3. mouse = Player:GetMouse()
  4.  
  5. c.Humanoid.MaxHealth = math.huge
  6. c.Humanoid.Health = math.huge
  7. s = Instance.new("Sound", c.Head)
  8. s.Looped = true
  9. s.Volume = 1
  10. Chatt=game:GetService("Chat")
  11.  
  12. ---------------------------------------------------------------------------------------------------
  13.  
  14. c.Humanoid.MaxHealth = math.huge
  15. c.Humanoid.Health = math.huge
  16.  
  17. if Chatt.Chatted == "Play [id]" then
  18.     s.SoundId = "rbxassetid://[id]"
  19.    
  20. end
  21.  
  22.     wait()
  23.     if s.IsPlaying == true
  24.         then s:Stop()
  25.         wait()
  26.         s:Play()
  27.        
  28.         end
  29.        
  30. -------------------------------------------------------------------------------------------------
  31.  
  32. mouse.Button1Down:connect(function()
  33. game:GetService("Chat"):Chat(c, "Stopped : "..s.Name)
  34.         s:Stop()
  35. end)
  36.  
  37. mouse.KeyDown:connect(function(key)
  38.         if key == "[" then
  39.                 s.Volume = s.Volume -.1
  40. game:GetService("Chat"):Chat(c, "Volume Is Now : "..s.Volume)
  41.         end
  42. end)
  43.  
  44. mouse.KeyDown:connect(function(key)
  45.         if key == "]" then
  46.                 s.Volume = s.Volume +.1
  47. game:GetService("Chat"):Chat(c, "Volume Is Now : "..s.Volume)
  48.         end
  49. end)
  50.  
  51. mouse.KeyDown:connect(function(key)
  52.         if key == "-" then
  53.                 s.Pitch = s.Pitch -.1
  54. game:GetService("Chat"):Chat(c, "Pitch Is Now : "..s.Pitch)
  55.         end
  56. end)
  57.  
  58. mouse.KeyDown:connect(function(key)
  59.         if key == "=" then
  60.                 s.Pitch = s.Pitch +.1
  61. game:GetService("Chat"):Chat(c, "Pitch Is Now : "..s.Pitch)
  62.         end
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement