#the else statement isnt running

9 messages · Page 1 of 1 (latest)

cosmic crypt
#
        local animator = humanoid:FindFirstChildOfClass("Animator")
                if animator then
                    local click = 1
                    local maxclick = 2
                    if click == 1 then
                        local animationTrack1 = animator:LoadAnimation(animation1)
                        click = click + 1
                        print(click)
                        wait(2) 
                        animationTrack1:Play()
                    else
                        wait(1)
                        local animationTrack = animator:LoadAnimation(animation)
                        click = click - 1
                        print(click)
                        wait(2) 
                        animationTrack:Play()
dusky tundra
#

there is no end in script

#

You Can Edit This

#

local animator = humanoid:FindFirstChildOfClass("Animator")

if animator then
local click 1
local max = 2
if click == 1 then
-- Block Of Code
else
-- Script if click ~= 1
end
end

cosmic crypt
#

o ok

#

i do have the ends tho

#

i just didnt copy and paste em

#

@dusky tundra

dusky tundra