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

Why doesnt my object dragging script function correctly? [closed]

Asked by 7 years ago
01local dragger = nil
02 
03local function GetBaseParts(obj)
04    if obj:IsDescendantOf(moveable) then
05        for i,v in pairs(obj.Parent:GetChildren()) do
06            if v == obj.Parent then
07                return {obj}
08            end
09            if i == #obj.Parent:GetChildren() and v ~= obj.Parent then
10                local Table = {}
11                for x,d in pairs(obj.Parent:GetChildren()) do
12                    if d:IsA("BasePart") then
13                        table.insert(Table, d)
14                    end
15                end
View all 34 lines...

There is no output errors (when i removed the pcalls, too) and the object doesnt move at all, any idea on how to fix this?

Closed as Too Broad by Goulstem

This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.

Why was this question closed?