Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make to from more options choose that's what I need?

Asked by 4 years ago
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!

0
either insert a specific instance in it and use FindFirstChild() Or simply give it a different name AntoninFearless 622 — 4y

Answer this question