Adilord
|
  |
| Joined: 13 May 2011 |
| Total Posts: 51 |
|
|
| 02 Jun 2014 01:33 AM |
| I'm really frustrated that the reducer scripts are broken! They don't save wedges and I have to use the model reducer which isn't helpful. Someone please help or link me a minimap script that saves wedges. I don't really know of this is the right forum but anyways. |
|
|
| Report Abuse |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 02 Jun 2014 02:49 AM |
>scripting help >posts in building helper >lol
>you're lucky im here and not in the flaming mood
function getDescendants(model) local table = {} for i, v in pairs(model:GetChildren()) do if v:IsA"BasePart" then table.insert(table, v) end if #v:GetChildren() > 0 then for k, q in pairs(getDescendants(v)) do table.insert(table, q) end end end return table end
function reduceModel(model, factor) local minimap = Instance.new("Model", workspace) local arr = getDescendants(model) local center = model:GetModelCFrame().p for i, v in pairs(arr) do local newp = v:clone() newp.Parent = minimap newp.FormFactor="Custom" newp.Size = v.Size/factor newp.CFrame = CFrame.new((v.Position-center) /factor) end end
k |
|
|
| Report Abuse |
|
Adilord
|
  |
| Joined: 13 May 2011 |
| Total Posts: 51 |
|
| |