Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Exp = {}
- --Properties = 24
- --Variables--
- local Ut = LoadLibrary("RbxUtility")
- local c, cf, v3, bc = Ut.Create, CFrame.new, Vector3.new, BrickColor.new
- local Prop = {"Parent", 'CFrame', 'Anchored', 'CanCollide','Shape','Material','Size','MeshType','Scale','SphereBool','BlockBool','CylinderBool','LoopNumber','LoopScale','DmgBool'}
- --end--
- --DMG DEBOUNCER--
- local deb
- --end--
- Exp.new = function(...)
- local Properties = ...
- 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]}
- local m = c "SpecialMesh" {Parent = boom, MeshType = Properties[9], Scale = Properties[10]}
- spawn(function()
- game.Debris:AddItem(boom,8)
- end)
- if Properties[11] == true then
- spawn(function() while wait() do boom.CFrame = Properties[2] end end)
- spawn(function()
- for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
- m.Scale = m.Scale + Properties[15]
- boom.Transparency = i/Properties[14]
- end
- end)
- elseif Properties[12] == true then
- spawn(function() while wait() do boom.CFrame = Properties[2] end end)
- spawn(function()
- local i = 1
- while wait() do
- i = i+1
- boom.Transparency = i/Properties[14]
- m.Scale = m.Scale + Properties[15]
- boom.CFrame = boom.CFrame * CFrame.Angles(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- end
- end)
- elseif Properties[13] == true then
- spawn(function() while wait() do boom.CFrame = Properties[2] end end)
- spawn(function()
- for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
- m.Scale = m.Scale + Properties[15]
- boom.Transparency = i/Properties[14]
- end
- end)
- elseif Properties[22] == true then
- m.MeshId = "http://www.roblox.com/asset/?id="..Properties[23]
- boom.CFrame = Properties[2]
- spawn(function() while wait() do boom.CFrame = boom.CFrame*CFrame.Angles(0,.5,0)end end)
- spawn(function()
- for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
- m.Scale = m.Scale + Properties[15]
- boom.Transparency = i/Properties[14]
- end
- end)
- elseif Properties[24] == true then
- boom.Transparency = .5
- spawn(function()
- for i = 1,Properties[14] do game:GetService("RunService").Stepped:wait()
- boom.Transparency = boom.Transparency + .01
- m.Scale = m.Scale + Properties[15]
- end end)
- end
- if Properties[16] == true then
- 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}
- spawn(function()
- game.Debris:AddItem(dmg,1)
- end)
- local Point1 = dmg.Position - Properties[19]
- local Point2 = dmg.Position + Properties[19]
- local Region = Region3.new(Point1,Point2)
- deb = true
- for _,Hit in pairs(game.Workspace:FindPartsInRegion3(Region,nil,math.huge)) do
- if Hit.Parent:FindFirstChild("Humanoid") and deb and Hit.Parent.Name ~= Properties[21].Name then deb = false
- Hit.Parent:FindFirstChild("Humanoid"):TakeDamage(Properties[17])
- end
- end
- end
- spawn(function()
- game.Debris:AddItem(boom,3.5)
- end)
- end
- return Exp
- --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