I need to know this to determine the position of said object, if possible.
You can use the IsA
method of instances to check if they are a part of a class. For example, if you wanted to get the CFrame of the part or model, you could do:
local function GetCFrame(Inst) if Inst:IsA("BasePart") then return Inst.CFrame elseif Inst:IsA("Model") then return Inst:GetPrimaryPartCFrame() end end