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 with sword animation

Previous Thread :: Next Thread 
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 06:02 PM
Hi guys, recently I made a weapon that is a sword that can actually function. My problem is the animation I put alongside it is not working. I'm not really sure how to fix this because this is my first time ever using an animation.

Here's the script, its local fyi.

local CanAttack = true
script.Parent.Activated:connect(function()
local attack = script.Parent.Parent.Humanoid:LoadAnimation(script.Attack)
if CanAttack == true then
attack:Play()
CanAttack = false
wait(1)
attack:Stop()
CanAttack = true
script.Parent.CanDamage.Value = true
end
end)
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 06:22 PM
bumping because its close to going to the second page
Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
26 Apr 2017 06:25 PM
the sword will move from the character model to the backpack folder on equip/unequip so script.parent.parent will be different


Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
26 Apr 2017 06:25 PM
oops wait jk nvm!! just read again


Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 06:26 PM
Currently its located in the StarterPack.
Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
26 Apr 2017 06:27 PM
whats error


Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 06:29 PM
Output isn't saying any errors, but it doesn't seem like its detecting the sword script unless I'm missing it.
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 06:30 PM
Hmph, I see the script that does the damage to the other npcs but I'm not seeing the local script.
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 06:46 PM
bump 2
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 07:16 PM
bump 3 q-q
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 07:35 PM
bump 4. Man am I ever gonna get this problem solved?
Report Abuse
iiJaguar_Cub is online. iiJaguar_Cub
Joined: 28 Jun 2016
Total Posts: 627
26 Apr 2017 07:36 PM
Bumpity Bump.
Yw! ;)


Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
26 Apr 2017 08:03 PM
put prints and see if its just the animation not being loaded


Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 08:07 PM
Yup, prints are loading.
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 08:11 PM
So its not the script's fault, but ROBLOX studio's fault for not loading the animation in?
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 08:27 PM
bump
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 08:54 PM
ugh another bump...
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
26 Apr 2017 10:02 PM
:\
Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
26 Apr 2017 11:26 PM
its something with the animation being loaded in


Report Abuse
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
26 Apr 2017 11:26 PM
did you put in the animation id?


Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
27 Apr 2017 05:05 PM
yes I put the ID in
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
27 Apr 2017 09:24 PM
omg.
Report Abuse
Pataponuberness is online. Pataponuberness
Joined: 06 Aug 2011
Total Posts: 446
28 Apr 2017 05:48 PM
is my problem seriously not gonna be solved
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
28 Apr 2017 05:49 PM
is it even ur or ROBLOX's animation?
Report Abuse
imtellingmommy is not online. imtellingmommy
Joined: 10 Mar 2013
Total Posts: 817
28 Apr 2017 05:53 PM
just use cframe animation, its not hard.
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