Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lr = game.Players.LocalPlayer
- ms = plr:GetMouse()
- ms.KeyDown:connect(function(k)
- chr = plr.Character
- if (k:lower() == 'r') and chr and (not deb) then
- deb = true
- hum = chr:FindFirstChild('Humanoid')
- if hum then
- game.ReplicatedStorage.EffectHandler:InvokeServer("SwordSkill", 3)
- wait(3)
- end
- deb = false
- end
- end)
- plr = game.Players.LocalPlayer
- ms = plr:GetMouse()
- deb = false
- ms.KeyDown:connect(function(k)
- chr = plr.Character
- if (k:lower() == 'f') and chr and (not deb) then
- deb = true
- hum = chr:FindFirstChild('Humanoid')
- if hum then
- anim = hum:LoadAnimation(game.ReplicatedStorage.Database.Animations.SwordSkill1)
- game.ReplicatedStorage.EffectHandler:InvokeServer("SwordSkill", 3)
- anim:Play()
- wait(3)
- end
- deb = false
- end
Add Comment
Please, Sign In to add comment