#How do i make a script to stop all animations playing 😭 !?!?

155 messages · Page 1 of 1 (latest)

eternal pike
#

plz ahcrying

midnight rapids
#
for i,v in ipairs(animator:GetPlayingAnimationTracks()) do
            
end
#

it returns animationtracks

lofty geyser
#

What the sigma.

midnight rapids
#

you can do v:Stop()

lofty geyser
#

this is Lowkey, skibidi toilet.

midnight rapids
#

rizz ohio

midnight rapids
lofty geyser
#

i didnt even know :GetPlayingAnimationTracks() was a function

eternal pike
#

ACK it didnt work what am i doing wrong

#

im like extremely new to scripting and whatnot.... i put the script in a buttonlabel and i made it a local script and then i saved, should i do anything to fix it..?

midnight rapids
#

did you add the v:Stop()

#

can you show me your script

eternal pike
midnight rapids
#

add v:Stop() inside that function

#

also i suggest you maybe ermmm learn basic scripting

eternal pike
lofty geyser
#

basically

eternal pike
#

ive watched like 5000 tutorials and still dunno what im doing ...

clever ivyBOT
#

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

eternal pike
#

.

lofty geyser
#

learning scripting isn't watching 10 videos and trying to memorise all of them

midnight rapids
#

do you have adhd

eternal pike
#

i know

eternal pike
lofty geyser
#

don't watch a lot ofnvkdeod

#

leanr through actually trying it out

eternal pike
#

my mum thinks i have it and i think i do too

lofty geyser
midnight rapids
eternal pike
#

its so annoying to sit through a really boring tutorial where i forget everything within 2 minutes sad

eternal pike
eternal pike
midnight rapids
#

based on your situation means you do have some kind of it

midnight rapids
#

add v:Stop() in it

eternal pike
#

si

#

okay!

midnight rapids
#

middle

eternal pike
#

like this?

midnight rapids
#

you have to define animator

lofty geyser
#

ye

midnight rapids
#

do
local animator = char.Humanoid.Animator

#

your character variable

lofty geyser
#

make an instance called animator

eternal pike
#

okay :3

lofty geyser
midnight rapids
lofty geyser
#

or are animators in humanoid by default

lofty geyser
#

💀

midnight rapids
#

humanoid:LoadAnimation() 😡
animator:LoadAnimation() 🙂

eternal pike
#

OH

#

i forgot to mention

#

im tryna make a gui button stop all animations when clicked

#

i forgot to mentaion that oopsie daisy

lofty geyser
#

just add mouse button 1 up function

eternal pike
#

iiiii would if i knew how to

midnight rapids
eternal pike
#

i know 0 things about scripting

#

idk hoow my script is meant to look....

lofty geyser
eternal pike
#

help what am i doign!!!>!!?!?

midnight rapids
#

i hope he made it a local script

eternal pike
#

i did

#

i think.

midnight rapids
#

dawg add it before the animator variable 😭

#

are you dyslexic

eternal pike
#

ok i did

lofty geyser
eternal pike
midnight rapids
#

do you not know how basic coding works

#

if you define something with something that no no exist
it no no work

eternal pike
#

I know absolutley nothing about scripting at all besides a little bit of printing and brick colours and whatever

#

i can sorta read scripts but i forget how to write them and what to do immiedelykefo,eks'

#

im just gonna go watch a tutorial even tho ive been looking for one for like an entire hour 💀 toodles!

midnight rapids
#

alvin blox

#

i suggest him

#

forums docs also work

eternal pike
#

what the skibidi is forum docs

clever ivyBOT
#

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

tardy heron
midnight rapids
#

forums, docs

eternal pike
#

can i just copy and paste a full script bcs when someone gives me a script and doesnt add smth and doesnt tell me in detail what to do i get rly confused and i just wanna finish my game 💔

midnight rapids
#

use chat gpt 😭

#

i don't got time man

tardy heron
#

oh he needs a script that stops all animations

eternal pike
tardy heron
#

lemme ask chatgpt

midnight rapids
#

he no no understand shit

eternal pike
#

and im not asking JUST you im just asking for one in general dood

#

if u dont got time just don do it and ill wait for someone else to help

tardy heron
#
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")

-- Function to stop all animations
local function stopAllAnimations()
    local animations = humanoid:GetPlayingAnimationTracks()
    for _, animationTrack in pairs(animations) do
        animationTrack:Stop()
    end
end

-- Call the function to stop animations
stopAllAnimations()
eternal pike
#

does that look like it'd work chat

tardy heron
#

local script

tardy heron
eternal pike
#

okily dokily

tardy heron
#

but it should work

eternal pike
#

So do i make a local script, cnp the script in then finish? or do i need anything else?

tardy heron
#

you need to stop animations when you join game??

#

if no, this script is useless

eternal pike
#

nuh uh i wanna make a script where when i click a button it stops custom animations

tardy heron
#

oh so

#

ima give you example

eternal pike
#

im tryna make a rp game and the animations were going good till i got to the looping parts :'))

#

(looping parts as in, the animations that loop and dont stop)

tardy heron
#
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local button = script.Parent
function stopAllAnimations()
    local animations = humanoid:GetPlayingAnimationTracks()
    for _, animationTrack in pairs(animations) do
        animationTrack:Stop()
    end
end

button.MouseButton1Click:Connect(function()
  stopAllAnimations()
end
```example
eternal pike
#

ooo oki

#

sorry for all the question btw but do i put that in a local script then finish up there or do i needa add anythin?

tardy heron
eternal pike
#

local script or normal script

tardy heron
#

local

eternal pike
#

okay :3

midnight rapids
#

not like he told you 423924392349 times to make it local

eternal pike
#

like oooh sorry i forget things or dont realise they said smth scaryyy

midnight rapids
#

how am i rude if i just point out facts

#

accept the truth!!!!
but seriously i didn't mean for it to offend you

eternal pike
# midnight rapids how am i rude if i just point out facts

ur literally saying shit like "are u dyslexic" or "not like he told u 4932894320 times blah blah" like read back on that?????/ maybe????? like how can u read that and think "oh yes this wont make anyone feel like its backhanded or rude at all!"

midnight rapids
#

i was asking if you were dyslexic

#

why are you accepting it so offensively

eternal pike
#

anywho

midnight rapids
#

does it work now

eternal pike
midnight rapids
#

😔

eternal pike
#

also no it doesnt idk whats going on but im just gonna give up on it 💀

midnight rapids
#

never gonna give you up!!

eternal pike
#

Im putting the local script into the button. Im cnping the script into the local script... and nothing happens

midnight rapids
#

define the button

#

as script.Parent

eternal pike
#

idk what to do anymore so i might just scrap the entire game its too stressfull for me 💀

tardy heron
midnight rapids
#

new rapper name

tardy heron
#

fr

eternal pike
tardy heron
#

it doesn't stop animations?

eternal pike
#

no

#

i think my roblox is broken

#

All i wanted was a Buttonlabel that stops all animations when u click it dawg

#

that stops all animations on the person clicking it btw..

clever ivyBOT
#

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

eternal pike
tardy heron
#

it should

eternal pike
#

OMG i asked the assisant thing on roblox to make the code and it worked...........

midnight rapids
#

wild

eternal pike
#

thanks for the help guyz but somehow the roblox assisant won but thanksies anyways for helping ^_^!!!!!!!!!