#SAB style game

1 messages · Page 1 of 1 (latest)

cursive widget
#

having trouble like assigning animations to a specific mutation. my code below (doesnt display animations)
["Recruit"] = {
Rarity = "Common",
Price = 100,
MoneyPerSecond = 1,

        Icon = "rbxassetid://137595576045934",
        
        IdleAnimation = "rbxassetid://6926033633",
        WalkAnimation = "rbxassetid://507777826",
        CarryAnimation = "rbxassetid://94421863925055",

        Mutations = {
            Default = {
                IdleAnimation = "rbxassetid://6926033633",
                WalkAnimation = "rbxassetid://507777826",
                CarryAnimation = "rbxassetid://94421863925055",
            },
            Evolved = {
                IdleAnimation = "rbxassetid://106889390112862",
                WalkAnimation = "rbxassetid://93605365222407",
                CarryAnimation = "rbxassetid://94421863925055",
            }
        },

        BuySound = "rbxassetid://138857089980331",
        StealSound = "rbxassetid://138857089980331"
    },

below works
["Skeleton"] = {
Rarity = "Common",
Price = 99999999,
MoneyPerSecond = 1,

        Icon = "rbxassetid://116462124628929",

        IdleAnimation = "rbxassetid://102815981480960",
        WalkAnimation = "rbxassetid://122558826459516",
        CarryAnimation = "rbxassetid://94421863925055",

        BuySound = "rbxassetid://92250065289522",
        StealSound = "rbxassetid://92250065289522"
    },
void sparrow
#

it doesnt display any animations?

#

do you have any script that plays animations

#

can i see that

cursive widget
#

currently using that as a template

#

otherwise this should be the normal script, being used default or not

#

["Skeleton"] = {
Rarity = "Common",
Price = 99999999,
MoneyPerSecond = 1,

        Icon = "rbxassetid://116462124628929",

        IdleAnimation = "rbxassetid://102815981480960",
        WalkAnimation = "rbxassetid://122558826459516",
        CarryAnimation = "rbxassetid://94421863925055",

        BuySound = "rbxassetid://92250065289522",
        StealSound = "rbxassetid://92250065289522"
    },

it works

cursive widget
void sparrow
#

hmmm

cursive widget
#

it should uave :Play() right?

void sparrow
#

yes

cursive widget
#

if so i found some code

#

if IdleTrack then IdleTrack:Play() end

closest thing i can find to the characters though
or this

local WalkTrack
if Configuration.WalkAnimation and Configuration.WalkAnimation ~= "" then
local WalkAnimation = Instance.new("Animation")
WalkAnimation.Name = "WalkAnimation"
WalkAnimation.AnimationId = Configuration.WalkAnimation
WalkAnimation.Parent = AnimationsFolder

    WalkTrack = Animator:LoadAnimation(WalkAnimation)
end

are these revelant?

void sparrow
#

it is relevant yes

#

im wondering what idletrack is defined as tho

cursive widget
#

sry if i can't find stuff 😭

cursive widget
#

im q new to studio so

cursive widget
#

local IdleTrack
if Configuration.IdleAnimation and Configuration.IdleAnimation ~= "" then
local IdleAnimation = Instance.new("Animation")
IdleAnimation.Name = "IdleAnimation"
IdleAnimation.AnimationId = Configuration.IdleAnimation
IdleAnimation.Parent = AnimationsFolder

    IdleTrack = Animator:LoadAnimation(IdleAnimation)
end
#

this should be it, yes?