#why won't my animation play?

1 messages · Page 1 of 1 (latest)

vague mauve
#

anybody got an idea why my animation won't play is there anything wrong in the code?

local tool = script.Parent
local player = game.Players.LocalPlayer
local rs = game:GetService("ReplicatedStorage")
local cooldown = 0
local busy = false
local baseName = tool.Name

tool.Equipped:Connect(function()
    tool.Parent = player.Backpack
    if busy or cooldown > 0 then return end
    busy = true
    rs.Abilities.Events.GroundSmash:FireServer()

    local plr = game.Players.LocalPlayer
    local humanoid = plr.Character:FindFirstChildOfClass("Humanoid")
    if not humanoid then return end
    local animator = humanoid:WaitForChild("Animator")
    local animation = Instance.new("Animation")
    animation.AnimationId = "rbxassetid://93072075328621"

    local track = animator:LoadAnimation(animation)
    if track then
        print("track valid")
        track.Priority = Enum.AnimationPriority.Action
        track:Play()
    end

    track.Stopped:Connect(function()
        print("ani ended")
        humanoid.WalkSpeed = 18
        humanoid.JumpPower = 50
        humanoid.AutoRotate = true
    end)

    cooldown = 5
    for i = cooldown, 0, -1 do
        tool.Name = baseName .. " (" .. i .. ")"
        task.wait(1)
    end
    tool.Name = baseName
    cooldown = 0
    busy = false
end)
lean stone
#

im prob not the best scripter but i could try fixing

hallow blade
#

try printing the animation length after you play it

vague mauve
#

animation length?

vague mauve
#

also the track.stopped never fires

hallow blade
vague mauve
#

kk

hallow blade
#

see what number it returns

vague mauve
hallow blade
#

are you the owner of the animation?

vague mauve
#

yup

#

just published it

#

the priority is action

#

dunno if that matters much tho

#

should I try to publish it again?

#

I did publish it with a plugin

#

although still the roblox procedures

#

so don't think it'd affect much

#

but I'l ltry with the roblox's official animation player and publish it form there

lean stone
#

like 403

vague mauve
#

wait I tried to play the animation agian this time it said 0.666666666

vague mauve
#

it just published it

vague mauve
#

wait

#

no I didn't

#

but the animation length prints out right now

#

it's 40 frames and it prints out 0.6666666 which is 40/60

#

still can't see animation tho

hallow blade
vague mauve
#

just like an ability thing

lean stone
#

equip to activate

vague mauve
#

u don't hold it

vague mauve
#

supposed to play a ground smash animation I just made

#

ig I can send you the place file if you want

hallow blade
lean stone
#

yea

#

sure

lucid tundraBOT
#

studio** You are now Level 3! **studio

vague mauve
#

aight brb

lean stone
lucid tundraBOT
#

studio** You are now Level 2! **studio

lean stone
#

but maybe putting it at the bottom of the function

#

could fix it

hallow blade
#

because it will break the humanoid

#

when you unnequip and equip a tool

#

strange thigns happen with the humanoid

#

you could use thsi insteadf

vague mauve
#

aight let me try removing it rq

lean stone
#

oh

#

i did forget about that ngl

hallow blade
#

but yea as sparkie says even with that it should play

#

but maybe that is the issue

vague mauve
#

nope still nth even tho I don't unequip

hallow blade
#

because the track length did print

lean stone
vague mauve
lean stone
#

wait actually

#

oh nvm

hallow blade
vague mauve
#

think it's cause you don't have ownership

hallow blade
#

yea prob

vague mauve
#

umm

#

wait

lean stone
#

im gonna re-export it if thats fine with u

vague mauve
#

lemme see if I can send you the animation so u can publish or smth

vague mauve
lean stone
#

its also looped i havent chcked if u handle that but im gonna unloop it

#

uhm

vague mauve
#

oh kk

lean stone
#

are you sure you set the avatar settings to r6

vague mauve
#

oh I Forgot that but my avatar is r6

#

lemme try tho

#

wait

lean stone
#

the thing is your bodyheightscale is locked to r15

#

instead of just using scale

#

so its uhm

#

not good

vague mauve
#

wut

#

oh snap

#

wtf they moved the avatar tab to where??????????

lean stone
vague mauve
#

omd I hate ts I'm on linux using vinegar for roblox studio when it opens a new window I can't interact with it

