Carrotoplia
(Carrotopliani)
September 17, 2023, 9:43pm
#1
I an trying to replace the walk animation with a custom one.
here is my code.
it prints “loaded” always without errors
the animation itself does work but it is not replacing the walk animation.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Animations = ReplicatedStorage.Animations
local Character = script.Parent
local Animate = Character:WaitForChild("Animate")
local RunHolder = Animate:WaitForChild("run")
local Animation = RunHolder:FindFirstChildOfClass("Animation")
Animation.AnimationId = "rbxassetid://14810055488"
print("loaded")
2 Likes
Boustifail
(Boustifail)
September 17, 2023, 9:49pm
#2
Did you try to look at the LocalScript Animate inside the character?
2 Likes
Carrotoplia
(Carrotopliani)
September 17, 2023, 9:49pm
#3
yeah.
not the actual scripts contents though. (like code)
2 Likes
Boustifail
(Boustifail)
September 17, 2023, 9:53pm
#4
You created another Animate script or replaced the lines inside the roblox Animate script?
2 Likes
Carrotoplia
(Carrotopliani)
September 17, 2023, 9:56pm
#5
this script doesn’t replace the normal animate script or at least I am pretty sure
I named it “Reanimator” and put it in starter character scripts.
it still plays the default animation even though it successfully modifies that value
1 Like
Boustifail
(Boustifail)
September 17, 2023, 9:57pm
#6
Then try to replace manually on the script Animate
1 Like
Carrotoplia
(Carrotopliani)
September 17, 2023, 9:57pm
#7
as in copy it from the character and put it in character scripts and modify the animation id myself?
1 Like
Boustifail
(Boustifail)
September 17, 2023, 9:59pm
#8
Yes, i suggest this. also, you can try something else before modifying it. I found this on a post but not sure if it will work:
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
wait(3)
char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://YOURANIMATIONID"
char.Animate.run.RunAnim.AnimationId = "rbxassetid://YOURANIMATIONID"
end)
end)
Hi, I am currently trying to create my own game, but I got a problem.
I would like to change the Default Roblox Walking Animation, and replace it by my own animations.
It makes 4 hours that I’m trying to fix it, but I unfortunatly failed; and it’s slowly making me crazy.
My game is using R15 and I own the animations I tried to use.
I tried to:
-Loop and Unloop the animations
-Creating a script who deletes/disable the default script, to create a new one
-Replacing the script using StarterC…
1 Like
Carrotoplia
(Carrotopliani)
September 17, 2023, 10:02pm
#9
Ah I think I figured out the problem
I have to edit the walk animation on the server
I did a small modification cleaning up that script if anyone ends up reading this and wants it
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local Animate = Character:WaitForChild("Animate")
Animate.walk.WalkAnim.AnimationId = "rbxassetid://YOURIDHERE"
Animate.run.RunAnim.AnimationId = "rbxassetid://YOURIDHERE"
end)
end)
2 Likes
system
(system)
Closed
October 1, 2023, 10:02pm
#10
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.