Advertisement
cat568

Untitled

Mar 8th, 2019
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Part0 = Instance.new("Part")
  20. Script1 = Instance.new("Script")
  21. ClickDetector2 = Instance.new("ClickDetector")
  22. Part0.Parent = mas
  23. Part0.CFrame = CFrame.new(-6, 0.500003994, -11.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  24. Part0.Position = Vector3.new(-6, 0.500003994, -11.5)
  25. Part0.Size = Vector3.new(4, 1, 2)
  26. Part0.BottomSurface = Enum.SurfaceType.Smooth
  27. Part0.TopSurface = Enum.SurfaceType.Smooth
  28. Script1.Parent = Part0
  29. table.insert(cors,sandbox(Script1,function()
  30. local urmom = false
  31. function fork()
  32. if urmom == false then
  33. urmom = true
  34. local p = Instance.new("ColorCorrectionEffect")
  35. p.Parent = game.Lighting
  36. p.Name = "forkoff"
  37. p.Brightness = 4644656381952
  38. p.Contrast = 453525226127360
  39. p.Saturation = 6
  40. p.TintColor = Color3.new (255,255,255)
  41. elseif urmom == true then
  42. urmom = false
  43. local b = game.Lighting.forkoff
  44. b:remove()
  45. end
  46.  
  47. end
  48. script.Parent.ClickDetector.MouseClick:connect(fork)
  49. end))
  50. ClickDetector2.Parent = Part0
  51. for i,v in pairs(mas:GetChildren()) do
  52. v.Parent = workspace
  53. pcall(function() v:MakeJoints() end)
  54. end
  55. mas:Destroy()
  56. for i,v in pairs(cors) do
  57. spawn(function()
  58. pcall(v)
  59. end)
  60. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement