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
01local plr = game:service("Players").LocalPlayer
02local chest = workspace.Characters.chests
03 
04while true do
05    wait(1)
06_G.distance = 3.5
07    for _,v in next, chest["smallchest"] do
08        v.Part.CFrame = CFrame.new(plr.Character.HumanoidRootPart.CFrame.X,plr.Character.HumanoidRootPart.CFrame.Y,plr.Character.HumanoidRootPart.CFrame.Z - _G.distance)
09        v.Part.Anchored = true
10    end
11end

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