Advertisement
cobblecorn

Untitled

Jun 16th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.94 KB | None | 0 0
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5. wait(0.2)
  6.  
  7. Player = game:GetService("Players").LocalPlayer
  8. PlayerGui = Player.PlayerGui
  9. Cam = workspace.CurrentCamera
  10. Backpack = Player.Backpack
  11. Character = Player.Character
  12. Humanoid = Character.Humanoid
  13. Mouse = Player:GetMouse()
  14. RootPart = Character["HumanoidRootPart"]
  15. Torso = Character["Torso"]
  16. Head = Character["Head"]
  17. RightArm = Character["Right Arm"]
  18. LeftArm = Character["Left Arm"]
  19. RightLeg = Character["Right Leg"]
  20. LeftLeg = Character["Left Leg"]
  21. RootJoint = RootPart["RootJoint"]
  22. Neck = Torso["Neck"]
  23. RightShoulder = Torso["Right Shoulder"]
  24. LeftShoulder = Torso["Left Shoulder"]
  25. RightHip = Torso["Right Hip"]
  26. LeftHip = Torso["Left Hip"]
  27. local sick = Instance.new("Sound",Torso)
  28. sick.SoundId = "rbxassetid://848439234"
  29. sick.Looped = true
  30. sick.Pitch = 1
  31. sick.Volume = 3
  32. sick:Play()
  33.  
  34. IT = Instance.new
  35. CF = CFrame.new
  36. VT = Vector3.new
  37. RAD = math.rad
  38. C3 = Color3.new
  39. UD2 = UDim2.new
  40. BRICKC = BrickColor.new
  41. ANGLES = CFrame.Angles
  42. EULER = CFrame.fromEulerAnglesXYZ
  43. COS = math.cos
  44. ACOS = math.acos
  45. SIN = math.sin
  46. ASIN = math.asin
  47. ABS = math.abs
  48. MRANDOM = math.random
  49. FLOOR = math.floor
  50.  
  51. --//=================================\\
  52. --|| USEFUL VALUES
  53. --\\=================================//
  54.  
  55. Animation_Speed = 3
  56. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  57. local Speed = 35
  58. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  59. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  60. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  61. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  62. local DAMAGEMULTIPLIER = 1
  63. local ANIM = "Idle"
  64. local ATTACK = false
  65. local EQUIPPED = false
  66. local HOLD = false
  67. local COMBO = 1
  68. local Rooted = false
  69. local SINE = 0
  70. local KEYHOLD = false
  71. local CHANGE = 2 / Animation_Speed
  72. local WALKINGANIM = false
  73. local VALUE1 = false
  74. local VALUE2 = false
  75. local ROBLOXIDLEANIMATION = IT("Animation")
  76. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  77. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  78. --ROBLOXIDLEANIMATION.Parent = Humanoid
  79. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  80. WEAPONGUI.Name = "Weapon GUI"
  81. local Effects = IT("Folder", Character)
  82. Effects.Name = "Effects"
  83. local ANIMATOR = Humanoid.Animator
  84. local ANIMATE = Character.Animate
  85. local UNANCHOR = true
  86. local LAUGHS = {834001699,834001752,834001797,834001828}
  87. local SONGS = {534861083,530959353,1534958855,0}
  88. local CHOICE = MRANDOM(1,4)
  89.  
  90. --//=================================\\
  91. --\\=================================//
  92.  
  93.  
  94. --//=================================\\
  95. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  96. --\\=================================//
  97.  
  98. ArtificialHB = Instance.new("BindableEvent", script)
  99. ArtificialHB.Name = "ArtificialHB"
  100.  
  101. script:WaitForChild("ArtificialHB")
  102.  
  103. frame = Frame_Speed
  104. tf = 0
  105. allowframeloss = false
  106. tossremainder = false
  107. lastframe = tick()
  108. script.ArtificialHB:Fire()
  109.  
  110. game:GetService("RunService").Heartbeat:connect(function(s, p)
  111. tf = tf + s
  112. if tf >= frame then
  113. if allowframeloss then
  114. script.ArtificialHB:Fire()
  115. lastframe = tick()
  116. else
  117. for i = 1, math.floor(tf / frame) do
  118. script.ArtificialHB:Fire()
  119. end
  120. lastframe = tick()
  121. end
  122. if tossremainder then
  123. tf = 0
  124. else
  125. tf = tf - frame * math.floor(tf / frame)
  126. end
  127. end
  128. end)
  129.  
  130. --//=================================\\
  131. --\\=================================//
  132.  
  133. --//=================================\\
  134. --|| SOME FUNCTIONS
  135. --\\=================================//
  136.  
  137. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  138. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  139. end
  140.  
  141. function PositiveAngle(NUMBER)
  142. if NUMBER >= 0 then
  143. NUMBER = 0
  144. end
  145. return NUMBER
  146. end
  147.  
  148. function NegativeAngle(NUMBER)
  149. if NUMBER <= 0 then
  150. NUMBER = 0
  151. end
  152. return NUMBER
  153. end
  154.  
  155. function Swait(NUMBER)
  156. if NUMBER == 0 or NUMBER == nil then
  157. ArtificialHB.Event:wait()
  158. else
  159. for i = 1, NUMBER do
  160. ArtificialHB.Event:wait()
  161. end
  162. end
  163. end
  164.  
  165. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  166. local NEWMESH = IT(MESH)
  167. if MESH == "SpecialMesh" then
  168. NEWMESH.MeshType = MESHTYPE
  169. if MESHID ~= "nil" and MESHID ~= "" then
  170. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  171. end
  172. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  173. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  174. end
  175. end
  176. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  177. NEWMESH.Scale = SCALE
  178. NEWMESH.Parent = PARENT
  179. return NEWMESH
  180. end
  181.  
  182. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  183. local NEWPART = IT("Part")
  184. NEWPART.formFactor = FORMFACTOR
  185. NEWPART.Reflectance = REFLECTANCE
  186. NEWPART.Transparency = TRANSPARENCY
  187. NEWPART.CanCollide = false
  188. NEWPART.Locked = true
  189. NEWPART.Anchored = true
  190. if ANCHOR == false then
  191. NEWPART.Anchored = false
  192. end
  193. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  194. NEWPART.Name = NAME
  195. NEWPART.Size = SIZE
  196. NEWPART.Position = Torso.Position
  197. NEWPART.Material = MATERIAL
  198. NEWPART:BreakJoints()
  199. NEWPART.Parent = PARENT
  200. return NEWPART
  201. end
  202.  
  203. local function weldBetween(a, b)
  204. local weldd = IT("Weld")
  205. weldd.Part0 = a
  206. weldd.Part1 = b
  207. weldd.C0 = CF()
  208. weldd.C1 = b.CFrame:inverse() * a.CFrame
  209. weldd.Parent = a
  210. return weldd
  211. end
  212.  
  213.  
  214. function QuaternionFromCFrame(cf)
  215. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  216. local trace = m00 + m11 + m22
  217. if trace > 0 then
  218. local s = math.sqrt(1 + trace)
  219. local recip = 0.5 / s
  220. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  221. else
  222. local i = 0
  223. if m11 > m00 then
  224. i = 1
  225. end
  226. if m22 > (i == 0 and m00 or m11) then
  227. i = 2
  228. end
  229. if i == 0 then
  230. local s = math.sqrt(m00 - m11 - m22 + 1)
  231. local recip = 0.5 / s
  232. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  233. elseif i == 1 then
  234. local s = math.sqrt(m11 - m22 - m00 + 1)
  235. local recip = 0.5 / s
  236. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  237. elseif i == 2 then
  238. local s = math.sqrt(m22 - m00 - m11 + 1)
  239. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  240. end
  241. end
  242. end
  243.  
  244. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  245. local xs, ys, zs = x + x, y + y, z + z
  246. local wx, wy, wz = w * xs, w * ys, w * zs
  247. local xx = x * xs
  248. local xy = x * ys
  249. local xz = x * zs
  250. local yy = y * ys
  251. local yz = y * zs
  252. local zz = z * zs
  253. 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))
  254. end
  255.  
  256. function QuaternionSlerp(a, b, t)
  257. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  258. local startInterp, finishInterp;
  259. if cosTheta >= 0.0001 then
  260. if (1 - cosTheta) > 0.0001 then
  261. local theta = ACOS(cosTheta)
  262. local invSinTheta = 1 / SIN(theta)
  263. startInterp = SIN((1 - t) * theta) * invSinTheta
  264. finishInterp = SIN(t * theta) * invSinTheta
  265. else
  266. startInterp = 1 - t
  267. finishInterp = t
  268. end
  269. else
  270. if (1 + cosTheta) > 0.0001 then
  271. local theta = ACOS(-cosTheta)
  272. local invSinTheta = 1 / SIN(theta)
  273. startInterp = SIN((t - 1) * theta) * invSinTheta
  274. finishInterp = SIN(t * theta) * invSinTheta
  275. else
  276. startInterp = t - 1
  277. finishInterp = t
  278. end
  279. end
  280. 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
  281. end
  282.  
  283. function Clerp(a, b, t)
  284. local qa = {QuaternionFromCFrame(a)}
  285. local qb = {QuaternionFromCFrame(b)}
  286. local ax, ay, az = a.x, a.y, a.z
  287. local bx, by, bz = b.x, b.y, b.z
  288. local _t = 1 - t
  289. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  290. end
  291.  
  292. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  293. local frame = IT("Frame")
  294. frame.BackgroundTransparency = TRANSPARENCY
  295. frame.BorderSizePixel = BORDERSIZEPIXEL
  296. frame.Position = POSITION
  297. frame.Size = SIZE
  298. frame.BackgroundColor3 = COLOR
  299. frame.BorderColor3 = BORDERCOLOR
  300. frame.Name = NAME
  301. frame.Parent = PARENT
  302. return frame
  303. end
  304.  
  305. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  306. local label = IT("TextLabel")
  307. label.BackgroundTransparency = 1
  308. label.Size = UD2(1, 0, 1, 0)
  309. label.Position = UD2(0, 0, 0, 0)
  310. label.TextColor3 = TEXTCOLOR
  311. label.TextStrokeTransparency = STROKETRANSPARENCY
  312. label.TextTransparency = TRANSPARENCY
  313. label.FontSize = TEXTFONTSIZE
  314. label.Font = TEXTFONT
  315. label.BorderSizePixel = BORDERSIZEPIXEL
  316. label.TextScaled = false
  317. label.Text = TEXT
  318. label.Name = NAME
  319. label.Parent = PARENT
  320. return label
  321. end
  322.  
  323. function NoOutlines(PART)
  324. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  325. end
  326.  
  327. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  328. local NEWWELD = IT(TYPE)
  329. NEWWELD.Part0 = PART0
  330. NEWWELD.Part1 = PART1
  331. NEWWELD.C0 = C0
  332. NEWWELD.C1 = C1
  333. NEWWELD.Parent = PARENT
  334. return NEWWELD
  335. end
  336.  
  337. local S = IT("Sound")
  338. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  339. local NEWSOUND = nil
  340. coroutine.resume(coroutine.create(function()
  341. NEWSOUND = S:Clone()
  342. NEWSOUND.Parent = PARENT
  343. NEWSOUND.Volume = VOLUME
  344. NEWSOUND.Pitch = PITCH
  345. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  346. NEWSOUND:play()
  347. if DOESLOOP == true then
  348. NEWSOUND.Looped = true
  349. else
  350. repeat wait(1) until NEWSOUND.Playing == false
  351. NEWSOUND:remove()
  352. end
  353. end))
  354. return NEWSOUND
  355. end
  356.  
  357. function CFrameFromTopBack(at, top, back)
  358. local right = top:Cross(back)
  359. 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)
  360. end
  361.  
  362. --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})
  363. function WACKYEFFECT(Table)
  364. local TYPE = (Table.EffectType or "Sphere")
  365. local SIZE = (Table.Size or VT(1,1,1))
  366. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  367. local TRANSPARENCY = (Table.Transparency or 0)
  368. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  369. local CFRAME = (Table.CFrame or Torso.CFrame)
  370. local MOVEDIRECTION = (Table.MoveToPos or nil)
  371. local ROTATION1 = (Table.RotationX or 0)
  372. local ROTATION2 = (Table.RotationY or 0)
  373. local ROTATION3 = (Table.RotationZ or 0)
  374. local MATERIAL = (Table.Material or "Neon")
  375. local COLOR = (Table.Color or C3(1,1,1))
  376. local TIME = (Table.Time or 45)
  377. local SOUNDID = (Table.SoundID or nil)
  378. local SOUNDPITCH = (Table.SoundPitch or nil)
  379. local SOUNDVOLUME = (Table.SoundVolume or nil)
  380. coroutine.resume(coroutine.create(function()
  381. local PLAYSSOUND = false
  382. local SOUND = nil
  383. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  384. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  385. PLAYSSOUND = true
  386. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  387. end
  388. EFFECT.Color = COLOR
  389. local MSH = nil
  390. if TYPE == "Sphere" then
  391. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  392. elseif TYPE == "Block" then
  393. MSH = IT("BlockMesh",EFFECT)
  394. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  395. elseif TYPE == "Wave" then
  396. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  397. elseif TYPE == "Ring" then
  398. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  399. elseif TYPE == "Slash" then
  400. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  401. elseif TYPE == "Round Slash" then
  402. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  403. elseif TYPE == "Swirl" then
  404. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  405. elseif TYPE == "Skull" then
  406. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  407. elseif TYPE == "Crystal" then
  408. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  409. end
  410. if MSH ~= nil then
  411. local MOVESPEED = nil
  412. if MOVEDIRECTION ~= nil then
  413. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  414. end
  415. local GROWTH = SIZE - ENDSIZE
  416. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  417. if TYPE == "Block" then
  418. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  419. else
  420. EFFECT.CFrame = CFRAME
  421. end
  422. for LOOP = 1, TIME+1 do
  423. Swait()
  424. MSH.Scale = MSH.Scale - GROWTH/TIME
  425. if TYPE == "Wave" then
  426. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  427. end
  428. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  429. if TYPE == "Block" then
  430. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  431. else
  432. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  433. end
  434. if MOVEDIRECTION ~= nil then
  435. local ORI = EFFECT.Orientation
  436. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  437. EFFECT.Orientation = ORI
  438. end
  439. end
  440. if PLAYSSOUND == false then
  441. EFFECT:remove()
  442. else
  443. SOUND.Stopped:Connect(function()
  444. EFFECT:remove()
  445. end)
  446. end
  447. else
  448. if PLAYSSOUND == false then
  449. EFFECT:remove()
  450. else
  451. repeat Swait() until SOUND.Playing == false
  452. EFFECT:remove()
  453. end
  454. end
  455. end))
  456. end
  457.  
  458. function MakeForm(PART,TYPE)
  459. if TYPE == "Cyl" then
  460. local MSH = IT("CylinderMesh",PART)
  461. elseif TYPE == "Ball" then
  462. local MSH = IT("SpecialMesh",PART)
  463. MSH.MeshType = "Sphere"
  464. elseif TYPE == "Wedge" then
  465. local MSH = IT("SpecialMesh",PART)
  466. MSH.MeshType = "Wedge"
  467. end
  468. end
  469.  
  470. Debris = game:GetService("Debris")
  471.  
  472. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  473. local DIRECTION = CF(StartPos,EndPos).lookVector
  474. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  475. end
  476.  
  477. function turnto(position)
  478. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  479. end
  480.  
  481. function SpawnTrail(FROM,TO,BIG)
  482. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  483. MakeForm(TRAIL,"Cyl")
  484. local DIST = (FROM - TO).Magnitude
  485. if BIG == true then
  486. TRAIL.Size = VT(0.5,DIST,0.5)
  487. else
  488. TRAIL.Size = VT(0.25,DIST,0.25)
  489. end
  490. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  491. coroutine.resume(coroutine.create(function()
  492. for i = 1, 5 do
  493. Swait()
  494. TRAIL.Transparency = TRAIL.Transparency + 0.1
  495. end
  496. TRAIL:remove()
  497. end))
  498. end
  499.  
  500. local asd = Instance.new("ParticleEmitter")
  501. asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
  502. asd.LightEmission = .1
  503. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  504. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  505. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  506. asd.Transparency = bbb
  507. asd.Size = aaa
  508. asd.ZOffset = .9
  509. asd.Acceleration = Vector3.new(0, -15, 0)
  510. asd.LockedToPart = false
  511. asd.EmissionDirection = "Back"
  512. asd.Lifetime = NumberRange.new(1, 2)
  513. asd.Rotation = NumberRange.new(-100, 100)
  514. asd.RotSpeed = NumberRange.new(-100, 100)
  515. asd.Speed = NumberRange.new(10)
  516. asd.Enabled = false
  517. asd.VelocitySpread = 999
  518.  
  519. function getbloody(victim,amount)
  520. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  521. PART.CFrame = victim.CFrame
  522. local HITPLAYERSOUNDS = {"356551938","264486467"}
  523. Debris:AddItem(PART,5)
  524. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  525. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  526. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  527. local prtcl = asd:Clone()
  528. prtcl.Parent = PART
  529. prtcl:Emit(amount*10)
  530. end
  531.  
  532. local Particle = IT("ParticleEmitter",nil)
  533. Particle.Enabled = false
  534. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  535. Particle.LightEmission = 0.5
  536. Particle.Rate = 150
  537. Particle.ZOffset = 1
  538. Particle.Rotation = NumberRange.new(-180, 180)
  539. Particle.RotSpeed = NumberRange.new(-180, 180)
  540. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  541. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  542.  
  543. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  544. function ParticleEmitter(Table)
  545. local PRTCL = Particle:Clone()
  546. local Speed = Table.Speed or 5
  547. local Drag = Table.Drag or 0
  548. local Size1 = Table.Size1 or 1
  549. local Size2 = Table.Size2 or 5
  550. local Lifetime1 = Table.Lifetime1 or 1
  551. local Lifetime2 = Table.Lifetime2 or 1.5
  552. local Parent = Table.Parent or Torso
  553. local Emit = Table.Emit or 100
  554. local Offset = Table.Offset or 360
  555. local Acel = Table.Acel or VT(0,0,0)
  556. local Enabled = Table.Enabled or false
  557. PRTCL.Parent = Parent
  558. PRTCL.Size = NumberSequence.new(Size1,Size2)
  559. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  560. PRTCL.Speed = NumberRange.new(Speed)
  561. PRTCL.VelocitySpread = Offset
  562. PRTCL.Drag = Drag
  563. PRTCL.Acceleration = Acel
  564. if Enabled == false then
  565. PRTCL:Emit(Emit)
  566. Debris:AddItem(PRTCL,Lifetime2)
  567. else
  568. PRTCL.Enabled = true
  569. end
  570. return PRTCL
  571. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement