Advertisement
ttyyuu12345

evil

Apr 9th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. mainClass = "BasePart" --The type of object you want to screw with
  2. mainObject = workspace --The base parent, all descendants will get rekt
  3. function lighting()
  4. local li = game:GetService("Lighting")
  5. --Do something with lighting
  6. li.TimeOfDay = 0
  7. li.Ambient = Color3.new(0,0,0)
  8. li.OutdoorAmbient = Color3.new(0,0,0)
  9. li.FogEnd = 100
  10. li.FogColor = Color3.new(0,0,0)
  11. end
  12. function handle(p)
  13. wait()
  14. --What you want to do to the things found
  15. p.BrickColor = BrickColor.new("Really black")
  16. local f = Instance.new("Fire",p)
  17. local sb = Instance.new("SelectionBox",p)
  18. local sm = Instance.new("Smoke",p)
  19. local sp = Instance.new("Sparkles",p)
  20. sb.SurfaceColor3 = Color3.new(1,0,0)
  21. sb.LineThickness = 1
  22. sb.Color3 = Color3.new(1,0,0)
  23. sb.Adornee = p
  24. local bg = Instance.new("BillboardGui",p)
  25. bg.Adornee = p
  26. bg.ExtentsOffset = Vector3.new(0,4,0)
  27. bg.Size = UDim2.new(0,200,0,25)
  28. local tl = Instance.new("TextLabel",bg)
  29. tl.Text = "no"
  30. tl.Size = UDim2.new(1,0,1,0)
  31. tl.BackgroundTransparency = 1
  32. tl.TextColor3 = Color3.new(0,1,0)
  33. tl.FontSize = "Size24"
  34. coroutine.resume(coroutine.create(function()
  35. handle(p)
  36. end))
  37. end
  38. --Don't edit anything below this line
  39. function doWork(par,func,class)
  40. local a = par:GetChildren()
  41. for i=1,#a do
  42. if a[i]:IsA(class) then
  43. func(a[i])
  44. end
  45. doWork(a[i],func,class)
  46. end
  47. end
  48. mainObject.DescendantAdded:connect(function(obj)
  49. if obj:IsA(mainClass) then
  50. handle(obj)
  51. end
  52. end)
  53. doWork(mainObject,handle,mainClass)
  54. lighting()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement