Advertisement
YukkoAioi

is a shader

Oct 21st, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1.  
  2.  
  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. Script0 = Instance.new("Script")
  20. LocalScript1 = Instance.new("LocalScript")
  21. Script0.Name = "ShaderImporter"
  22. Script0.Parent = mas
  23. table.insert(cors,sandbox(Script0,function()
  24. -- original script: SprintScriptImporter ( CloneTrooper1019 maybe? )
  25. -- edited by: coldcoil
  26. -- You dont have to move this script anywhere, all the work will be done for you.
  27. function onPlayerEntered(player)
  28. repeat wait () until player.Character ~= nil
  29. local s = script.Shader:clone()
  30. s.Parent = player.PlayerGui
  31. s.Disabled = false
  32. end
  33.  
  34. game.Players.PlayerAdded:connect(onPlayerEntered)
  35. end))
  36. LocalScript1.Name = "Shader"
  37. LocalScript1.Parent = mas
  38. LocalScript1.Disabled = true
  39. table.insert(cors,sandbox(LocalScript1,function()
  40. -- made by coldcoil
  41. -- 2016
  42. -- Makes your games look more visually appealing.
  43. -- Keep this script where it is, the whole process is fully automated.
  44.  
  45. wait(0.5) -- A quick wait, to make sure things function correctly.
  46. local blur = Instance.new("BlurEffect")
  47. blur.Parent = game.Workspace.CurrentCamera
  48. blur.Size = 5
  49.  
  50. local colorcorrection = Instance.new("ColorCorrectionEffect")
  51. colorcorrection.Parent = game.Workspace.CurrentCamera
  52. colorcorrection.Saturation = 0.4
  53. colorcorrection.Contrast = 0.3
  54. colorcorrection.Brightness = 0.01
  55.  
  56. local bloom = Instance.new("BloomEffect")
  57. bloom.Parent = game.Workspace.CurrentCamera
  58. bloom.Intensity = 0.1
  59. bloom.Size = 15
  60. bloom.Threshold = 0.5
  61.  
  62. end))
  63. for i,v in pairs(mas:GetChildren()) do
  64. v.Parent = script
  65. pcall(function() v:MakeJoints() end)
  66. end
  67. mas:Destroy()
  68. for i,v in pairs(cors) do
  69. spawn(function()
  70. pcall(v)
  71. end)
  72. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement