Can you tween a part?

Can you make a part that chases you using tween service? Like is that really possible? (It only chases you, it doesn’t wander around the map)

1 Like

Smthing like this maybe help?

local Game = game
local Workspace = workspace
local TweenService = Game:GetService("TweenService")
local Players = Game:GetService("Players")
local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()

local Part = Instance.new("Part")
Part.Anchored = true
Part.Parent = Workspace

while true do
	local Tween = TweenService:Create(Part, TweenInfo.new(0.3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {CFrame = Character:GetPivot()})
	Tween:Play()
	Tween.Completed:Wait()
end

Change some of the values if necessary.

1 Like

Does that apply only on one player?

No, but it would only be visible to the client

Well, I want it to be in the Server, should I change the script with some adjustments using Server Script?

Yeah it would have to be a server script, which then yes, you would need to make adjustments

1 Like

Yes, the script would need to be adjusted for it to work on the server-side.

Also worth nothing that tweens on the server are less performant than they are on the client.