Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Antes de você começar a programar, coloque os nomes como eu pus ou, se você quer os nomes como você quer, me contacte no Discord mistr#1111
- -------------------------------------------------------------------------
- local Tool = script.Parent
- local Handle = Tool.Handle
- local Anim = script.Parent.Animation
- local Sound = Handle.Slash
- local Used = false
- Tool.Activated:connect(function()
- local plr = Tool.Parent
- local AnimTrack = plr.Humanoid:LoadAnimation(Anim)
- if Used == false then
- Used = true
- Handle.CanTouch = true
- AnimTrack:Play()
- Sound:Play()
- wait(.5) -- ponha o tempo de cooldown
- Handle.CanTouch = false
- Used = false
- elseif Used == true then
- -- não ponha nada aqui
- end
- end)
- Handle.Touched:connect(function(hit)
- local Humanoid = hit.Parent:FindFirstChild("Humanoid")
- if Humanoid and Handle.CanTouch == true then
- Humanoid:TakeDamage(10) -- defina o dano que voce quer
- Handle.CanTouch = false
- end
- end)
- ---------------------------------------------------------------
- Se você quiser usar meu ID de Animação, aqui está : 7984769712.
- Lembre-se, ponha o "SetAnimationProperty" com "Action".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement