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")
- SpecialMesh1 = Instance.new("SpecialMesh")
- Part2 = Instance.new("Part")
- SpecialMesh3 = Instance.new("SpecialMesh")
- Part4 = Instance.new("Part")
- SpecialMesh5 = Instance.new("SpecialMesh")
- Script6 = Instance.new("Script")
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-7.3500061, 5.2971468, -10.7299805, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-7.3500061, 5.2971468, -10.7299805)
- Part0.Size = Vector3.new(4, 1, 2)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.CanCollide = false
- Part0.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh1.Parent = Part0
- SpecialMesh1.MeshId = "rbxassetid://30554937"
- SpecialMesh1.Scale = Vector3.new(20, 20, 20)
- SpecialMesh1.TextureId = "rbxassetid://30554955"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- Part2.Parent = mas
- Part2.CFrame = CFrame.new(-22.5679169, 11.7399073, -10.7299805, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part2.Position = Vector3.new(-22.5679169, 11.7399073, -10.7299805)
- Part2.Size = Vector3.new(4, 1, 2)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.CanCollide = false
- Part2.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "rbxassetid://743205420"
- SpecialMesh3.Scale = Vector3.new(2, 2, 2)
- SpecialMesh3.TextureId = "rbxassetid://743204224"
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- Part4.Parent = mas
- Part4.CFrame = CFrame.new(-22.9579182, 18.3630009, -10.8999796, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part4.Position = Vector3.new(-22.9579182, 18.3630009, -10.8999796)
- Part4.Transparency = 0.15000000596046
- Part4.Size = Vector3.new(13.4799976, 10.0500011, 8.06000042)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.CanCollide = false
- Part4.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh5.Parent = Part4
- SpecialMesh5.MeshId = "rbxassetid://743205322"
- SpecialMesh5.Scale = Vector3.new(2, 2, 2)
- SpecialMesh5.TextureId = "rbxassetid://743204665"
- SpecialMesh5.MeshType = Enum.MeshType.FileMesh
- Script6.Parent = Part4
- table.insert(cors,sandbox(Script6,function()
- pos = script.Parent.Position
- pos = Vector3.new(pos.x, pos.y-0.2, pos.z)
- x = 0
- z = 0
- T = -99999
- tall = script.Parent.Size.Y / 2
- math.randomseed(tick())
- rand = (math.random(0,20))/10
- while true do
- x = pos.x + (math.sin(T + (pos.x/5)) * math.sin(T/9))/3
- z = pos.z + (math.sin(T + (pos.z/6)) * math.sin(T/12))/4
- script.Parent.CFrame =
- CFrame.new(x, pos.y, z) * CFrame.Angles((z-pos.z)/tall, 0,(x-pos.x)/-tall)
- wait()
- T = T + 0.12
- 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