|
| 21 Aug 2017 04:10 PM |
player = game.Players.LocalPlayer character = player.Character or player.CharacterAdded:Wait() mouse = game.Players.LocalPlayer:GetMouse()
enabled = true tool = script.Parent
mouse = game.Players.LocalPlayer:GetMouse()
animation = script:WaitForChild('Animation') animation2 =script:WaitForChild("Animation2") animation3 =script:WaitForChild("Animation3") finalkick = "kick" cooldown = true
handle = script.Parent.Handle
tool.Activated:connect(function(anime) if cooldown == true then cooldown = false local anime = player.Character.Humanoid:LoadAnimation(animation) print(anime) local current = anime current:Play() tool.Handle.Sound1:Play() wait(2) cooldown = true end
if cooldown == true then cooldown = false local banime = player.Character.Humanoid:LoadAnimation(animation2) print(banime) local current = banime current:Play() tool.Sound1:Play() tool.Handle.Sound1:Play() wait(2) print(finalkick) finalkick = true wait(.2) print(finalkick) if finalkick == true then local baanime = player.Character.Humanoid:LoadAnimation(animation3) print(baanime) local current = baanime current:Play() player.Character.Humanoid.WalkSpeed = 0 tool.Sound1:Play() tool.Handle.Sound1:Play() wait(2) player.Character.Humanoid.WalkSpeed = 16 cooldown = true end end
so im making it so when each time the u click u do a diff animation like comboing and stuff but it just loops it instead of doing that |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2017 04:13 PM |
| can someone tell me what i should change to make it work ?? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 21 Aug 2017 06:24 PM |
| Logic it out, what in the above code do you expect to change the animation each time you use the tool? |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2017 06:55 PM |
| Like when i press once it plays all at one but, what im trying to do is make it so it plays each time u click, ill try amd figure it out |
|
|
| Report Abuse |
|
|
|
| 21 Aug 2017 09:16 PM |
| nvm i figured it out all i did was just reread my animation |
|
|
| Report Abuse |
|
|