Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --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")
- Script1 = Instance.new("Script")
- ClickDetector2 = Instance.new("ClickDetector")
- Part0.Parent = mas
- Part0.CFrame = CFrame.new(-6, 0.500003994, -11.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-6, 0.500003994, -11.5)
- Part0.Size = Vector3.new(4, 1, 2)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Script1.Parent = Part0
- table.insert(cors,sandbox(Script1,function()
- local urmom = false
- function fork()
- if urmom == false then
- urmom = true
- local p = Instance.new("ColorCorrectionEffect")
- p.Parent = game.Lighting
- p.Name = "forkoff"
- p.Brightness = 4644656381952
- p.Contrast = 453525226127360
- p.Saturation = 6
- p.TintColor = Color3.new (255,255,255)
- elseif urmom == true then
- urmom = false
- local b = game.Lighting.forkoff
- b:remove()
- end
- end
- script.Parent.ClickDetector.MouseClick:connect(fork)
- end))
- ClickDetector2.Parent = Part0
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- 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