I am making a brick follow a player every 1 second, I am aware rocketpropulsion exists but I wanna use tweenservice instead.
Every time the code is ran the tween happens but it doesn’t tween to players torso but instead tweens somewhere else into the workspace.
local tweenService = game:GetService("TweenService")
function Move606(Torso)
local SCP = game.Workspace["606"]
local WallMove = {CFrame = SCP.CFrame * Torso.CFrame}
local Info = TweenInfo.new(2)
wait()
tweenService:Create(SCP, Info, WallMove):Play()
wait(1)
end
script.Parent.Touched:Connect(function(player)
if player.Name == "UpperTorso" then
local name = player.Parent.Name
local magnitude = 0
while magnitude <= 30 do
local magnitude = (workspace["606"].Position - player.Position).Magnitude
if magnitude <= 30 then
Move606(player)
end
wait(1)
end
end
end)