-- Define player and character references
local player = game.Players.LocalPlayer
local character = player.Character
-- Return if character does not exist
if not character then return end
-- Find Humanoid or AnimationController and stop all animations
local humanoidOrAnimController = character:FindFirstChildOfClass("Humanoid") or character:FindFirstChildOfClass("AnimationController")
if humanoidOrAnimController then
-- Check if the object is a Humanoid and set the WalkSpeed to 26
if humanoidOrAnimController:IsA("Humanoid") then
humanoidOrAnimController.WalkSpeed = 26
end
for _, animTrack in ipairs(humanoidOrAnimController:GetPlayingAnimationTracks()) do
animTrack:Stop()
end
end
-- Modify animation IDs if Animate object exists
local animate = character:FindFirstChild("Animate")
if animate then
local animations = {
fall = "616157476",
walk = "656121766",
run = "656118852",
idle1 = "17189742051",
idle2 = "17189745445"
}
if animate:FindFirstChild("fall") then
animate.fall.FallAnim.AnimationId = "http://[Log in to view URL]" .. animations.fall
end
if animate:FindFirstChild("walk") then
animate.walk.WalkAnim.AnimationId = "http://[Log in to view URL]" .. animations.walk
end
if animate:FindFirstChild("run") then
animate.run.RunAnim.AnimationId = "http://[Log in to view URL]" .. animations.run
end
if animate:FindFirstChild("idle") then
animate.idle.Animation1.AnimationId = "http://[Log in to view URL]" .. animations.idle1
animate.idle.Animation2.AnimationId = "http://[Log in to view URL]" .. animations.idle2
end
end
To embed this project on your website, copy the following code and paste it into your website's HTML: