Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = owner
- local Character = Player.Character
- Clicked = false
- local UIS = game:GetService("UserInputService")
- local sound = Instance.new("Sound",Character)
- sound.SoundId = "rbxassetid://1889651067"
- sound.Looped = true
- sound.Volume = 10
- UIS.InputBegan:Connect(function(Input)
- if Input.KeyCode == Enum.KeyCode.F then
- sound:Play()
- Clicked = true
- elseif Clicked == true then
- sound:Stop()
- Clicked = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement