Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(Enum,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part0 = Instance.new("Part")
- Decal1 = Instance.new("Decal")
- Decal2 = Instance.new("Decal")
- Decal3 = Instance.new("Decal")
- Decal4 = Instance.new("Decal")
- Decal5 = Instance.new("Decal")
- Decal6 = Instance.new("Decal")
- Script7 = Instance.new("Script")
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-6.13871098, 423.500122, -11.4352522, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-6.13871098, 423.500122, -11.4352522)
- Part0.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part0.Size = Vector3.new(7, 7, 7)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("Dark orange")
- Part0.Material = Enum.Material.SmoothPlastic
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("Dark orange")
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.formFactor = Enum.FormFactor.Symmetric
- Part0.Shape = Enum.PartType.Ball
- Decal1.Name = "Cookie"
- Decal1.Parent = Part0
- Decal1.Texture = "http://www.roblox.com/asset/?id=19620465"
- Decal1.Face = Enum.NormalId.Back
- Decal2.Name = "Cookie"
- Decal2.Parent = Part0
- Decal2.Texture = "http://www.roblox.com/asset/?id=19620465"
- Decal2.Face = Enum.NormalId.Right
- Decal3.Name = "Cookie"
- Decal3.Parent = Part0
- Decal3.Texture = "http://www.roblox.com/asset/?id=19620465"
- Decal3.Face = Enum.NormalId.Top
- Decal4.Name = "Cookie"
- Decal4.Parent = Part0
- Decal4.Texture = "http://www.roblox.com/asset/?id=19620465"
- Decal4.Face = Enum.NormalId.Left
- Decal5.Name = "Cookie"
- Decal5.Parent = Part0
- Decal5.Texture = "http://www.roblox.com/asset/?id=19620465"
- Decal6.Name = "Cookie"
- Decal6.Parent = Part0
- Decal6.Texture = "http://www.roblox.com/asset/?id=19620465"
- Decal6.Face = Enum.NormalId.Bottom
- Script7.Parent = Part0
- table.insert(cors,sandbox(Script7,function()
- while true do
- wait()
- local clone = script.Parent:Clone()
- clone.Anchored = false
- clone.CanCollide = true
- clone.Parent = game.Workspace
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement