--SCRIPT TEST its not my finally script
local RunService = game:GetService("RunService")
local Model = workspace.Model
local ModelHumanoid = Model.Humanoid
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character.HumanoidRootPart:: BasePart
local function onHeartbeat(dt: number)
local distance = (Model.HumanoidRootPart.Position - humanoidRootPart.Position).Magnitude
if distance <= 50 then
Model.HumanoidRootPart.CFrame:Lerp(humanoidRootPart.CFrame, 1)
end
end
RunService.Heartbeat:Connect(onHeartbeat)