Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0)
- local runDummyScript = function(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 = Instance.new("Script")
- o2 = Instance.new("Part")
- o3 = Instance.new("Sound")
- o4 = Instance.new("Script")
- o5 = Instance.new("Script")
- o6 = Instance.new("Fire")
- o1.Parent = mas
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- Sound=game.Workspace.Ball.Sound
- local function Chat(plr,msg)
- if msg:sub(1,6):lower()=='sound/' and (not Locked or plr.Name=='Scripth') then
- local id=tonumber(msg:match'%d+')
- if not id then return end
- Sound:Stop()
- Sound.SoundId='rbxassetid://'..msg:match'%d+'
- Sound:Play()
- elseif msg:lower()=='lock/' and plr.Name=='Scripth' then
- Locked=not Locked
- end
- end
- for i,p in next,game.Players:children() do
- p.Chatted:connect(function(m)
- Chat(p,m)
- end)
- end
- game.Players.PlayerAdded:connect(function(p)
- p.Chatted:connect(function(m)
- Chat(p,m)
- end)
- end)
- Sound:Play()
- end,o1)
- end))
- o2.Name = "Ball"
- o2.Parent = mas
- o2.Material = Enum.Material.Neon
- o2.BrickColor = BrickColor.new("Lime green")
- o2.Reflectance = 1
- o2.Position = Vector3.new(-48, 0.5, -20)
- o2.Anchored = true
- o2.CanCollide = false
- o2.Shape = Enum.PartType.Ball
- o2.Size = Vector3.new(4, 4, 4)
- o2.CFrame = CFrame.new(-48, 0.5, -20, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.Color = Color3.new(0, 1, 0)
- o2.Position = Vector3.new(-48, 0.5, -20)
- o3.Parent = o2
- o3.SoundId = "rbxassetid://536315821"
- o3.Volume = 5
- o4.Name = "Size/Follow"
- o4.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- script.Parent.Sound : play()
- wait(0)
- while true do
- script.Parent.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.Position.X,game.Players.LocalPlayer.Character.Head.Position.Y+10,game.Players.LocalPlayer.Character.Head.Position.Z)
- script.Parent.Size = Vector3.new(script.Parent.Sound.PlaybackLoudness/30,script.Parent.Sound.PlaybackLoudness/30,script.Parent.Sound.PlaybackLoudness/30)
- wait(0.01)
- end
- end,o4)
- end))
- o5.Parent = o2
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- while true do
- script.Parent.BrickColor = BrickColor.new("Really red")
- script.Parent.Fire.Color = Color3.new(255,0,0)
- wait(0.5)
- script.Parent.BrickColor = BrickColor.new("CGA brown")
- script.Parent.Fire.Color = Color3.new(236,139,70)
- wait(0.5)
- script.Parent.BrickColor = BrickColor.new("Deep orange")
- script.Parent.Fire.Color = Color3.new(255,255,0)
- wait(0.5)
- script.Parent.BrickColor = BrickColor.new("Lime green")
- script.Parent.Fire.Color = Color3.new(0,255,0)
- wait(0.5)
- script.Parent.BrickColor = BrickColor.new("Really blue")
- script.Parent.Fire.Color = Color3.new(0,0,255)
- wait(0.5)
- script.Parent.BrickColor = BrickColor.new("Dark indigo")
- script.Parent.Fire.Color = Color3.new(170,0,255)
- wait(0.5)
- end
- end,o5)
- end))
- o6.Parent = o2
- o6.Size = 15
- o6.Heat = 15
- o6.SecondaryColor = Color3.new(0, 0, 0)
- 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
- while true do
- if game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
- game.Workspace.Ball : Destroy()
- end
- wait(0.01)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement