#Change animation.
1 messages · Page 1 of 1 (latest)
I just need somehow to change the player's animation i dont know if you can do it using remote event
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
Well idk how to do tht
Thats why i made this i literally said that im kinda new to this
Well try?
and if u got errors just post it in this channel
or maybe someone can make it for you
Maybe this and this can help you : https://create.roblox.com/docs/animation/using
https://create.roblox.com/docs/reference/engine/enums/AnimationPriority
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
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