Im trying to make a script where this character follows you like a “pet” and its not very smooth:
External MediaScript:
task.spawn(function()
rs.Heartbeat:Connect(function()
if char:GetAttribute("Summoned") then
stand.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame * CFrame.new(1,1,2)
else
local ts3 = TS:Create(stand.HumanoidRootPart,TweenInfo.new(0.3,Enum.EasingStyle.Linear,Enum.EasingDirection.InOut,0,false,0),{CFrame = char:WaitForChild("HumanoidRootPart").CFrame})
ts3:Play()
ts3.Completed:Wait()
stand:Destroy()
end
end)
end)