Advertisement
jerrellsuper123

Untitled

Jul 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local Player = owner
  2. local Character = Player.Character
  3. Clicked = false
  4. local UIS = game:GetService("UserInputService")
  5.  
  6. local sound = Instance.new("Sound",Character)
  7. sound.SoundId = "rbxassetid://1889651067"
  8. sound.Looped = true
  9. sound.Volume = 10
  10.  
  11. UIS.InputBegan:Connect(function(Input)
  12. if Input.KeyCode == Enum.KeyCode.F then
  13. sound:Play()
  14. Clicked = true
  15.  
  16. elseif Clicked == true then
  17. sound:Stop()
  18. Clicked = false
  19. end
  20. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement