#LOOK THIS ANIM, IT CANT GO BRUH

1 messages · Page 1 of 1 (latest)

gleaming garden
fresh sapphire
#

The Default animate script never plays the run animation. It only plays the walk animation

#

So you'd have to change the first Argument of the function playAnimation to "run"

#

or just change the walk animation id instead

gleaming garden
#

Tu

#

Ty*

fresh sapphire
#

Np

gleaming garden
#

@fresh sapphire i already changed the walk anim

fresh sapphire
gleaming garden
#

ok

#

like

#

humanoid.runing...

#

like this?

fresh sapphire
#

Humanoid.running just detects if the player moves at all

gleaming garden
#

how can i make this mechanic?

fresh sapphire
#

thats why its used for walking as well

gleaming garden
#

ok

#

.

#

are you here?

fresh sapphire
# gleaming garden how can i make this mechanic?

The last time I made a running script is quite a while ago so this might not be the best approach. But i remeber that i just detected if the player was pressing shift / ctrl and then i changed their WalkSpeed. And for the animation I just stopped all animations (with the stopAllAnimations function in the default animate script) and changed the walk animationId property.

gleaming garden
#

i need to use input service right?

fresh sapphire
#

yea

gleaming garden
#

how can i make my own stopallanims on my code, because idk how to use stopAllAnism functions

#

i will try

fresh sapphire
gleaming garden
#

do you have your code print?

#

ok

fresh sapphire
gleaming garden
#

im bad with english sorry

#

im from brazil

fresh sapphire
#

Im from germany but what do you mean with "my code print"?

gleaming garden
#

if do you have a print from your shift/ctrl script

#

and the stopall

#

@fresh sapphire

#

what i need to do in this function

summer bloomBOT
#

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

gleaming garden
#

@fresh sapphire are you here?

fresh sapphire
#

Sorry i was eating dinner i am back now

fresh sapphire
gleaming garden
#

Idk What is bindable event @fresh sapphire

#

Sorry I’m just 2 months on studio

fresh sapphire
#

its like a RemoteEvent but it communicates beetwen two scripts of the same kind. Local -> Local or Server -> Server

gleaming garden
#

I know how to do shift run to animation but idk hoe to stop anim to play the run anim

#

@fresh sapphire

gleaming garden
#

How*

fresh sapphire
#

Did you look into BindableEvents?

gleaming garden
#

Yeah, I watch tutorials videos but I don’t understand

#

I’m watching a tuturial right now

#

Bindable is a ever whe can create right?

fresh sapphire
#

alr. When your done create a BindableEvent that is connected with your animate Script. And whener the Player presses shift you just fire that bindableEvent to use the stopAllAnimations() function in the animate script

fresh sapphire
gleaming garden
#

Ok, but why I need stopallanims to play one

#

Do we have a better form?

#

How we can stopallanims to play the run and walk anim

fresh sapphire
#

Oh yeah and you also need to play the walk animation again using the playAnimation() function

fresh sapphire
#

So you have to stop the animation and then play the walking animation again

gleaming garden
#

All this in animate script?

fresh sapphire
summer bloomBOT
#

studio** You are now Level 17! **studio

gleaming garden
#

We stop like this

Stopallanims = true

If stopallanims == true then

fresh sapphire
gleaming garden
#

Idk because im bad with anims code sorry😞

fresh sapphire
#

so like this:

stopAllAnimations()

playAnimation(<animationName>, <transitionTime>, <humanoid>)
fresh sapphire
#

But its not only animation code. Functions are very important for all kinds of code

gleaming garden
gleaming garden
#

I Will try now

fresh sapphire
#

ok

gleaming garden
#

Do I need to delete My serverscript service script?

fresh sapphire
#

And how does it look like

gleaming garden
#

I Will print wait a minute Plis

#

local Players = game:GetService("Players")

local function onCharacterAdded(character)
-- Obter o animador no humanoide
local humanoid = character:WaitForChild("Humanoid")
local animator = humanoid:WaitForChild("Animator")

-- Parar todas as trilhas de animação
for _, playingTrack in animator:GetPlayingAnimationTracks() do
    playingTrack:Stop(0)
end

local animateScript = character:WaitForChild("Animate")
animateScript.walk.WalkAnim.AnimationId = "rbxassetid://71054155356164"
animateScript.run.RunAnim.AnimationId = "rbxassetid://113949475625566"
--animateScript.jump.JumpAnim.AnimationId = "rbxassetid://"
--animateScript.idle.Animation1.AnimationId = "rbxassetid://"
--animateScript.idle.Animation2.AnimationId = "rbxassetid://"
--animateScript.fall.FallAnim.AnimationId = "rbxassetid://"
--animateScript.swim.Swim.AnimationId = "rbxassetid://"
--animateScript.swimidle.SwimIdle.AnimationId = "rbxassetid://"
--animateScript.climb.ClimbAnim.AnimationId = "rbxassetid://"

end

local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end

Players.PlayerAdded:Connect(onPlayerAdded)

fresh sapphire
#

nah keep it

gleaming garden
#

ok

#

look

fresh sapphire
#

Replace <> with the information

#

like for <RunAnim> you do "walk"

gleaming garden
#

ok

fresh sapphire
#

and transitionTime is a number so do maybe 0 or 0.1

fresh sapphire
#

WHY ARE YOU MAKING A NEW FUNCTION

gleaming garden
#

sorry

fresh sapphire
#

its ok

gleaming garden
fresh sapphire
gleaming garden
#

ok