|
| 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 |
|
|
|
| 26 Apr 2017 06:22 PM |
| bumping because its close to going to the second page |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 26 Apr 2017 06:25 PM |
oops wait jk nvm!! just read again
|
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 06:26 PM |
| Currently its located in the StarterPack. |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 26 Apr 2017 07:35 PM |
| bump 4. Man am I ever gonna get this problem solved? |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Apr 2017 08:03 PM |
put prints and see if its just the animation not being loaded
|
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
| |
|
| |
|
| |
|
|
| 26 Apr 2017 11:26 PM |
its something with the animation being loaded in
|
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 11:26 PM |
did you put in the animation id?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 28 Apr 2017 05:48 PM |
| is my problem seriously not gonna be solved |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2017 05:49 PM |
| is it even ur or ROBLOX's animation? |
|
|
| Report Abuse |
|
|
|
| 28 Apr 2017 05:53 PM |
| just use cframe animation, its not hard. |
|
|
| Report Abuse |
|
|