I'm ag800 and I was able to get a part to fallow me around, yet a Model Won't. Here's CodingDominus help and code. Can anyone help??

--CodingDominus 2016
local Tool = script.Parent

local Player = game:GetService('Players').LocalPlayer

local Brick = game.Workspace:WaitForChild('Brick')

local Clicked = false

local function UpdateMovement(Pet, Base, Position)
		local Direction = CFrame.new(Pet.Position, Base.Position).lookVector
		for i = 1, 10, 2 do
			Pet.CFrame = Pet.CFrame +  (Direction * Position)
			wait(0.05)
			if Clicked == true then
				break
			else
				return
			end
		end
end

local Activated = false

Tool.Equipped:connect(function(Mouse)
	if Activated == false then
		Mouse.Button1Down:connect(function()
			if Clicked == false then
				Clicked = true
				Brick.Name = 'Brick'
				print(Clicked)
			else
				Brick.Name = Player.Name..'Brick'
				Clicked = false
				print(Clicked)
			end
		end)
	end
end)


Tool.Unequipped:connect(function()
	if not Brick.Name == 'Brick' then
		Activated = false
		Brick.Name = 'Brick'
	end
end)

while wait() do
	pcall(function()
		if not Clicked then
			UpdateMovement(Brick, Player.Character.Torso, 0.5)
		end
	end)
end

1 comment

1

Try setting the 'PrimaryPart' property of the model to one of the parts in the model. Then, when you want the entire model to move, you can use the model:SetPrimaryPartCFrame() function to move it around.