chrisinator66

Untitled

Sep 9th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. script.Parent = game.ReplicatedStorage
  2. local LocalPlayer, mt, index, newindex = game.Lighting, getrawmetatable(game)
  3. index = mt.__index
  4. newindex = mt.__newindex
  5. local Values = {
  6. FogStart = 750,
  7. FogEnd = 937.5,
  8. Velocity = Vector3.new(0,0,0)
  9. }
  10.  
  11. setreadonly(mt, false)
  12. mt.__index = newcclosure(function(t,k)
  13. return (not checkcaller() and Values[k] or index(t,k))
  14. end)
  15. mt.__newindex = newcclosure(function(t,k,v)
  16. if not checkcaller() and Values[k] then return end
  17. newindex(t,k,v)
  18. end)
  19. setreadonly(mt, true)
Advertisement
Add Comment
Please, Sign In to add comment