generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: help me out a bit

Previous Thread :: Next Thread 
TheSecondKid is online. TheSecondKid
Joined: 29 Apr 2015
Total Posts: 134
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
TheSecondKid is online. TheSecondKid
Joined: 29 Apr 2015
Total Posts: 134
21 Aug 2017 04:13 PM
can someone tell me what i should change to make it work ??
Report Abuse
TheSecondKid is online. TheSecondKid
Joined: 29 Apr 2015
Total Posts: 134
21 Aug 2017 04:27 PM
bump
Report Abuse
TheSecondKid is online. TheSecondKid
Joined: 29 Apr 2015
Total Posts: 134
21 Aug 2017 06:18 PM
bump
Report Abuse
Casualist is not online. 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
TheSecondKid is online. TheSecondKid
Joined: 29 Apr 2015
Total Posts: 134
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
TheSecondKid is online. TheSecondKid
Joined: 29 Apr 2015
Total Posts: 134
21 Aug 2017 09:16 PM
nvm i figured it out all i did was just reread my animation
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image