Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Qualquer problema me contacte no Discord mistr#2399, DMs abertas.
- ------------------------------------------------------------------
- local uis = game:GetService("UserInputService")
- local plr = game.Players.LocalPlayer
- local mouse = plr:GetMouse()
- local event = game:WaitForChild("ReplicatedStorage").powerEvent
- local char = plr.Character
- local hum = char:WaitForChild("Humanoid")
- local key = Enum.KeyCode.**TECLA DO PODER**
- local db = false
- local animTrack = hum:LoadAnimation(script:WaitForChild("powerAnimation")
- --opcional
- local sound = script.powerSound
- --opcional
- uis.InputBegan:connect(function(input)
- if input.KeyCode == key then
- if not db then
- db = true
- animTrack:Play()
- wait(.2)
- event:FireServer(mouse.Hit.Position)
- elseif db then
- warn(plr.Name..", please wait until debounce is false")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement