Part don't follow my mouse / BUG

Hello everyone, i have a problem with a part, it don’t follow the mouse correctly : (
Help me

Here the situation :
Here the code :

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()

local PartToFollow = game.ReplicatedStorage.GroundCollectPart:Clone()
PartToFollow.Parent = game.Workspace

mouse.TargetFilter = PartToFollow

local TwS = game:GetService("TweenService")

local TInfo = TweenInfo.new(
	0.1,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.InOut,
	0,
	false,
	0
)

wait()

while wait() do
	local TheTween = TwS:Create(PartToFollow, TInfo, {CFrame = CFrame.new(mouse.Hit.p)})
	TheTween:Play()
end

Just by judging your video, the part is not anchored.

I’m very dumb :sweat_smile: , sorry , i will verify the anchored now xd

1 Like

Your part doesn’t need to be anchored, but rather you need to change this to renderstepped.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.