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

Why won't this method work?

Asked by
Wutras 294 Moderation Voter
8 years ago

I've recently been using Region3 and the method :FindPartInRegion3. But now this method seems not to work. This here is my code:

function Record()
    local room=Region3.new(script.Parent.Recorder.Position, Vector3.new(script.Parent.Recorder.CFrame.p*CFrame.new(script.Parent.Recorder.Size.X, script.Parent.Recorder.Size.Y, -RD.Value).p))
    local parts=workspace:FindPartsInRegion3(room, script.Parent.Recorder)
    local keyframe=Instance.new("Folder", D)
    keyframe.Name="Keyframe"
    for _, part in pairs(parts) do
        print("hi")
        local newdata=Instance.new("StringValue", keyframe)
    end
end

D is a variable for the distance the for the Region3. I'd really much appreciate any help. I've put parts all around the part called Recorder, but still no change.

0
Region3 functions haven't been working for me, either. They haven't worked for a while now :/ TheDeadlyPanther 2460 — 8y
0
Oh, damn. That's quite a bad thing. I'll use some magnitude combined with math then. :/ Wutras 294 — 8y

Answer this question