#bug animation

1 messages · Page 1 of 1 (latest)

tawny quartz
sturdy coral
#

can't you just do animaton:stop() in the same function that deletes the bed

long thistle
#

Or use a remote event to connect the bed delete and the anim

tawny quartz
#

okayy i will tryy

tawny quartz
long thistle
#

Do you know how to work with events?

#

Remote and blindable?

tawny quartz
#

no...

long thistle
#

They're essential

#

You should learn

#

It will worth your time

#

(If you're an scripter)

tawny quartz
#

yea im

#

thx brotha

#

bro

#

i don't understand

#

i don't find the fonction to destroy the bed

#

@sturdy coral

sturdy coral
#

can you show the script

tawny quartz
#

sure

#

so ??

sturdy coral
#

im not sure 100% sure but if loaded then might be stopping it?

tawny quartz
#

idk bro im stuck :/

#

i can try to just put the animation stop at the end

#

nahh not working

tawny quartz
#

@sturdy coral how can fix my problem :C

sturdy coral
#

i copied the script and tool in studio and it works for me. so can you show me your explorer for the tool?

tawny quartz
#

yea but this is when the part destroy him self

#

the animation don't stop

tawny quartz
sturdy coral
tawny quartz
sturdy coral
#

this is literally all i did

tawny quartz
#

me its not a too

#

tool

#

its a model

sturdy coral
#

cant you just insert the model into the tool and weld it

tawny quartz
#

uhh

novel galleonBOT
#

studio** You are now Level 7! **studio

tawny quartz
#

okayy i will try

#

not working

#

@sturdy coral

sturdy coral
#

can you friend minionkim on roblox? i need to be a firend to share a model

tawny quartz
#

okok suree

sturdy coral
#

ok you should have permission now

#

i didnt weld eeverything but it works enough to give you the idea

#

can you see it now?

tawny quartz
#

yess

#

yess but let me explain

#

i just want the animation to stop

sturdy coral
#

can you show the script for the green thing that gets rid of your tool then?

#

if the item is deleted the script doesnt detect it as an unequip

tawny quartz
sturdy coral
#

can you show the next 27 lines

tawny quartz
#

click on this arrow to see more

sturdy coral
#

local function onChildRemoved(child)
if child:IsA("Tool") then
for i, animation in pairs(Humanoid:GetPlayingAnimationTracks()) do

        if animation.Name == "Idle" then animation:Stop() end -- Name animations same as tools

    end        

end

end

Character.ChildRemoved:Connect(onChildRemoved)

tawny quartz
#

where do i put this

sturdy coral
#

in a local script in starterplayer. thats where the script you gave me was right?

#

also replace "Idle" witht hename of the animator

tawny quartz
sturdy coral
novel galleonBOT
#

studio** You are now Level 6! **studio

sturdy coral
#

the name of my animator is "Animation" if yours is different replacce the line i mentioned earlier

tawny quartz
#

okay ? i will try

#

because my local script is in my model

sturdy coral
#

make another local script inside startercharacter

tawny quartz
#

okay

#

there is some error

tawny quartz
sturdy coral
#

local Players = game:GetService("Players")
local lp = Players.LocalPlayer

local char = lp.Character or lp.CharacterAdded:Wait()
local humanoid = char:FindFirstChildOfClass("Humanoid")
-- Helper to get character and humanoid

local function onChildRemoved(child)
if child:IsA("Tool") then
for i, animation in pairs(humanoid:GetPlayingAnimationTracks()) do

        if animation.Name == "Animation" then animation:Stop() end -- Name animations same as tools

    end

end

end

char.ChildRemoved:Connect(onChildRemoved)

tawny quartz
#

ITS WORK

#

BRO

#

THANKS YOU SO MUCH

#

DAMN

#

😭

sturdy coral
#

nice

tawny quartz
#

ur a life safer

#

bro ur tuff