|
| 08 Aug 2017 04:29 PM |
| It's not playing the animation: local anim = Instance.new("Animation") anim.AnimationId = ######################################### script.Parent.Equipped:connect(function(mouse) local playAnim = humanoid:LoadAnimation(anim) playAnim:Play() end) |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2017 04:30 PM |
local anim = Instance.new("Animation") anim.AnimationId = "(Hashtags)"
script.Parent.Equipped:connect(function(mouse) local playAnim = humanoid:LoadAnimation(anim) playAnim:Play() end)
|
|
|
| Report Abuse |
|
|
|
| 08 Aug 2017 04:42 PM |
| and something went B U M P in the night. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2017 04:49 PM |
| It's for playing an animation when a tool is equipped. |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2017 04:50 PM |
| is there an error in the output? do you own the animation and are you using it in your own place? |
|
|
| Report Abuse |
|
|
|
| 08 Aug 2017 04:51 PM |
| I don't think there's any error output. Yes I own the place, and I'm using the equip animation from the swordpunch gear. |
|
|
| Report Abuse |
|
|
| |
|
HeIix
|
  |
| Joined: 19 Jan 2013 |
| Total Posts: 253 |
|
|
| 08 Aug 2017 04:57 PM |
What's the priority?
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 08 Aug 2017 05:15 PM |
| wiki.roblox.com/index.php?title=API:Enum/AnimationPriority |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 06:59 PM |
| There is no priority because it fetches the animation from the website and plays it. I couldn't find any script that would play the animation that I put in the tool upon equipping. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 07:01 PM |
| oh I see it's an enum to put in the script, but I'm not very good at scripting so I'm confused. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 07:10 PM |
Oh sorry there is an error output
It says "Unknown Global: Humanoid" |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Aug 2017 07:28 PM |
| Dude how hard could it be, I just want a tool to play an animation when equipped. I'll pay one of you if you want. |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2017 07:32 PM |
--{{Variables}}-- Player = game.Players.LocalPlayer repeat wait() until Player.Character ~= nil Character = Player.Character Tool = script.Parent Animation = Tool.Animation
--//Script\\-- function onEquip() --When you equip Animate = Character.Humanoid:LoadAnimation(Animation) --Loads the animation wait() --Waits for the animation to load Animate:Play() --Plays the animation end --Ends the function
function unEquip() --When you unequip Animate:Stop() --Stops the animation end --Ends the function
--%%Functions%%-- script.Parent.Equipped:connect(onEquip) --Connects the onEquip function when you equip script.Parent.Unequipped:connect(unEquip) --Connects the unEquip function when you unequip |
|
|
| Report Abuse |
|
|