#How do i make an animation play when i click a GUI button?

30 messages · Page 1 of 1 (latest)

tepid flower
#
  1. When you are defining humanoid, change the FindFirstChild to WaitForChild

  2. Open the console (F9) and click the button, lmk if any text highlighted in red or yellow appears

timid birch
#

i'll test

tepid flower
timid birch
#

don't mind "music" i just didn't rename it yet

tepid flower
#

change the character variable to be:

local character = player.CharacterAdded:Wait()
#

my bad that wont work

#

I fixed it now

timid birch
#

ok lemme try

graceful elbowBOT
#

studio** You are now Level 1! **studio

tepid flower
timid birch
tepid flower
# timid birch

oh yeah thats the problem

game.Players.LocalPlayer only works on localscripts

meaning you have to make a localscript and copy and paste your code from the regular script

timid birch
#

oh ok

#

let me try

#

uh, it won't play the animation but there are no errors

#

what the hell did i do to my script 💀

tepid flower
#

what to do

timid birch
#

at this point do i just start over

tepid flower
#

probably idk

jagged pawn
#

are you there?

timid birch
#

sorry i was sleeping

timid birch
#

im a noob in scripting lol

timid birch
#

ok solved

#

i just

#

did this code