#

same thing with the animation

#

thingy

#

I'm gonna kms

#

lemme try restarting

lean stone
#

what

#

what is a linuxu sing vinegar

#

😭

vague mauve
#

linux using vinegar*

#

vinegar basically porting roblox studio to linux

lean stone
#

oh thats cool

lean stone
#

bad idea

vague mauve
#

lmao

lean stone
#

boss.Character:ScaleTo(3)

#

humanoid.WalkSpeed = 16

#

done

#
local rs = game:GetService("ReplicatedStorage")
local countdownEvent = rs.CountdownEvent
local Players = game:GetService("Players")
local RoleService = require(game.ServerScriptService.RoleService)

Players.PlayerAdded:Connect(function()
    if #Players:GetPlayers() >= 1 then    
        local countdown = 1
        countdownEvent:FireAllClients(countdown)
        print("Fired cooldown event")

        for i = countdown, 0, -1 do
            task.wait(1)
            countdown -= 1
        end

        local boss = RoleService.GetBoss()
        if boss then
            for _, item in ipairs(boss.Backpack:GetChildren()) do
                if item:IsA("Tool") then
                    item:Destroy()
                end
            end

            for _, item in ipairs(boss.Character:GetChildren()) do
                if item:IsA("Tool") then
                    item:Destroy()
                end
            end


            local humanoid = boss.Character:WaitForChild("Humanoid")

            boss.Character:ScaleTo(3)
            --humanoid.BodyHeightScale.Value = 3
            --humanoid.BodyWidthScale.Value = 3
            --humanoid.BodyDepthScale.Value = 3
            humanoid.MaxHealth = 5000
            humanoid.Health = 5000
            humanoid.WalkSpeed = 16

            for _, tool in ipairs(rs.Abilities.Tools:GetChildren()) do
                tool:Clone().Parent = boss.Backpack
            end
        end

    end
end)
#

heres ur script

vague mauve
#

ummm if I use scale to character kinda freeaking out rn

lean stone
#

rlly

vague mauve
#

yup

#

I fucking tripped on the spawn thingy and fell face o nthe ground 😭

#

also my character like flying or smth + vibrating

lean stone
#

works fine with me

vague mauve
#

did yo uget the animation working?

lean stone
#

i re-exported it under my name

#

u need to replace the string

vague mauve
lean stone
#

replace the animation.animationid

#

thats it

vague mauve
#

so wait did you only change the scale thing and it works for u?

#

replace the animation.animationid with what? wdym

lean stone
lean stone
#

i just replaced that the localscript is fine

vague mauve
#

but mine doesn't work even when I removed the scaling

#

WAIT A DAMN SECOND

#

WTF ROBLOX

#

even tho my character doesn't move like an r15 I can see the extra limbs ong

#

dude

#

my character is r6 and

#

I set the game

#

thingy to r6

lean stone
#

:/

vague mauve
#

dude the avatar thingy is so weird what am I supposed to change exactly doN't I only have to change the last part to r6

#

why is my avatar r15 helllllllllllllllllllp

lean stone
#

I DONT KNOW

#

UHM<

vague mauve
#

OH

#

WIAT

#

I WAS CHANGING ANIMATIONS TO R6

lean stone
#

?

vague mauve
#

WHY IS THE BUILD TO CHANGE R6 AND R15 ON THE 3 DOTS

#

ARE WE FAT

#

wait lemme retry now

#

umm

lucid tundraBOT
#

studio** You are now Level 4! **studio

vague mauve
#

headscale doesn't work anymore

#

wait

#

no

#

what am I saying

#

I forgot to remove that

#

ig

#

OMG

#

FINALLY

#

I SEE THE ANIMATION

#

thank you sparkie!!!

#

what would u rate the animation btw

#

is it fire or is it fire

#

but thank you so much gng mb I was stupid ig

#

or

#

actually not me

#

fuck you roblox

#

wtf are these new menus gng

lean stone
#

hi

#

yes

lean stone
#

bvut

#

its ok

#

u can do better

vague mauve
lean stone
#

3/14159

vague mauve
#

WHY'D IT GET WORSE

#

it's not that bad

#

is it

lean stone
#

its chopped

#

dont apply for animnator

vague mauve
lean stone
#

ok bye

#

have fun

vague mauve
#

bye ...