Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local anim = Instance.new("Animation")
- local anim2 = Instance.new("Animation")
- local plr = game.Players.LocalPlayer
- local RL = plr.Character:FindFirstChild("Right Leg")
- local RA = plr.Character:FindFirstChild("Right Arm")
- anim.AnimationId = "rbxassetid://2041022437"
- anim2.AnimationId = "rbxassetid://2023452617"
- function clicked(Key)
- if Key == "c" then
- local an = plr.Character.Humanoid:LoadAnimation(anim)
- an:Play()
- wait(0.10)
- RL.Touched:connect(function(hit)
- local human = hit.Parent:FindFirstChild("Humanoid");
- if human then
- human.Health = 0;
- end
- end)
- wait(1.20)
- script.Disabled = true
- wait(0.1)
- script.Disabled = false
- end
- end
- game.Players.LocalPlayer:GetMouse().keyDown:connect(clicked)
- function clicked(Key)
- if Key == "e" then
- local an2 = plr.Character.Humanoid:LoadAnimation(anim2)
- an2:Play()
- wait(0.10)
- RA.Touched:connect(function(hit)
- local human = hit.Parent:FindFirstChild("Humanoid");
- if human then
- human.Health = 0;
- end
- end)
- wait(1.20)
- script.Disabled = true
- wait(0.1)
- script.Disabled = false
- end
- end
- game.Players.LocalPlayer:GetMouse().keyDown:connect(clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement