#Change animation.

1 messages · Page 1 of 1 (latest)

solar moat
#

I need to make a remote event which if fired, will change the local players animations. Keep in mind i am new and i may do mistakes.

#

I just need somehow to change the player's animation i dont know if you can do it using remote event

gaunt lintel
#

What do you mean? I mean you just need to override the animation with another one, and the new animation should have a higher priority

#

I guess

solar moat
#

Thats why i made this i literally said that im kinda new to this

gaunt lintel
#

and if u got errors just post it in this channel

#

or maybe someone can make it for you

shrewd vector
#

starting an animation on the humanoid should override the default ones, doesnt it?

#

to load an animation (really simple script u can implement) u can just do this:

local player = game.Players.LocalPlayer

local character = player.Character or player.CharacterAdded:Wait()

local humanoid = character:FindFirstChildOfClass("Humanoid")

local animator = humanoid:FindFirstChildOfClass("Animator")

local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://1234567"

local loaded_animation = animator:LoadAnimation(animation)

#

then doing loaded_animation:start() or loaded_animation:stop() will play or stop the animation

solar moat
#

ig ill trz something..

#

and thanks for help

solar moat
#

it didnt really work

#

Mouse.KeyDown:Connect(function(key)
if (key == 'q') then
game.ReplicatedStorage.Transform:FireServer("POWER")
local animation = Instance.new("Animation")
animation.AnimationId = "rbxassetid://89301415887327"
local POWERAnimation = animator:LoadAnimation(animation)
POWERAnimation:start()
end
end)

#

This is what i did

#

ofc i did label teh player, character, humanoind and animator

#

it says that start isnt a member

#

i think there should be play instead

#

wait

#

i might got it

amber comet
#

you dont need a remote to change the local player's animations.

#

just simply change them on the client

solar moat
#

ik

#

im trying to cook something

solar moat
#

yess

#

i got it