Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Created with Z_Vs M2S Plugin
- Create = function(itemClass,tabl)
- local item = Instance.new(itemClass)
- for i,v in pairs(tabl) do
- local a,b = ypcall(function() return item[i] end)
- if a then
- item[i] = tabl[i]
- end
- end
- return item
- end
- function runDummyScript(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Create("Model",{
- ["Parent"] = mas,
- })
- o2 = Create("Part",{
- ["Parent"] = o1,
- ["Position"] = Vector3.new(-6.19999981, 2.50002384, -10.7000008),
- ["CFrame"] = CFrame.new(-6.19999981, 2.50002384, -10.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- ["Size"] = Vector3.new(4, 1, 0.200000003),
- })
- o3 = Create("Part",{
- ["Parent"] = o1,
- ["Position"] = Vector3.new(-6.09999943, 1.00001299, -10.7000008),
- ["CFrame"] = CFrame.new(-6.09999943, 1.00001299, -10.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- ["Size"] = Vector3.new(0.999999881, 2, 0.200000003),
- })
- o4 = Create("Part",{
- ["Parent"] = o1,
- ["Position"] = Vector3.new(-6.09999943, 6.30001354, -10.7000008),
- ["CFrame"] = CFrame.new(-6.09999943, 6.30001354, -10.7000008, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- ["Size"] = Vector3.new(0.999999881, 6.5999999, 0.200000003),
- })
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = workspace
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement