sawgamer1

Untitled

Jun 23rd, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return scri
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. mas.Name = "CompiledModel"
  18. mas.Parent = workspace
  19. mas:MakeJoints()
  20. local mas1 = mas:GetChildren()
  21. for i=1,#mas1 do
  22. mas1[i].Parent = workspace
  23. ypcall(function() mas1[i]:MakeJoints() end)
  24. end
  25. mas:Destroy()
  26. for i=1,#cors do
  27. coroutine.resume(cors[i])
  28. end
  29.  
  30. game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
  31. game:GetService("Lighting").Brightness = 1
  32. game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  33. game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  34. game:GetService("Lighting").GlobalShadows = true
  35. game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
  36. game:GetService("Lighting").Outlines = false
  37. game:GetService("Lighting").GeographicLatitude = 41.733299255371
  38. game:GetService("Lighting").TimeOfDay = "14:00:00"
  39. game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
  40. game:GetService("Lighting").FogEnd = 100000
  41. game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment