Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- local Cache = {};
- Cache.Assets = {};
- function Cache:Make(Type, Parent, Others)
- if Parent then
- Parent = workspace
- end
- local New = Instance.new(Type)
- for i,v in next, Others do
- local suc,err = pcall(function()
- New[i] = v
- end)
- if suc then
- print(i, err)
- end
- end
- New.Parent = Parent
- Cache.Assets[#Cache.Assets + 1] = {New, Type, Parent, Others}
- return New
- end
- return Cache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement