Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make a following brick?

I want to make a brick that follows me where ever I go (without welds) . I've tried using the :MoveTo() function, but that didn't help.

2 comments

0

Perhaps try PathFinding AI? Put the start in the brick, and the end in the player, but a little further so the part doesn't try to ram you.

0

Provide your attempt please.

1 answer

Try putting BodyPosition in the part, and change the BodyPosition's "position" property to your Torso's position. Maybe add some offset as well, so it's not running right into you. Try this:

-- Local script
local client = game:GetService("Players").LocalPlayer
local char = client.Character or client.CharacterAdded:wait()
repeat wait() until char:FindFirstChild("Torso")
local torso = char.Torso

local p = Instance.new("Part",workspace)
local f = Instance.new("BodyPosition",p)

while wait() do
	f.position = torso.Position+Vector3.new(1,5,1)
end

This discussion is preserved as it was. New answers, comments, and votes are closed.