kingkoolie

Untitled

Dec 31st, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. local Exp = {}
  2. --Properties = 24
  3. --Variables--
  4. local Ut = LoadLibrary("RbxUtility")
  5. local c, cf, v3, bc = Ut.Create, CFrame.new, Vector3.new, BrickColor.new
  6. local Prop = {"Parent", 'CFrame', 'Anchored', 'CanCollide','Shape','Material','Size','MeshType','Scale','SphereBool','BlockBool','CylinderBool','LoopNumber','LoopScale','DmgBool'}
  7. --end--
  8.  
  9. --DMG DEBOUNCER--
  10. local deb
  11. --end--
  12. Exp.new = function(...)
  13. local Properties = ...
  14. local boom = c "Part"{Parent = Properties[1], Name = "Exp",CFrame = Properties[2],Anchored = Properties[3],CanCollide = Properties[4],Shape = Properties[5],Material = Properties[6],BrickColor = Properties[7], Size = Properties[8]}
  15. local m = c "SpecialMesh" {Parent = boom, MeshType = Properties[9], Scale = Properties[10]}
  16. spawn(function()
  17. game.Debris:AddItem(boom,8)
  18. end)
  19. if Properties[11] == true then
  20. spawn(function() while wait() do boom.CFrame = Properties[2] end end)
  21. spawn(function()
  22. for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
  23. m.Scale = m.Scale + Properties[15]
  24. boom.Transparency = i/Properties[14]
  25. end
  26. end)
  27. elseif Properties[12] == true then
  28. spawn(function() while wait() do boom.CFrame = Properties[2] end end)
  29. spawn(function()
  30. local i = 1
  31. while wait() do
  32. i = i+1
  33. boom.Transparency = i/Properties[14]
  34. m.Scale = m.Scale + Properties[15]
  35. boom.CFrame = boom.CFrame * CFrame.Angles(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  36. end
  37. end)
  38. elseif Properties[13] == true then
  39. spawn(function() while wait() do boom.CFrame = Properties[2] end end)
  40. spawn(function()
  41. for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
  42. m.Scale = m.Scale + Properties[15]
  43. boom.Transparency = i/Properties[14]
  44. end
  45. end)
  46. elseif Properties[22] == true then
  47. m.MeshId = "http://www.roblox.com/asset/?id="..Properties[23]
  48. boom.CFrame = Properties[2]
  49. spawn(function() while wait() do boom.CFrame = boom.CFrame*CFrame.Angles(0,.5,0)end end)
  50. spawn(function()
  51. for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
  52. m.Scale = m.Scale + Properties[15]
  53. boom.Transparency = i/Properties[14]
  54. end
  55. end)
  56. elseif Properties[24] == true then
  57. boom.Transparency = .5
  58. spawn(function()
  59. for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
  60. boom.Transparency = boom.Transparency + .01
  61. m.Scale = m.Scale + Properties[15]
  62. end end)
  63. end
  64. if Properties[16] == true then
  65. local dmg = c "Part"{Parent = Properties[1], Name = "Exp",CFrame = Properties[2],Anchored = Properties[3],CanCollide = Properties[4],Shape = Properties[5],Material = Properties[6],BrickColor = Properties[7], Size = Properties[18], Transparency = 1}
  66. spawn(function()
  67. game.Debris:AddItem(dmg,1)
  68. end)
  69. local Point1 = dmg.Position - Properties[19]
  70. local Point2 = dmg.Position + Properties[19]
  71. local Region = Region3.new(Point1,Point2)
  72. deb = true
  73. for _,Hit in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
  74. if Hit.Parent:FindFirstChild("Humanoid") and deb and Hit.Parent.Name ~= Properties[21].Name then deb = false
  75. Hit.Parent:FindFirstChild("Humanoid"):TakeDamage(Properties[17])
  76. end
  77. end
  78. end
  79. spawn(function()
  80. game.Debris:AddItem(boom,3.5)
  81. end)
  82. end
  83.  
  84. return Exp
  85.  
  86. --TO USE = ex.new({workspace,cf(Pos),true, false,"Ball","Neon",bc(hit.BrickColor.Color),v3(1,1,1),"Sphere",v3(1,1,1),true,false,false,100,v3(1,1,1), true, 1, v3(40,40,40), v3(40,40,40), 40, plr})
Advertisement
Add Comment
Please, Sign In to add comment