of     1   

GuestIchiro
#141123800Tuesday, July 22, 2014 2:19 AM GMT

button = script.Parent asset = button.DanceAsset gui = button.Parent player = gui.Parent.Parent char = player.Character humanoid = char.Humanoid function Click() if humanoid:findFirstChild("AnimationController") then local controller = humanoid.AnimationController if controller:findFirstChild("DanceAnimation") then dance = controller.DanceAnimation dance.AnimationId = asset.Value local animation = humanoid:LoadAnimation(dance) animation:Play() end end end button.MouseButton1Click:connect(Click) Meant to play an animation
GuestIchiro
#141123964Tuesday, July 22, 2014 2:21 AM GMT

buump
HuntHello
#141124038Tuesday, July 22, 2014 2:22 AM GMT

telling us of any errors will help expedite the process of fixing the script (and increases the chance of someone replying).
GuestIchiro
#141124394Tuesday, July 22, 2014 2:26 AM GMT

when button is pressed , animation wont play / nothing shows up on output relating to this
GuestIchiro
#141124586Tuesday, July 22, 2014 2:28 AM GMT

bump
HuntHello
#141124702Tuesday, July 22, 2014 2:29 AM GMT

any errors in output? or do you not know what output is?
GuestIchiro
#141124827Tuesday, July 22, 2014 2:30 AM GMT

I viewed the output , there are no errors displayed when i press the button . Or does an animation have to be public to be used?
UncleTaz
#141125023Tuesday, July 22, 2014 2:32 AM GMT

Is this in a local script?
GuestIchiro
#141125247Tuesday, July 22, 2014 2:35 AM GMT

No it is part of a gui in startergui
UncleTaz
#141125565Tuesday, July 22, 2014 2:39 AM GMT

... lol , seriously? I mean what is the code in? A "LocalScript" or "Script"
GuestIchiro
#141125791Tuesday, July 22, 2014 2:41 AM GMT

Script
BlackTheHacker
#141126480Tuesday, July 22, 2014 2:49 AM GMT

Put it in Local Script

    of     1