Advertisement
LanderDusty

asdf1

Jul 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.71 KB | None | 0 0
  1. local toggleTag = true
  2. local txt = Instance.new("BillboardGui", Head)
  3. txt.Adornee = nil
  4. txt.Name = "NameDetect"
  5. txt.Size = UDim2.new(4, 0, 1.2, 0)
  6. txt.StudsOffset = Vector3.new(-8, 8/1.5, 0)
  7. local text = Instance.new("TextLabel", txt)
  8. text.Size = UDim2.new(10/2, 0, 7/2, 0)
  9. text.FontSize = "Size8"
  10. text.TextScaled = true
  11. text.TextTransparency = 0
  12. text.BackgroundTransparency = 1
  13. text.TextTransparency = 0
  14. text.TextStrokeTransparency = 0
  15. text.Font = "Fantasy"
  16. text.TextStrokeColor3 = Color3.new(0,0,0)
  17. text.TextColor3 = Color3.new(0,0,0)
  18. text.Text = "The Lost Devil"
  19.  
  20. function RecolorTextAndRename(name,col1,col2)
  21. text.TextStrokeColor3 = col2
  22. text.TextColor3 = col1
  23. text.Text = name
  24. end
  25.  
  26. RecolorTextAndRename("The Lost Devil",Color3.new(0,0,0),Color3.new(0,0,0))
  27. --//=================================\\
  28. --|| SOME FUNCTIONS
  29. --\\=================================//
  30.  
  31. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  32. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  33. end
  34.  
  35. function PositiveAngle(NUMBER)
  36. if NUMBER >= 0 then
  37. NUMBER = 0
  38. end
  39. return NUMBER
  40. end
  41.  
  42. function NegativeAngle(NUMBER)
  43. if NUMBER <= 0 then
  44. NUMBER = 0
  45. end
  46. return NUMBER
  47. end
  48.  
  49. function Swait(NUMBER)
  50. if NUMBER == 0 or NUMBER == nil then
  51. ArtificialHB.Event:wait()
  52. else
  53. for i = 1, NUMBER do
  54. ArtificialHB.Event:wait()
  55. end
  56. end
  57. end
  58.  
  59. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  60. local NEWMESH = IT(MESH)
  61. if MESH == "SpecialMesh" then
  62. NEWMESH.MeshType = MESHTYPE
  63. if MESHID ~= "nil" and MESHID ~= "" then
  64. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  65. end
  66. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  67. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  68. end
  69. end
  70. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  71. NEWMESH.Scale = SCALE
  72. NEWMESH.Parent = PARENT
  73. return NEWMESH
  74. end
  75.  
  76. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  77. local NEWPART = IT("Part")
  78. NEWPART.formFactor = FORMFACTOR
  79. NEWPART.Reflectance = REFLECTANCE
  80. NEWPART.Transparency = TRANSPARENCY
  81. NEWPART.CanCollide = false
  82. NEWPART.Locked = true
  83. NEWPART.Anchored = true
  84. if ANCHOR == false then
  85. NEWPART.Anchored = false
  86. end
  87. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  88. NEWPART.Name = NAME
  89. NEWPART.Size = SIZE
  90. NEWPART.Position = Torso.Position
  91. NEWPART.Material = MATERIAL
  92. NEWPART:BreakJoints()
  93. NEWPART.Parent = PARENT
  94. return NEWPART
  95. end
  96.  
  97. local function weldBetween(a, b)
  98. local weldd = IT("Weld")
  99. weldd.Part0 = a
  100. weldd.Part1 = b
  101. weldd.C0 = CF()
  102. weldd.C1 = b.CFrame:inverse() * a.CFrame
  103. weldd.Parent = a
  104. return weldd
  105. end
  106.  
  107.  
  108. function QuaternionFromCFrame(cf)
  109. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  110. local trace = m00 + m11 + m22
  111. if trace > 0 then
  112. local s = math.sqrt(1 + trace)
  113. local recip = 0.5 / s
  114. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  115. else
  116. local i = 0
  117. if m11 > m00 then
  118. i = 1
  119. end
  120. if m22 > (i == 0 and m00 or m11) then
  121. i = 2
  122. end
  123. if i == 0 then
  124. local s = math.sqrt(m00 - m11 - m22 + 1)
  125. local recip = 0.5 / s
  126. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  127. elseif i == 1 then
  128. local s = math.sqrt(m11 - m22 - m00 + 1)
  129. local recip = 0.5 / s
  130. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  131. elseif i == 2 then
  132. local s = math.sqrt(m22 - m00 - m11 + 1)
  133. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  134. end
  135. end
  136. end
  137.  
  138. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  139. local xs, ys, zs = x + x, y + y, z + z
  140. local wx, wy, wz = w * xs, w * ys, w * zs
  141. local xx = x * xs
  142. local xy = x * ys
  143. local xz = x * zs
  144. local yy = y * ys
  145. local yz = y * zs
  146. local zz = z * zs
  147. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  148. end
  149.  
  150. function QuaternionSlerp(a, b, t)
  151. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  152. local startInterp, finishInterp;
  153. if cosTheta >= 0.0001 then
  154. if (1 - cosTheta) > 0.0001 then
  155. local theta = ACOS(cosTheta)
  156. local invSinTheta = 1 / SIN(theta)
  157. startInterp = SIN((1 - t) * theta) * invSinTheta
  158. finishInterp = SIN(t * theta) * invSinTheta
  159. else
  160. startInterp = 1 - t
  161. finishInterp = t
  162. end
  163. else
  164. if (1 + cosTheta) > 0.0001 then
  165. local theta = ACOS(-cosTheta)
  166. local invSinTheta = 1 / SIN(theta)
  167. startInterp = SIN((t - 1) * theta) * invSinTheta
  168. finishInterp = SIN(t * theta) * invSinTheta
  169. else
  170. startInterp = t - 1
  171. finishInterp = t
  172. end
  173. end
  174. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  175. end
  176.  
  177. function Clerp(a, b, t)
  178. local qa = {QuaternionFromCFrame(a)}
  179. local qb = {QuaternionFromCFrame(b)}
  180. local ax, ay, az = a.x, a.y, a.z
  181. local bx, by, bz = b.x, b.y, b.z
  182. local _t = 1 - t
  183. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  184. end
  185.  
  186. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  187. local frame = IT("Frame")
  188. frame.BackgroundTransparency = TRANSPARENCY
  189. frame.BorderSizePixel = BORDERSIZEPIXEL
  190. frame.Position = POSITION
  191. frame.Size = SIZE
  192. frame.BackgroundColor3 = COLOR
  193. frame.BorderColor3 = BORDERCOLOR
  194. frame.Name = NAME
  195. frame.Parent = PARENT
  196. return frame
  197. end
  198.  
  199. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  200. local label = IT("TextLabel")
  201. label.BackgroundTransparency = 1
  202. label.Size = UD2(1, 0, 1, 0)
  203. label.Position = UD2(0, 0, 0, 0)
  204. label.TextColor3 = TEXTCOLOR
  205. label.TextStrokeTransparency = STROKETRANSPARENCY
  206. label.TextTransparency = TRANSPARENCY
  207. label.FontSize = TEXTFONTSIZE
  208. label.Font = TEXTFONT
  209. label.BorderSizePixel = BORDERSIZEPIXEL
  210. label.TextScaled = false
  211. label.Text = TEXT
  212. label.Name = NAME
  213. label.Parent = PARENT
  214. return label
  215. end
  216.  
  217. function NoOutlines(PART)
  218. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  219. end
  220.  
  221. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  222. local NEWWELD = IT(TYPE)
  223. NEWWELD.Part0 = PART0
  224. NEWWELD.Part1 = PART1
  225. NEWWELD.C0 = C0
  226. NEWWELD.C1 = C1
  227. NEWWELD.Parent = PARENT
  228. return NEWWELD
  229. end
  230.  
  231. local S = IT("Sound")
  232. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  233. local NEWSOUND = nil
  234. coroutine.resume(coroutine.create(function()
  235. NEWSOUND = S:Clone()
  236. NEWSOUND.Parent = PARENT
  237. NEWSOUND.Volume = VOLUME
  238. NEWSOUND.Pitch = PITCH
  239. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  240. NEWSOUND:play()
  241. if DOESLOOP == true then
  242. NEWSOUND.Looped = true
  243. else
  244. repeat wait(1) until NEWSOUND.Playing == false
  245. NEWSOUND:remove()
  246. end
  247. end))
  248. return NEWSOUND
  249. end
  250.  
  251. function CFrameFromTopBack(at, top, back)
  252. local right = top:Cross(back)
  253. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  254. end
  255.  
  256. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  257. function WACKYEFFECT(Table)
  258. local TYPE = (Table.EffectType or "Sphere")
  259. local SIZE = (Table.Size or VT(1,1,1))
  260. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  261. local TRANSPARENCY = (Table.Transparency or 0)
  262. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  263. local CFRAME = (Table.CFrame or Torso.CFrame)
  264. local MOVEDIRECTION = (Table.MoveToPos or nil)
  265. local ROTATION1 = (Table.RotationX or 0)
  266. local ROTATION2 = (Table.RotationY or 0)
  267. local ROTATION3 = (Table.RotationZ or 0)
  268. local MATERIAL = (Table.Material or "Neon")
  269. local COLOR = (Table.Color or C3(1,1,1))
  270. local TIME = (Table.Time or 45)
  271. local SOUNDID = (Table.SoundID or nil)
  272. local SOUNDPITCH = (Table.SoundPitch or nil)
  273. local SOUNDVOLUME = (Table.SoundVolume or nil)
  274. coroutine.resume(coroutine.create(function()
  275. local PLAYSSOUND = false
  276. local SOUND = nil
  277. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  278. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  279. PLAYSSOUND = true
  280. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  281. end
  282. EFFECT.Color = COLOR
  283. local MSH = nil
  284. if TYPE == "Sphere" then
  285. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  286. elseif TYPE == "Block" then
  287. MSH = IT("BlockMesh",EFFECT)
  288. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  289. elseif TYPE == "Wave" then
  290. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  291. elseif TYPE == "Ring" then
  292. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  293. elseif TYPE == "Slash" then
  294. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  295. elseif TYPE == "Round Slash" then
  296. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  297. elseif TYPE == "Swirl" then
  298. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  299. elseif TYPE == "Skull" then
  300. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  301. elseif TYPE == "Crystal" then
  302. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  303. end
  304. if MSH ~= nil then
  305. local MOVESPEED = nil
  306. if MOVEDIRECTION ~= nil then
  307. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  308. end
  309. local GROWTH = SIZE - ENDSIZE
  310. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  311. if TYPE == "Block" then
  312. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  313. else
  314. EFFECT.CFrame = CFRAME
  315. end
  316. for LOOP = 1, TIME+1 do
  317. Swait()
  318. MSH.Scale = MSH.Scale - GROWTH/TIME
  319. if TYPE == "Wave" then
  320. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  321. end
  322. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  323. if TYPE == "Block" then
  324. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  325. else
  326. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  327. end
  328. if MOVEDIRECTION ~= nil then
  329. local ORI = EFFECT.Orientation
  330. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  331. EFFECT.Orientation = ORI
  332. end
  333. end
  334. if PLAYSSOUND == false then
  335. EFFECT:remove()
  336. else
  337. SOUND.Stopped:Connect(function()
  338. EFFECT:remove()
  339. end)
  340. end
  341. else
  342. if PLAYSSOUND == false then
  343. EFFECT:remove()
  344. else
  345. repeat Swait() until SOUND.Playing == false
  346. EFFECT:remove()
  347. end
  348. end
  349. end))
  350. end
  351.  
  352. local LEFTWINGS = {}
  353. local RIGHTWINGS = {}
  354. local BODY = {}
  355.  
  356. local Back = CreatePart(3, Character, "Neon", 0, 0, "Teal", "Wing", VT(1,1,0.35),false)
  357. CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0))
  358.  
  359. local ANGLE = 35
  360. for i = 1, 5 do
  361. local Wing = CreatePart(3, Character, "Neon", 0, 0, "New Yeller", "Wing", VT(0.15,2+(i/2),0.15),false)
  362. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  363. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Crimson", "Wing", VT(0.25,1,0.25),false)
  364. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  365. ANGLE = ANGLE - 15
  366. table.insert(LEFTWINGS,WingWeld)
  367. end
  368.  
  369. ANGLE = 35
  370. for i = 1, 5 do
  371. local Wing = CreatePart(3, Character, "Neon", 0, 0, "Crimson", "Wing", VT(0.15,2+(i/2),0.15),false)
  372. local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0))
  373. local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really blue", "Wing", VT(0.25,1,0.25),false)
  374. CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0))
  375. ANGLE = ANGLE - 15
  376. table.insert(RIGHTWINGS,WingWeld)
  377. end
  378.  
  379. function MakeForm(PART,TYPE)
  380. if TYPE == "Cyl" then
  381. local MSH = IT("CylinderMesh",PART)
  382. elseif TYPE == "Ball" then
  383. local MSH = IT("SpecialMesh",PART)
  384. MSH.MeshType = "Sphere"
  385. elseif TYPE == "Wedge" then
  386. local MSH = IT("SpecialMesh",PART)
  387. MSH.MeshType = "Wedge"
  388. end
  389. end
  390.  
  391. Debris = game:GetService("Debris")
  392.  
  393. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  394. local DIRECTION = CF(StartPos,EndPos).lookVector
  395. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  396. end
  397.  
  398. function turnto(position)
  399. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  400. end
  401.  
  402. function SpawnTrail(FROM,TO,BIG)
  403. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Trail", VT(0,0,0))
  404. MakeForm(TRAIL,"Cyl")
  405. local DIST = (FROM - TO).Magnitude
  406. if BIG == true then
  407. TRAIL.Size = VT(0.5,DIST,0.5)
  408. else
  409. TRAIL.Size = VT(0.25,DIST,0.25)
  410. end
  411. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  412. coroutine.resume(coroutine.create(function()
  413. for i = 1, 5 do
  414. Swait()
  415. TRAIL.Transparency = TRAIL.Transparency + 0.1
  416. end
  417. TRAIL:remove()
  418. end))
  419. end
  420.  
  421. local asd = Instance.new("ParticleEmitter")
  422. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  423. asd.LightEmission = .1
  424. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  425. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  426. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  427. asd.Transparency = bbb
  428. asd.Size = aaa
  429. asd.ZOffset = .9
  430. asd.Acceleration = Vector3.new(0, -15, 0)
  431. asd.LockedToPart = false
  432. asd.EmissionDirection = "Back"
  433. asd.Lifetime = NumberRange.new(1, 2)
  434. asd.Rotation = NumberRange.new(-100, 100)
  435. asd.RotSpeed = NumberRange.new(-100, 100)
  436. asd.Speed = NumberRange.new(10)
  437. asd.Enabled = false
  438. asd.VelocitySpread = 999
  439.  
  440. function getbloody(victim,amount)
  441. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  442. PART.CFrame = victim.CFrame
  443. local HITPLAYERSOUNDS = {"356551938","264486467"}
  444. Debris:AddItem(PART,5)
  445. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  446. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  447. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  448. local prtcl = asd:Clone()
  449. prtcl.Parent = PART
  450. prtcl:Emit(amount*10)
  451. end
  452.  
  453. local Particle = IT("ParticleEmitter",nil)
  454. Particle.Enabled = false
  455. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  456. Particle.LightEmission = 0.5
  457. Particle.Rate = 150
  458. Particle.ZOffset = 1
  459. Particle.Rotation = NumberRange.new(-180, 180)
  460. Particle.RotSpeed = NumberRange.new(-180, 180)
  461. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  462. Particle.Color = ColorSequence.new(C3(58,125,21),C3(0.4,0,0))
  463.  
  464. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  465. function ParticleEmitter(Table)
  466. local PRTCL = Particle:Clone()
  467. local Speed = Table.Speed or 5
  468. local Drag = Table.Drag or 0
  469. local Size1 = Table.Size1 or 1
  470. local Size2 = Table.Size2 or 5
  471. local Lifetime1 = Table.Lifetime1 or 1
  472. local Lifetime2 = Table.Lifetime2 or 1.5
  473. local Parent = Table.Parent or Torso
  474. local Emit = Table.Emit or 100
  475. local Offset = Table.Offset or 360
  476. local Acel = Table.Acel or VT(0,0,0)
  477. local Enabled = Table.Enabled or false
  478. PRTCL.Parent = Parent
  479. PRTCL.Size = NumberSequence.new(Size1,Size2)
  480. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  481. PRTCL.Speed = NumberRange.new(Speed)
  482. PRTCL.VelocitySpread = Offset
  483. PRTCL.Drag = Drag
  484. PRTCL.Acceleration = Acel
  485. if Enabled == false then
  486. PRTCL:Emit(Emit)
  487. Debris:AddItem(PRTCL,Lifetime2)
  488. else
  489. PRTCL.Enabled = true
  490. end
  491. return PRTCL
  492. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement