-- Open source cuz why not
-- thx to glowxfy
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
-- Reference to the player's Animator object
local animator = humanoid:WaitForChild("Animator")
-- New walk animation
local newWalkAnimationId = "rbxassetid://1083216690" -- Replace with your new walk animation ID
local walkAnimation = Instance.new("Animation")
walkAnimation.AnimationId = newWalkAnimationId
-- Load the new walk animation
local walkAnimationTrack = animator:LoadAnimation(walkAnimation)
-- Function to play the new walk animation
local function playWalkAnimation()
humanoid.Running:Connect(function(speed)
if speed > 0 then
if not walkAnimationTrack.IsPlaying then
walkAnimationTrack:Play()
end
else
if walkAnimationTrack.IsPlaying then
walkAnimationTrack:Stop()
end
end
end)
end
-- Set the walking speed to be faster
humanoid.WalkSpeed = 50 -- Increase this number to make the character walk faster
-- Teleport position
local teleportPosition = Vector3.new(-157.32, 15.54, -408.16)
-- Destination to walk to after teleporting
local walkPosition = Vector3.new(-247.39, -11.84, -409.77)
-- Function to teleport the character to a specific position
local function teleportTo(position)
humanoidRootPart.CFrame = CFrame.new(position)
end
-- Function to make the character walk to a specific position
local function walkTo(position)
humanoid:MoveTo(position)
humanoid.MoveToFinished:Wait() -- Wait until the character reaches the destination
end
-- Main function to execute teleport and walk
local function teleportAndWalk()
-- Teleport the character
teleportTo(teleportPosition)
-- Walk to the next position
walkTo(walkPosition)
end
-- Play the new walk animation
playWalkAnimation()
-- Execute the teleport and walk sequence
teleportAndWalk()
-- Reset the walking speed after teleportation and walking
humanoid.WalkSpeed = 16
To embed this project on your website, copy the following code and paste it into your website's HTML: