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()
#the else statement isnt running
9 messages · Page 1 of 1 (latest)
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
1 was missing