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(self,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"))
- Model0 = Instance.new("Model")
- Script1 = Instance.new("Script")
- Script2 = Instance.new("Script")
- Script3 = Instance.new("Script")
- Model0.Name = "CompiledScripts"
- Model0.Parent = mas
- Script1.Name = "Script1"
- Script1.Parent = Model0
- table.insert(cors,sandbox(Script1,function()
- for i = 0 , 10 do
- for i = 0, 10 do
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,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")
- Script2 = Instance.new("Script")
- BodyAngularVelocity3 = Instance.new("BodyAngularVelocity")
- Part0.Name = "bouncy ball"
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(7.64009953, 27.5000038, -1.77146029, -0.999999881, -8.52651283e-14, -7.04467652e-07, -4.97379915e-14, 0.999999881, -5.96046448e-08, 7.04467595e-07, -5.96046448e-08, -0.999999881)
- Part0.Orientation = Vector3.new(0, -180, 0)
- Part0.Position = Vector3.new(7.64009953, 27.5000038, -1.77146029)
- Part0.Rotation = Vector3.new(180, 0, 180)
- Part0.Color = Color3.new(1, 1, 0)
- Part0.Size = Vector3.new(3, 3, 3)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.BrickColor = BrickColor.new("New Yeller")
- Part0.Material = Enum.Material.SmoothPlastic
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.brickColor = BrickColor.new("New Yeller")
- Part0.FormFactor = Enum.FormFactor.Symmetric
- Part0.formFactor = Enum.FormFactor.Symmetric
- Part0.Shape = Enum.PartType.Ball
- Decal1.Parent = Part0
- Decal1.Texture = "http://www.roblox.com/asset/?id=171121051"
- Script2.Name = "Boncy"
- Script2.Parent = Part0
- table.insert(cors,sandbox(Script2,function()
- local s = Instance.new("Sound")
- s.Name = "BGMusic"
- s.SoundId = "rbxasset://sounds//short spring sound.wav"
- s.Volume = 1
- s.Pitch = 1
- s.Looped = false
- s.archivable = false
- s.Parent = script.Parent
- function onTouched(part)
- script.Parent.Velocity=Vector3.new((math.random(-99, 99)),(math.random(-99, 99)),(math.random(-99, 99)))
- s:play()
- if part.Locked ~= true and part.Name ~= "bouncy ball" then
- part.Velocity=Vector3.new((math.random(-99, 99)),(math.random(-99, 99)),(math.random(-99, 99)))
- local bouncytouch = script:clone()
- bouncytouch.Parent = part
- script.Parent.BrickColor = part.BrickColor
- local face = script.Parent.Decal:clone()
- face.Parent = part
- part.Name = script.Parent.Name
- part.Anchored = false
- local bob = script.Parent:clone()
- bob.Position = script.Parent.Position
- bob.Parent = workspace
- local inf = script.Parent.BodyAngularVelocity:clone()
- inf.Parent = part
- part.BackSurface = ("Smooth")
- part.BottomSurface = ("Smooth")
- part.FrontSurface = ("Smooth")
- part.LeftSurface = ("Smooth")
- part.RightSurface = ("Smooth")
- part.TopSurface = ("Smooth")
- part:BreakJoints()
- part.Parent = "Workspace"
- script.Parent:remove()
- end
- end
- script.Parent.Touched:connect(onTouched)
- end))
- BodyAngularVelocity3.Parent = Part0
- BodyAngularVelocity3.AngularVelocity = Vector3.new(0, INF, 0)
- BodyAngularVelocity3.angularvelocity = Vector3.new(0, INF, 0)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end
- end
- end))
- Script2.Name = "Script3"
- Script2.Parent = Model0
- table.insert(cors,sandbox(Script2,function()
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,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")
- Fire1 = Instance.new("Fire")
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-28.5, 0.5, -8.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-28.5, 0.5, -8.5)
- Part0.Size = Vector3.new(1, 1, 1)
- Part0.Anchored = true
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Fire1.Parent = Part0
- Fire1.Color = Color3.new(0.92549, 0.207843, 0.423529)
- Fire1.Size = 30
- Fire1.Heat = 0
- Fire1.size = 30
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end))
- Script3.Name = "Script2"
- Script3.Parent = Model0
- table.insert(cors,sandbox(Script3,function()
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,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"))
- Sound0 = Instance.new("Sound")
- Sound0.Name = "Lion Sleeps Tonight [FREE]"
- Sound0.Parent = mas
- Sound0.Looped = true
- Sound0.SoundId = "rbxassetid://2659211103"
- Sound0.Volume = 2.5
- Sound0.Playing = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement