local plr = game:service("Players").LocalPlayer
local chest = workspace.Characters.chests

while true do
	wait(1)
_G.distance = 3.5
    for _,v in next, chest["smallchest"] do
		v.Part.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.X,plr.Character.HumanoidRootPart.CFrame.Y,plr.Character.HumanoidRootPart.CFrame.Z - _G.distance)
		v.Part.Anchored = true
	end
end

In a folder workspace.Characters.chests there are various of chests, but I need a certain chest to be attracted. How can I do that? Please help!

1 comment

0

either insert a specific instance in it and use FindFirstChild() Or simply give it a different name