Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local loc = workspace.MurderGame.GameContent.Map.Loot
- local temp = game:GetService("InsertService"):LoadAsset(151251400):GetChildren()[1]
- for _,v in pairs(loc:GetChildren()) do
- if not string.find(v.Name,"LOOT_") then
- local new = temp:clone()
- new.Name = "LOOT_"..v.Name
- local hit = new:WaitForChild("HitBox")
- hit.Parent = nil
- if v:IsA("Part") then
- v.Parent = new.LootParts
- v.Anchored = true
- elseif v:IsA("Model") then
- for _,a in pairs(v:GetChildren()) do
- a.Parent = new.LootParts
- end
- v:Destroy()
- end
- hit.CFrame = new:GetModelCFrame()
- hit.Parent = new
- new.Parent = loc
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement