Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Main\\--
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- --//Debounce\\--
- local taunting = false
- --//Making Dab Animation\\--
- local dab = Instance.new("Animation",game.Players.LocalPlayer)
- dab.AnimationId = "rbxassetid://1824991240"
- dab.Name = "Dab"
- --//Create Sound Function\\--
- function createSound(SoundID,Looped,Volume,Parent,Name)
- local sound = Instance.new("Sound",Parent)
- sound.Looped = Looped
- sound.Volume = Volume
- sound.SoundId = SoundID
- sound.Name = Name
- sound:Play()
- sound.Ended:Connect(function()
- sound:Destroy()
- end)
- end
- --//Functions\\--
- function Dab()
- createSound("http://www.roblox.com/asset/?id=1087356234",false,1,player.Character.Head,"Bass")
- taunting = true
- local PlayDabAnimation = player.Character.Humanoid:LoadAnimation(dab)
- PlayDabAnimation:Play()
- warn("You dabbed")
- wait(4)
- PlayDabAnimation:Stop()
- taunting = false
- end
- mouse.KeyDown:Connect(function(key)
- if taunting == false then
- if key == "u" then
- Dab()
- elseif key == "f" then
- print("WIP")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement