Advertisement
MysteriousL

Ikguru

Oct 19th, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.25 KB | None | 0 0
  1. --------------------------This is an Official script from Duelist--------------------------
  2. ---{-------------------- -------------------}---
  3. ---{-------------------- / \ -------------------}---
  4. ---{-------------------- II -------------------}---
  5. ---{-------------------- II -------------------}---
  6. ---{-------------------- II -------------------}---
  7. ---{-------------------- A========A -------------------}---
  8. ---{-------------------- II -------------------}---
  9. ---{-------------------- II -------------------}---
  10. ---{-------------------- W -------------------}---
  11. -------------------------------------------------------------------------------------------------------------
  12. Player = game.Players.LocalPlayer
  13. Character = Player.Character
  14. local effectz = Instance.new('Model', Character)
  15. effectz.Name = "effects"
  16. PlayerGui = Player.PlayerGui
  17. mana=100
  18. Backpack = Player.Backpack
  19. Torso = Character.Torso
  20. Head = Character.Head
  21. Humanoid = Character.Humanoid
  22. LeftArm = Character["Left Arm"]
  23. LeftLeg = Character["Left Leg"]
  24. RightArm = Character["Right Arm"]
  25. RightLeg = Character["Right Leg"]
  26. LS = Torso["Left Shoulder"]
  27. RS = Torso["Right Shoulder"]
  28. Neck = Torso.Neck
  29. attacktype = 1
  30. vt = Vector3.new
  31. cf = CFrame.new
  32. euler = CFrame.fromEulerAnglesXYZ
  33. angles = CFrame.Angles
  34. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  37. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  38. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  39. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  40. RootPart = Character.HumanoidRootPart
  41. RootJoint = RootPart.RootJoint
  42. RootCF = euler(-1.57, 0, 3.14)
  43. attack = false
  44. equipped = false
  45. local Anim = "Idle"
  46. local Effects = {}
  47. cam = workspace.CurrentCamera
  48. ZTarget = nil
  49. RocketTarget = nil
  50. local RbxUtility = LoadLibrary("RbxUtility")
  51. local Create = RbxUtility.Create
  52. local m = Create("Model"){
  53. Parent = Character,
  54. Name = "WeaponModel",
  55. }
  56. mouse = Player:GetMouse()
  57. RSH = Torso["Right Shoulder"]
  58. LSH = Torso["Left Shoulder"]
  59. RHP = Character.Torso["Right Hip"]
  60. LHP = Character.Torso["Left Hip"]
  61.  
  62.  
  63. if PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  64. PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  65. end
  66.  
  67.  
  68. local fengui = Instance.new("GuiMain")
  69. fengui.Parent = PlayerGui
  70. fengui.Name = "manaGUI"
  71. local fenframe = Instance.new("Frame")
  72. fenframe.Parent = fengui
  73. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  74. fenframe.BackgroundTransparency = 1
  75. fenframe.BorderColor3 = Color3.new(17,17,17)
  76. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  77. local fentext = Instance.new("TextLabel")
  78. fentext.Parent = fenframe
  79. fentext.Text = "Energy("..mana..")"
  80. fentext.BackgroundTransparency = 1
  81. fentext.SizeConstraint = "RelativeXY"
  82. fentext.TextXAlignment = "Center"
  83. fentext.TextYAlignment = "Center"
  84. fentext.Position = UDim2.new(0,80,1,200)
  85. local fentext2 = Instance.new("TextLabel")
  86. fentext2.Parent = fenframe
  87. fentext2.Text = " "
  88. fentext2.BackgroundTransparency = 0
  89. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  90. fentext2.SizeConstraint = "RelativeXY"
  91. fentext2.TextXAlignment = "Center"
  92. fentext2.TextYAlignment = "Center"
  93. fentext2.Position = UDim2.new(0,10,1,170)
  94. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  95. local fentext3 = Instance.new("TextLabel")
  96. fentext3.Parent = fenframe
  97. fentext3.Text = " "
  98. fentext3.BackgroundTransparency = 0
  99. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  100. fentext3.SizeConstraint = "RelativeXY"
  101. fentext3.TextXAlignment = "Center"
  102. fentext3.TextYAlignment = "Center"
  103. fentext3.Position = UDim2.new(0,10,1,170)
  104. fentext3.Size = UDim2.new(mana/100,0,0.400000006,0)
  105.  
  106. coroutine.resume(coroutine.create(function()
  107. while true do
  108. wait(.1)
  109. fentext3.Size = UDim2.new(mana/36,0,0.200000006,0)
  110. fentext.Text = "Skill..("..mana.."%)"
  111. fentext3.BackgroundColor3 = Color3.new(1,1,0)
  112. fentext.TextStrokeTransparency=0
  113. fentext.TextColor3=Color3.new(1,1,0)
  114. end
  115. end))
  116. coroutine.resume(coroutine.create(function()
  117. while true do
  118. wait(0.1)
  119. if mana <= 0 and attack == false then
  120. attack = true
  121. while mana <= 50 do
  122. wait(0.1)
  123. mana = mana + 5
  124. end
  125. attack = false
  126. end
  127. if mana < 100 and attack == false then
  128. mana = mana + 1
  129. end
  130. end
  131. end))
  132.  
  133. function NoOutline(Part)
  134. Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10
  135. end
  136. ArtificialHB = Instance.new("BindableEvent", script)
  137. ArtificialHB.Name = "Heartbeat"
  138.  
  139. script:WaitForChild("Heartbeat")
  140.  
  141. frame = 1 / 30
  142.  
  143. frame = 1/60
  144. else
  145. frame=1/30
  146. end
  147. tf = 0
  148. allowframeloss = false
  149. tossremainder = false
  150. lastframe = tick()
  151. script.Heartbeat:Fire()
  152.  
  153. game:GetService("RunService").Heartbeat:connect(function(s, p)
  154. tf = tf + s
  155. if tf >= frame then
  156. if allowframeloss then
  157. script.Heartbeat:Fire()
  158. lastframe = tick()
  159. else
  160. for i = 1, math.floor(tf / frame) do
  161. script.Heartbeat:Fire()
  162. end
  163. lastframe = tick()
  164. end
  165. if tossremainder then
  166. tf = 0
  167. else
  168. tf = tf - frame * math.floor(tf / frame)
  169. end
  170. end
  171. end)
  172.  
  173. function swait(num)
  174. if num == 0 or num == nil then
  175. ArtificialHB.Event:wait()
  176. else
  177. for i = 0, num do
  178. ArtificialHB.Event:wait()
  179. end
  180. end
  181. end
  182. function nooutline(part)
  183. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  184. end
  185.  
  186. function part(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  187. local fp = Create("Part"){
  188. formFactor = formfactor,
  189. Parent = parent,
  190. Reflectance = reflectance,
  191. Transparency = transparency,
  192. CanCollide = false,
  193. Locked = true,
  194. BrickColor = BrickColor.new(tostring(brickcolor)),
  195. Name = name,
  196. Size = size,
  197. Position = Character.Torso.Position,
  198. Material = material,
  199. }
  200. nooutline(fp)
  201. return fp
  202. end
  203.  
  204. function mesh(Mesh, part, meshtype, meshid, offset, scale)
  205. local Msh = Create(Mesh){
  206. Parent = part,
  207. Offset = offset,
  208. Scale = scale,
  209. }
  210. if Mesh == "SpecialMesh" then
  211. Msh.MeshType = meshtype
  212. Msh.MeshId = meshid
  213. end
  214. return Msh
  215. end
  216.  
  217. function weld(parent, part0, part1, c0, c1)
  218. local Weld = Create("Weld"){
  219. Parent = parent,
  220. Part0 = part0,
  221. Part1 = part1,
  222. C0 = c0,
  223. C1 = c1,
  224. }
  225. return Weld
  226. end
  227.  
  228.  
  229. local function CFrameFromTopBack(at, top, back)
  230. local right = top:Cross(back)
  231. return CFrame.new(at.x, at.y, at.z,
  232. right.x, top.x, back.x,
  233. right.y, top.y, back.y,
  234. right.z, top.z, back.z)
  235. end
  236.  
  237. function Triangle(a, b, c)
  238. local edg1 = (c - a):Dot((b - a).unit)
  239. local edg2 = (a - b):Dot((c - b).unit)
  240. local edg3 = (b - c):Dot((a - c).unit)
  241. if edg1 <= (b - a).magnitude and edg1 >= 0 then
  242. a, b, c = a, b, c
  243. elseif edg2 <= (c - b).magnitude and edg2 >= 0 then
  244. a, b, c = b, c, a
  245. elseif edg3 <= (a - c).magnitude and edg3 >= 0 then
  246. a, b, c = c, a, b
  247. else
  248. assert(false, "unreachable")
  249. end
  250.  
  251. local len1 = (c - a):Dot((b - a).unit)
  252. local len2 = (b - a).magnitude - len1
  253. local width = (a + (b - a).unit * len1 - c).magnitude
  254.  
  255. local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit)
  256.  
  257. local list = {}
  258.  
  259. local Color = BrickColor.new("Dark stone grey")
  260.  
  261. if len1 > 0.01 then
  262. local w1 = Create('WedgePart', m){
  263. Material = "SmoothPlastic",
  264. FormFactor = 'Custom',
  265. BrickColor = Color,
  266. Transparency = 0,
  267. Reflectance = 0,
  268. Material = "SmoothPlastic",
  269. CanCollide = false,
  270. Anchored = true,
  271. Parent = workspace,
  272. Transparency = 0.3,
  273. }
  274. game:GetService("Debris"):AddItem(w1, 5)
  275. NoOutline(w1)
  276. local sz = Vector3.new(0.2, width, len1)
  277. w1.Size = sz
  278. local sp = Create("SpecialMesh"){
  279. Parent = w1,
  280. MeshType = "Wedge",
  281. Scale = Vector3.new(0, 1, 1) * sz / w1.Size,
  282. }
  283. w1:BreakJoints()
  284. table.insert(Effects, {
  285. w1,
  286. "Disappear",
  287. .03
  288. })
  289. w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2)
  290. table.insert(list, w1)
  291. end
  292. if len2 > 0.01 then
  293. local w2 = Create('WedgePart', m){
  294. Material = "SmoothPlastic",
  295. FormFactor = 'Custom',
  296. BrickColor = Color,
  297. Transparency = 0,
  298. Reflectance = 0,
  299. Material = "SmoothPlastic",
  300. CanCollide = false,
  301. Anchored = true,
  302. Parent = workspace,
  303. Transparency = 0.3,
  304. }
  305. game:GetService("Debris"):AddItem(w2, 5)
  306. NoOutline(w2)
  307. local sz = Vector3.new(0.2, width, len2)
  308. w2.Size = sz
  309. local sp = Create("SpecialMesh"){
  310. Parent = w2,
  311. MeshType = "Wedge",
  312. Scale = Vector3.new(0, 1, 1) * sz / w2.Size,
  313. }
  314. w2:BreakJoints()
  315. table.insert(Effects, {
  316. w2,
  317. "Disappear",
  318. .03
  319. })
  320. w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2)
  321. table.insert(list, w2)
  322. end
  323. return unpack(list)
  324. end
  325.  
  326. function so(id, par, vol, pit)
  327. coroutine.resume(coroutine.create(function()
  328. local sou = Instance.new("Sound", par or workspace)
  329. sou.Volume = vol
  330. sou.Pitch = pit or 1
  331. sou.SoundId = id
  332. swait()
  333. sou:play()
  334. swait(6)
  335. sou:Remove()
  336. end))
  337. end
  338.  
  339. function clerp(a, b, t)
  340.  
  341. local function QuaternionFromCFrame(cf)
  342. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  343. local trace = m00 + m11 + m22
  344. if trace > 0 then
  345. local s = math.sqrt(1 + trace)
  346. local recip = 0.5 / s
  347. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  348. else
  349. local i = 0
  350. if m11 > m00 then
  351. i = 1
  352. end
  353. if m22 > (i == 0 and m00 or m11) then
  354. i = 2
  355. end
  356. if i == 0 then
  357. local s = math.sqrt(m00 - m11 - m22 + 1)
  358. local recip = 0.5 / s
  359. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  360. elseif i == 1 then
  361. local s = math.sqrt(m11 - m22 - m00 + 1)
  362. local recip = 0.5 / s
  363. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  364. elseif i == 2 then
  365. local s = math.sqrt(m22 - m00 - m11 + 1)
  366. local recip = 0.5 / s
  367. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  368. end
  369. end
  370. end
  371.  
  372. local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  373. local xs, ys, zs = x + x, y + y, z + z
  374. local wx, wy, wz = w * xs, w * ys, w * zs
  375. local xx = x * xs
  376. local xy = x * ys
  377. local xz = x * zs
  378. local yy = y * ys
  379. local yz = y * zs
  380. local zz = z * zs
  381. 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))
  382. end
  383.  
  384. local function QuaternionSlerp(a, b, t)
  385. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  386. local startInterp, finishInterp;
  387. if cosTheta >= 0.0001 then
  388. if (1 - cosTheta) > 0.0001 then
  389. local theta = math.acos(cosTheta)
  390. local invSinTheta = 1 / math.sin(theta)
  391. startInterp = math.sin((1 - t) * theta) * invSinTheta
  392. finishInterp = math.sin(t * theta) * invSinTheta
  393. else
  394. startInterp = 1 - t
  395. finishInterp = t
  396. end
  397. else
  398. if (1 + cosTheta) > 0.0001 then
  399. local theta = math.acos(-cosTheta)
  400. local invSinTheta = 1 / math.sin(theta)
  401. startInterp = math.sin((t - 1) * theta) * invSinTheta
  402. finishInterp = math.sin(t * theta) * invSinTheta
  403. else
  404. startInterp = t - 1
  405. finishInterp = t
  406. end
  407. end
  408. 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
  409. end
  410.  
  411. local qa = {
  412. QuaternionFromCFrame(a)
  413. }
  414. local qb = {
  415. QuaternionFromCFrame(b)
  416. }
  417. local ax, ay, az = a.x, a.y, a.z
  418. local bx, by, bz = b.x, b.y, b.z
  419.  
  420. local _t = 1 - t
  421. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  422. end
  423.  
  424. function rayCast(Pos, Dir, Max, Ignore)
  425. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  426. end
  427.  
  428. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  429. if hit.Parent == nil then
  430. return
  431. end
  432. local h = hit.Parent:FindFirstChild("Humanoid")
  433. for _, v in pairs(hit.Parent:children()) do
  434. if v:IsA("Humanoid") then
  435. h = v
  436. end
  437. end
  438. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  439. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  440. if hit.Parent.DebounceHit.Value == true then
  441. return
  442. end
  443. end
  444. local c = Create("ObjectValue"){
  445. Name = "creator",
  446. Value = game:service("Players").LocalPlayer,
  447. Parent = h,
  448. }
  449. game:GetService("Debris"):AddItem(c, .5)
  450. if HitSound ~= nil and HitPitch ~= nil then
  451. so(HitSound, hit, 1, HitPitch)
  452. end
  453. local Damage = math.random(minim, maxim)
  454. local blocked = false
  455. local block = hit.Parent:findFirstChild("Block")
  456. if block ~= nil then
  457. if block.className == "IntValue" then
  458. if block.Value > 0 then
  459. blocked = true
  460. block.Value = block.Value - 1
  461. print(block.Value)
  462. end
  463. end
  464. end
  465. if blocked == false then
  466. HitHealth=h.Health
  467. h.Health = h.Health - Damage
  468. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  469. print("gained spree")
  470. game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value=game.Players.LocalPlayer.leaderstats.Spree.Value+1
  471. end
  472. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color, Handle.BrickColor.Color)
  473. if HitHealth~=h.Health and HitHealth~=0 and h.Health<=0 and h.Parent.Name~="Hologram" then
  474. print("gained kill")
  475. script.Parent.Kills.Value=script.Parent.Kills.Value+1
  476. end
  477. else
  478. h.Health = h.Health - (Damage / 2)
  479. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color, Handle.BrickColor.Color)
  480. end
  481. if Type == "Knockdown" then
  482. local hum = hit.Parent.Humanoid
  483. hum.PlatformStand = true
  484. coroutine.resume(coroutine.create(function(HHumanoid)
  485. swait(1)
  486. HHumanoid.PlatformStand = false
  487. end), hum)
  488. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  489. local bodvol = Create("BodyVelocity"){
  490. velocity = angle * knockback,
  491. P = 5000,
  492. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  493. Parent = hit,
  494. }
  495. local rl = Create("BodyAngularVelocity"){
  496. P = 3000,
  497. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  498. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  499. Parent = hit,
  500. }
  501. game:GetService("Debris"):AddItem(bodvol, .5)
  502. game:GetService("Debris"):AddItem(rl, .5)
  503. elseif Type == "Normal" then
  504. local vp = Create("BodyVelocity"){
  505. P = 500,
  506. maxForce = Vector3.new(math.huge, 0, math.huge),
  507. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  508. }
  509. if knockback > 0 then
  510. vp.Parent = hit.Parent.Torso
  511. end
  512. game:GetService("Debris"):AddItem(vp, .5)
  513. elseif Type == "Up" then
  514. local bodyVelocity = Create("BodyVelocity"){
  515. velocity = vt(0, 20, 0),
  516. P = 5000,
  517. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  518. Parent = hit,
  519. }
  520. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  521. elseif Type == "Snare" then
  522. local bp = Create("BodyPosition"){
  523. P = 2000,
  524. D = 100,
  525. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  526. position = hit.Parent.Torso.Position,
  527. Parent = hit.Parent.Torso,
  528. }
  529. game:GetService("Debris"):AddItem(bp, 1)
  530. elseif Type == "Freeze" then
  531. local BodPos = Create("BodyPosition"){
  532. P = 50000,
  533. D = 1000,
  534. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  535. position = hit.Parent.Torso.Position,
  536. Parent = hit.Parent.Torso,
  537. }
  538. local BodGy = Create("BodyGyro") {
  539. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  540. P = 20e+003,
  541. Parent = hit.Parent.Torso,
  542. cframe = hit.Parent.Torso.CFrame,
  543. }
  544. hit.Parent.Torso.Anchored = true
  545. coroutine.resume(coroutine.create(function(Part)
  546. swait(1.5)
  547. Part.Anchored = false
  548. end), hit.Parent.Torso)
  549. game:GetService("Debris"):AddItem(BodPos, 3)
  550. game:GetService("Debris"):AddItem(BodGy, 3)
  551. end
  552. local debounce = Create("BoolValue"){
  553. Name = "DebounceHit",
  554. Parent = hit.Parent,
  555. Value = true,
  556. }
  557. game:GetService("Debris"):AddItem(debounce, Delay)
  558. c = Instance.new("ObjectValue")
  559. c.Name = "creator"
  560. c.Value = Player
  561. c.Parent = h
  562. game:GetService("Debris"):AddItem(c, .5)
  563. end
  564. end
  565.  
  566. function ShowDamage(Pos, Text, Time, Color, Color2)
  567. local Rate = (1 / 30)
  568. local Pos = (Pos or Vector3.new(0, 0, 0))
  569. local Text = (Text or "")
  570. local Time = (Time or 2)
  571. local Color = (Color or Color3.new(1, 0, 0))
  572. local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  573. EffectPart.Anchored = true
  574. local BillboardGui = Create("BillboardGui"){
  575. Size = UDim2.new(3, 0, 3, 0),
  576. Adornee = EffectPart,
  577. Parent = EffectPart,
  578. }
  579. local TextLabel = Create("TextLabel"){
  580. BackgroundTransparency = 1,
  581. Size = UDim2.new(1, 0, 1, 0),
  582. Text = Text,
  583. TextColor3 = Color,
  584. TextScaled = true,
  585. Font = Enum.Font.ArialBold,
  586. FontSize = Enum.FontSize.Size10,
  587. TextStrokeColor3 = Color2,
  588. TextStrokeTransparency = 0.8,
  589. Parent = BillboardGui,
  590. }
  591. game.Debris:AddItem(EffectPart, (Time + 0.1))
  592. EffectPart.Parent = game:GetService("Workspace")
  593. delay(0, function()
  594. local Frames = (Time / Rate)
  595. for Frame = 1, Frames do
  596. wait(Rate)
  597. local Percent = (Frame / Frames)
  598. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  599. TextLabel.TextTransparency = Percent
  600. end
  601. if EffectPart and EffectPart.Parent then
  602. EffectPart:Destroy()
  603. end
  604. end)
  605. end
  606.  
  607. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.280000031, 0.699999988, 0.280000001))
  608. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0860519409, -0.159469604, 1.00696373, 1, -1.72803976e-011, 1.90765604e-006, 1.90764786e-006, 4.44081707e-006, -1, 9.09494702e-012, 0.999999881, 4.44081707e-006))
  609. FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FakeHandle",Vector3.new(0.280000031, 0.699999988, 0.280000001))
  610. FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 0.0707168579, 0.0574593544, 1, -8.18545232e-012, 2.86099269e-013, -8.18545232e-012, 1, 4.54747351e-013, 2.86099269e-013, 4.54747351e-013, 1))
  611. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  612. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000375747681, -1.18781972, 0.839702606, -1, -1.02313925e-006, -2.56240446e-006, 2.56240173e-006, 1.79690323e-006, -1, 1.02317256e-006, -1, -1.79690414e-006))
  613. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  614. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.420000017, 0.200000003))
  615. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.889633477, -0.979663849, 0.0548973083, -0.258811921, -5.54403186e-006, -0.96592772, -3.15453076e-006, 1, -4.89435752e-006, 0.96592778, 1.78029984e-006, -0.258811951))
  616. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=111896510",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 0.349999994))
  617. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.200000003, 0.280000001))
  618. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.279872894, 0.209986687, -1.33514404e-005, -3.935309e-006, 1, -2.90573007e-006, 1.08481819e-008, 2.90573598e-006, 1, 1, 3.93527625e-006, -1.08583693e-008))
  619. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.519399941, 0.557200074, 1.74439991))
  620. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.420000017, 0.200000003))
  621. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.889616966, -0.979663849, -0.0549716949, 0.258811742, -5.84206009e-006, -0.96592778, -1.50227504e-006, 1, -6.45063938e-006, 0.965927839, 3.12056136e-006, 0.258811772))
  622. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=111896510",Vector3.new(0, 0, 0),Vector3.new(0.349999994, 0.349999994, 0.349999994))
  623. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000046, 0.280000061, 0.560000002))
  624. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.419868469, 7.62939453e-006, 2.7179718e-005, 3.83001225e-006, -1, 2.54809993e-006, 1, 3.82997496e-006, 3.03872399e-010, -3.12454534e-010, 2.54810584e-006, 1))
  625. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  626. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.700000048, 0.280000001))
  627. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, 0.552843094, 0.296955109, 1, -2.22826202e-011, 1.80189787e-011, -7.95807864e-013, 0.707115233, -0.707098365, -1.73940862e-011, 0.707098365, 0.707115233))
  628. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.28700006, 0.280000031))
  629. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.41986084, 0.00234603882, 2.14576721e-005, 3.74060505e-006, -1, 2.30967612e-006, 1, 3.74057413e-006, -7.42010826e-008, 7.41938067e-008, 2.30968203e-006, 1))
  630. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  631. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.560000062, 0.200000003))
  632. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00273132324, 0.622810364, 0.296985626, 1, -2.22826202e-011, 1.80189787e-011, -7.95807864e-013, 0.707115233, -0.707098365, -1.73940862e-011, 0.707098365, 0.707115233))
  633. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  634. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000046, 0.280000061, 0.420000017))
  635. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.839817047, -1.90734863e-005, -0.489821672, 3.8300077e-006, -1, 2.53319945e-006, 1, 3.82997496e-006, 3.04327147e-010, -3.12426113e-010, 2.53320582e-006, 1))
  636. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  637. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.28700006, 0.280000031))
  638. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.839794159, 0.00254631042, -0.49509263, 3.8300077e-006, -1, 2.53319945e-006, 1, 3.82997496e-006, 3.04327147e-010, -3.12426113e-010, 2.53320582e-006, 1))
  639. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  640. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.420000046, 0.980000079))
  641. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, -0.559818268, 0.0699512959, 1, -2.04636308e-011, 7.38572398e-013, -1.63709046e-011, 1, 2.6823227e-007, 7.82044568e-013, -2.68225904e-007, 1))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.280000001))
  643. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.279872894, 0.209986687, -1.33514404e-005, -3.935309e-006, 1, -2.90573007e-006, 1.08481819e-008, 2.90573598e-006, 1, 1, 3.93527625e-006, -1.08583693e-008))
  644. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.491399914, 0.557200074, 1.74439991))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.200000003, 0.560000062))
  646. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.0980835e-005, -0.419818878, 0.839810848, 1, -2.13731255e-011, -1.65118821e-011, -1.54614099e-011, 1, 2.62222466e-006, 1.80325338e-011, -2.62221829e-006, 1))
  647. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.420000017, 0.560000002))
  649. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559810638, -0.769824028, -3.43322754e-005, 1.45437184e-007, -1, -1.29630371e-006, -2.08639904e-007, 1.29629734e-006, -1, 1, 1.45400691e-007, -2.08638184e-007))
  650. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  651. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000061, 0.280000061, 0.280000031))
  652. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.209846497, -3.81469727e-006, 0.559957266, 1.49184416e-008, -1, -6.10877123e-007, 1, 1.48816071e-008, 2.96593194e-010, -2.95063474e-010, -6.10870757e-007, 1))
  653. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  654. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.840000033, 0.200000003))
  655. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00215530396, -0.0698623657, 0.000190734863, 1, -2.22826202e-011, 1.80189787e-011, -1.43245416e-011, 1, 2.69661223e-006, -1.68107646e-011, -2.69660586e-006, 1))
  656. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  657. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.200000003, 0.560000002))
  658. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0021572113, -0.559833527, -0.0698022842, 1, -5.50244295e-011, 1.91965506e-011, -4.70663508e-011, 1, 2.69661314e-006, -1.56331059e-011, -2.69659495e-006, 1))
  659. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  660. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.287, 0.427000016, 0.200000003))
  661. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.560840607, 0.27643466, 1, -2.22826202e-011, 1.80189787e-011, -1.43245416e-011, 1, 8.19589786e-007, -1.68107889e-011, -8.1958342e-007, 1))
  662. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  663. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.420000017, 0.280000031))
  664. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.55978775, -2.44724131, -0.000165939331, 1.45490276e-007, -1, -2.49798723e-005, -2.08999595e-007, 2.49798668e-005, -1, 1, 1.45458671e-007, -2.08994436e-007))
  665. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  666. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.280000001, 0.560000062))
  667. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.559822083, 0, -0.419999123, 5.95878191e-008, 1, 1.94764652e-007, -1, 5.9624881e-008, 3.44258311e-008, 3.44273339e-008, -1.94758286e-007, 1))
  668. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  669. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.200000003, 0.200000003))
  670. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0.279838562, 0.21000886, 1, 4.46839294e-008, 1.44186561e-006, 4.47196271e-008, -1, 7.78919912e-007, 1.44186413e-006, -7.78926278e-007, -1))
  671. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 0.699999988))
  672. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.560000002, 0.420000017))
  673. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559791565, -0.55984664, 3.81469727e-005, 1.4543707e-007, -1, -5.08004541e-006, -2.08696321e-007, 5.08003723e-006, -1, 1, 1.45401373e-007, -2.08694047e-007))
  674. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  675. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.200000003, 0.200000003))
  676. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.91278076e-005, 0.279800415, 1.04951167, -1, -2.53198436e-007, 1.49545034e-008, 2.53235044e-007, -1, -7.584179e-006, 1.49579638e-008, -7.58417036e-006, 1))
  677. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 0.699999988))
  678. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.560000062, 0.200000003))
  679. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559768677, -2.37841272, -0.000438690186, 1.45475724e-007, -1, -2.01288749e-005, -2.08974669e-007, 2.01288676e-005, -1, 1, 1.45443096e-007, -2.08970206e-007))
  680. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  681. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.280000001, 0.420000017))
  682. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.55979538, -0.979748011, 7.62939453e-006, 1.45442073e-007, -1, -6.30070645e-006, -2.08722611e-007, 6.30070008e-006, -1, 1, 1.45406489e-007, -2.08720166e-007))
  683. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  684. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.200000003, 0.560000002))
  685. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, -0.27980423, 0.699883938, 1, -2.04636308e-011, 1.10889423e-012, -1.63709046e-011, 1, 2.11572933e-006, 4.11753964e-013, -2.11572296e-006, 1))
  686. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  687. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.200000003, 0.560000062))
  688. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.24249268e-005, -0.699771881, 0.839804649, 1, -2.13731255e-011, -1.66693187e-011, -1.54614099e-011, 1, 4.23093024e-006, 1.81899929e-011, -4.23092433e-006, 1))
  689. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  690. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000031, 0.200000003, 0.200000003))
  691. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-005, -0.559803009, 1.0495255, 1, -1.56887836e-011, 3.45319641e-011, -2.09183781e-011, 1, 5.48155458e-006, -3.30136751e-011, -5.48154867e-006, 1))
  692. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 0.699999988))
  693. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  694. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000427246094, -2.58794498, 0.839736938, -1, -1.49499328e-008, -2.52553122e-007, 2.52551388e-007, 1.52605935e-005, -1, 1.49906327e-008, -1, -1.52605971e-005))
  695. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  696. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  697. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.83972168, -2.44782782, -0.000438690186, 1.45468562e-007, -1, -2.04852658e-005, -2.09350546e-007, 2.04852604e-005, -1, 1, 1.45436047e-007, -2.09346027e-007))
  698. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  699. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  700. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000421524048, 2.30780578, 0.83972168, 1, 5.67174197e-007, 2.54727388e-006, -2.54726456e-006, -1.37063362e-005, 1, 5.67245934e-007, -1, -1.37063407e-005))
  701. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  702. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  703. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00043296814, 2.30763364, -0.27973938, -1, 1.49386779e-008, 2.53097255e-007, 2.53098563e-007, -1.32949481e-005, 1, 1.49050265e-008, 1, 1.32949544e-005))
  704. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  705. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  706. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.279750824, 2.44781303, -0.000444412231, 1.45382273e-007, 1, 2.08481797e-005, -2.08853876e-007, -2.08481761e-005, 1, 1, -1.45423428e-007, 2.08852413e-007))
  707. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  708. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  709. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00043296814, -2.58781743, -0.279773712, 1, -5.67145435e-007, -2.54751899e-006, -2.54751376e-006, 1.19385704e-005, -1, 5.67138841e-007, 1, 1.19385777e-005))
  710. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 0.699999988, 0.699999988))
  711. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.231000006, 0.200000003, 0.280000031))
  712. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.560119629, -2.59035707, -0.000175476074, 3.96057294e-006, -1, -2.42740825e-005, -2.09122135e-007, 2.42740789e-005, -1, 1, 3.96054475e-006, -2.09025103e-007))
  713. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  714. Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Barrel",Vector3.new(0.200000003, 0.200000003, 0.280000031))
  715. Barrelweld=weld(m,FakeHandle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.562404633, -2.59142828, -0.000175476074, 3.96057203e-006, -1, -2.4095265e-005, -2.09117701e-007, 2.40952577e-005, -1, 1, 3.96054384e-006, -2.09021465e-007))
  716. mesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(0.945000052, 0.699999988, 1))
  717. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.200000003, 0.280000031))
  718. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559753418, -1.60731864, -0.000179290771, 1.45490958e-007, -1, -2.51584643e-005, -2.09002877e-007, 2.51584588e-005, -1, 1, 1.45459353e-007, -2.0899769e-007))
  719. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  720. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.200000003, 0.280000031))
  721. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559776306, -2.16727662, -0.000164031982, 1.45485501e-007, -1, -2.33735591e-005, -2.08965247e-007, 2.33735518e-005, -1, 1, 1.45453555e-007, -2.08960316e-007))
  722. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  723. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.420000046, 0.280000031))
  724. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559776306, -1.88730073, -0.000165939331, 1.45485956e-007, -1, -2.35518892e-005, -2.08967805e-007, 2.35518837e-005, -1, 1, 1.4545401e-007, -2.08962845e-007))
  725. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  726. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.280000061, 0.280000031))
  727. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559753418, -1.39711809, -0.000173568726, 1.45514491e-007, -1, -2.24795003e-005, -2.08946716e-007, 2.24794821e-005, -1, 1, 1.45416834e-007, -2.08939554e-007))
  728. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  729. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000017, 0.420000046, 0.200000003))
  730. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559764862, -1.88847375, -0.000436782837, 1.45466288e-007, -1, -1.8521725e-005, -2.08988865e-007, 1.85217195e-005, -1, 1, 1.45433319e-007, -2.08984645e-007))
  731. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  732. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.560000062, 0.200000003))
  733. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559757233, -1.39839482, -0.000442504883, 1.45464355e-007, -1, -1.69149826e-005, -2.08905689e-007, 1.69149753e-005, -1, 1, 1.45431045e-007, -2.08901696e-007))
  734. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.699999988))
  735. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.287, 0.420000017))
  736. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559772491, 0.00134277344, -0.0700860023, -7.44953468e-008, -1, -4.73725959e-006, 1, -7.45317266e-008, -7.42083941e-008, 7.42095523e-008, -4.73725368e-006, 1))
  737. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  738. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.420000046, 0.287, 0.280000031))
  739. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.559783936, 0.00134277344, -0.420075655, -7.44639692e-008, -1, -5.6308827e-006, 1, -7.45658326e-008, -7.42004715e-008, 7.42039248e-008, -5.63086405e-006, 1))
  740. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  741. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.420000017, 0.280000001, 0.560000062))
  742. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.5598526, 1.52587891e-005, 1.11974049, 5.9590775e-008, 1, 2.51883012e-006, -1, 5.96276095e-008, 3.44174609e-008, 3.441885e-008, -2.51882193e-006, 1))
  743. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  744. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"New Yeller","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  745. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00018119812, -0.844371796, 0.276464224, 1, -2.20552465e-011, 1.82033399e-011, -1.47792889e-011, 1, 1.78784603e-006, -1.66827021e-011, -1.78783966e-006, 1))
  746. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.735000134, 0.699999988, 0.699999988))
  747. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.280000001, 0.200000003, 0.280000091))
  748. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.769760132, 0.000406265259, -0.279969931, 5.95582605e-008, 1, 2.26564134e-006, -1, 5.96603513e-008, 3.44175426e-008, 3.44209745e-008, -2.26562315e-006, 1))
  749. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.699999988, 1))
  750. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.700000048, 0.200000003))
  751. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.839698792, -0.0692727566, -0.000392913818, 1.45439344e-007, -1, -9.2651635e-006, -2.0875224e-007, 9.26515713e-006, -1, 1, 1.45404442e-007, -2.0874937e-007))
  752. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1, 0.699999988))
  753. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.699999988, 0.200000003))
  754. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.839668274, -0.768940926, -0.000394821167, 1.45451168e-007, -1, -1.17661502e-005, -2.08743202e-007, 1.17661421e-005, -1, 1, 1.45416834e-007, -2.08739948e-007))
  755. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.699999988, 1, 0.699999988))
  756.  
  757. Handleweld.Part0 = LeftLeg
  758. Handleweld.C0 = angles(-2, 0, 0) * cf(-.5, 1.3, 1)
  759.  
  760. local PE1 = Create("ParticleEmitter"){
  761. Parent = Barrel,
  762. Color = ColorSequence.new(BrickColor.new("New Yeller").Color),
  763. Transparency = NumberSequence.new(0),
  764. Size = NumberSequence.new(.5),
  765. Texture = "rbxassetid://257430870",
  766. Lifetime = NumberRange.new(.1),
  767. Rate = 100,
  768. VelocitySpread = 180,
  769. Rotation = NumberRange.new(0),
  770. Speed = NumberRange.new(0),
  771. LightEmission = .6,
  772. LockedToPart = true,
  773. Enabled = false
  774. }
  775.  
  776. local PE2 = PE1:Clone()
  777. PE2.Size = NumberSequence.new(.7)
  778. PE2.LightEmission = 1
  779. PE2.Texture = "rbxassetid://87729590"
  780.  
  781. local Lite = Create("PointLight"){
  782. Parent = Barrel,
  783. Color = BrickColor.new("New Yeller").Color,
  784. Shadows = true,
  785. Range = 10,
  786. Brightness = 0.5,
  787. Enabled = false
  788. }
  789.  
  790. function Equip()
  791. attack = true
  792. equipped = true
  793. RSH.Parent = nil
  794. LSH.Parent = nil
  795.  
  796. RHP.Parent = nil
  797. LHP.Parent = nil
  798.  
  799. RW = Create("Weld"){
  800. Name = "Right Shoulder",
  801. Part0 = Torso ,
  802. C0 = cf(1.5, 0.5, 0),
  803. C1 = cf(0, 0.5, 0),
  804. Part1 = RightArm ,
  805. Parent = Torso ,
  806. }
  807.  
  808. LW = Create("Weld"){
  809. Name = "Left Shoulder",
  810. Part0 = Torso ,
  811. C0 = cf(-1.5, 0.5, 0),
  812. C1 = cf(0, 0.5, 0) ,
  813. Part1 = LeftArm ,
  814. Parent = Torso ,
  815. }
  816.  
  817. RH = Create("Weld"){
  818. Part0 = Torso,
  819. C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5)
  820. C1 = cf(-0.5, 0.5, 0) ,
  821. Part1 = Character["Right Leg"],
  822. Parent = Torso,
  823. }
  824.  
  825. LH = Create("Weld"){
  826. Part0 = Torso,
  827. C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5)
  828. C1 = cf(0.5, 0.5, 0) ,
  829. Part1 = Character["Left Leg"],
  830. Parent = Torso,
  831. }
  832.  
  833. for i = 0, 1, 0.1 do
  834. swait()
  835. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  836. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(30)), .3)
  837. RW.C0 = clerp(RW.C0, CFrame.new(0, 0.2, -.5) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  838. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.3)
  839. RH.C0 = clerp(RH.C0, cf(0.03, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(2)), .3)
  840. LH.C0 = clerp(LH.C0, cf(-0.03, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-2)), .3)
  841. end
  842. Handleweld.Part0 = RightArm
  843. Handleweld.C0 = euler(0, 0, 0) * cf(0, 0, 0)
  844. attack = false
  845. end
  846.  
  847. function Unequip()
  848. equipped = false
  849. attack = true
  850. for i = 0, 1, 0.1 do
  851. swait()
  852. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  853. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(30)), .3)
  854. RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.2, -.7) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
  855. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  856. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
  857. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  858. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) *euler(6*i,0,0), .5)
  859. end
  860. FakeHandleweld.C0 = angles(0, 0, 0) * cf(0, 0, 0)
  861. Handleweld.Part0 = LeftLeg
  862. Handleweld.C0 = angles(-2, 0, 0) * cf(-.5, 1.3, 1)
  863. RW.Parent = nil
  864. LW.Parent = nil
  865. RH.Parent = nil
  866. LH.Parent = nil
  867. RSH.Parent = Torso
  868. LSH.Parent = Torso
  869. RHP.Parent = Torso
  870. LHP.Parent = Torso
  871. Torso.Neck.C0 = necko
  872. RootJoint.C0 = RootCF
  873. RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
  874. RW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  875. LW.C0 = cf(-1.5, 0.5, 0) * euler(0, 0, 0)
  876. LW.C1 = cf(0, 0.5, 0) * euler(0, 0, 0)
  877. attack = false
  878. end
  879.  
  880. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  881. local prt = part(3, Character, "Neon", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  882. prt.Anchored = true
  883. prt.CFrame = cframe
  884. local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  885. game:GetService("Debris"):AddItem(prt, 5)
  886. Effects[#Effects + 1] = {
  887. prt,
  888. "Cylinder",
  889. delay,
  890. x3,
  891. y3,
  892. z3
  893. } --part, type, delay
  894. end
  895.  
  896. function MagnitudeDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  897. for _, c in pairs(workspace:children()) do
  898. local hum = c:findFirstChild("Humanoid")
  899. if hum ~= nil then
  900. local head = c:findFirstChild("Torso")
  901. if head ~= nil then
  902. local targ = head.Position - Part.Position
  903. local mag = targ.magnitude
  904. if mag <= magni and c.Name ~= Player.Name then
  905. Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, 0, "rbxassetid://199149186", 1)
  906. end
  907. end
  908. end
  909. end
  910. end
  911.  
  912. RailgunTarget = RootPart
  913. function Laser(asd)
  914. local MouseLook=cf((asd.Position+mouse.Hit.p)/2,mouse.Hit.p)
  915. local hit,pos = rayCast(asd.Position,MouseLook.lookVector,50,RailgunTarget.Parent)
  916. local mag=(asd.Position-pos).magnitude
  917. CylinderEffect(BrickColor.new("New Yeller"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,1.2,0,1.2,0.1)
  918. CylinderEffect(BrickColor.new("Really black"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,.5,1,0,.5,0.1)
  919. if hit~=nil then
  920. local ref=part(3,effectz,"SmoothPlastic",0,1,BrickColor.new("New Yeller"),"Reference",vt())
  921. ref.Anchored=true
  922. ref.CFrame=cf(pos)
  923. game:GetService("Debris"):AddItem(ref,1)
  924. Damagefunc(ref,hit,20,50,0,"Normal",RootPart,0)
  925. end
  926. end
  927.  
  928. RocketTarget = RootPart
  929. function Shoot(asd, spread1, spread2)
  930. local MainPos = asd.Position
  931. local MainPos2 = mouse.Hit.p
  932. local spread = vt((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100
  933. local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2 + spread)
  934. num = 30
  935. coroutine.resume(coroutine.create(function(Spreaded)
  936. repeat
  937. wait()
  938. local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RocketTarget.Parent)
  939. local TheHit = mouse.Hit.p
  940. local mag = (MainPos - pos).magnitude
  941. CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1)
  942. MainPos = MainPos + (MouseLook.lookVector * 10)
  943. num = num - 1
  944. if hit ~= nil then
  945. num = 0
  946. local ref = part(3, effectz, "Neon", 0, 1, BrickColor.new("New Yeller"), "Reference", vt())
  947. ref.Anchored = true
  948. ref.CFrame = cf(pos)
  949. MagnitudeDamage(ref, hit, 5, 5, 10, 1, "Normal")
  950. game:GetService("Debris"):AddItem(ref, 5)
  951. end
  952. until num <= 0
  953. end))
  954. end
  955.  
  956. function ChargeEffect(part, x1, y1, z1, x2, y2, z2, x3, y3, z3, color)
  957. local S = Create("Part"){
  958. Material = "SmoothPlastic",
  959. Name = "Effect",
  960. formFactor = 0,
  961. Size = vt(x1, y1, z1),
  962. BrickColor = color,
  963. Reflectance = 0,
  964. TopSurface = 0,
  965. BottomSurface = 0,
  966. Transparency = 0,
  967. Anchored = false,
  968. CanCollide = false,
  969. Material = "Neon",
  970. CFrame = part.CFrame * cf(x2, y2, z2) * euler(x3, y3, z3),
  971. Parent = m,
  972. }
  973. local msh1 = Create("SpecialMesh"){
  974. Scale = vt(0.5, 0.5, 0.5) ,
  975. MeshType = "Sphere",
  976. Parent = S,
  977. }
  978. coroutine.resume(coroutine.create(function(Part, CF)
  979. local f = Instance.new("BodyPosition")
  980. f.P = 800
  981. f.D = 100
  982. f.maxForce = vt(math.huge, math.huge, math.huge)
  983. f.position = part.Position
  984. f.Parent = Part
  985. for i = 0, 1, 0.1 do
  986. wait()
  987. Part.Transparency = Part.Transparency + 0.1
  988. end
  989. Part.Parent = nil
  990. end), S, S.CFrame)
  991. end
  992.  
  993. local lasrs = {}
  994. local lasrspd = 3
  995. local maxTravelDistance = 500
  996. local maxRebounds = 20
  997.  
  998. function RAY(pos, dir, collidedlist, startpos, endpos, distleft)
  999. collidedlist = collidedlist or {Character}
  1000. startpos = startpos or pos
  1001. distleft = distleft or dir.unit * dir.magnitude
  1002. endpos = endpos or pos + distleft
  1003. local ray = Ray.new(pos, distleft)
  1004. local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
  1005. if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then
  1006. if hitz.CanCollide == false then
  1007. table.insert(collidedlist, hitz)
  1008. local newpos = enz
  1009. local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
  1010. if newdistleft then
  1011. return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01))
  1012. end
  1013. end
  1014. end
  1015. return hitz, enz, ray
  1016. end
  1017.  
  1018. function FindSurface(part, position)
  1019. local obj = part.CFrame:pointToObjectSpace(position)
  1020. local siz = part.Size/2
  1021. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  1022. local vec = Vector3.FromNormalId(v)
  1023. local wvec = part.CFrame:vectorToWorldSpace(vec)
  1024. local vz = (obj)/(siz*vec)
  1025. if (math.abs(vz.X-1) < 0.001 or math.abs(vz.Y-1) < 0.001 or math.abs(vz.Z-1) < 0.001) then
  1026. return wvec,vec
  1027. end
  1028. end
  1029. if part.className == "WedgePart" then
  1030. local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p
  1031. local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p
  1032. local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos)
  1033. return wvec,vec
  1034. elseif part.className == "Part" and (part.Shape.Name == "Ball" or part.Shape.Name == "Cylinder") then
  1035. return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit)
  1036. end
  1037. end
  1038.  
  1039. function Reflect(direction, normal)
  1040. return direction - 2 * normal:Dot(direction) * normal
  1041. end
  1042.  
  1043. function ReflectShot(mouse)
  1044. local dir = (mouse.Hit.p - Torso.Position).unit
  1045. local tabl
  1046. local tablnum = 0
  1047. for i, v in pairs(lasrs) do
  1048. if not v[1] then
  1049. tabl = v
  1050. tablnum = i
  1051. break
  1052. end
  1053. end
  1054. if not tabl then
  1055. tablnum = #lasrs + 1
  1056. tabl = {false,nil,nil,0,0,1,{},{},{},{}}
  1057. for i = 1, 2 do
  1058. for j = 1, 6 do
  1059. local p = Instance.new("Part")
  1060. p.FormFactor = "Custom"
  1061. p.CanCollide = false
  1062. p.Anchored = true
  1063. p.Locked = true
  1064. p.BrickColor = BrickColor.new("New Yeller")
  1065. p.TopSurface = 10
  1066. p.BottomSurface = 10
  1067. p.RightSurface = 10
  1068. p.LeftSurface = 10
  1069. p.FrontSurface = 10
  1070. p.BackSurface = 10
  1071. p.Size = Vector3.new(1,1,1)
  1072. p.Material = "Neon"
  1073. p.Transparency = i == 1 and 0 or 0.6
  1074. p.Touched:connect(function(hit)
  1075. hit.Parent.Humanoid:TakeDamage(1)
  1076. end)
  1077. local mesh = Instance.new("CylinderMesh",p)
  1078. table.insert(tabl[6+i],p)
  1079. table.insert(tabl[8+i],mesh)
  1080. end
  1081. end
  1082. table.insert(lasrs,tabl)
  1083. end
  1084. -- isMoving,direction,lastPosition,rebounds,distance,recycleCount,middleLayer,outerLayer
  1085. tabl[4],tabl[5] = 0,0
  1086. tabl[3] = Barrel.Position
  1087. tabl[2] = dir
  1088. tabl[1] = true
  1089.  
  1090. end
  1091.  
  1092. local MultiShoot = false
  1093. local gun = false
  1094. local shoot = false
  1095. local Obliterate = false
  1096. local LaserMode = false
  1097. function Aim()
  1098. attack = true
  1099. gun = true
  1100. for i = 0, 1, 0.2 do
  1101. swait()
  1102. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  1103. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
  1104. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  1105. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
  1106. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  1107. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  1108. end
  1109. RootJoint.C0 = RootCF * cf(0, 0, 0) * euler(0, 0, 1.57)
  1110. RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57)
  1111. local gairo = Create("BodyGyro"){
  1112. Parent = RootPart,
  1113. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  1114. P = 20e+003 ,
  1115. cframe = RootPart.CFrame,
  1116. }
  1117. local offset = nil
  1118. while gun == true do
  1119. swait()
  1120. local gunpos = vt(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  1121. offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  1122. local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
  1123. offset = offset / mag
  1124. gairo.cframe = cf(Head.Position, gunpos)
  1125. Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), .3)
  1126. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), .5)
  1127. end
  1128. if shoot == true then
  1129. gairo.Parent = nil
  1130. PE1.Enabled,PE2.Enabled = true,true
  1131. Lite.Enabled = true
  1132. for i = 0, 1, 0.1 do
  1133. swait()
  1134. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1135. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  1136. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  1137. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  1138. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1139. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1140. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1141. end
  1142. Lite.Enabled = false
  1143. PE1.Enabled,PE2.Enabled = false,false
  1144. elseif MultiShoot == true then
  1145. gairo.Parent = nil
  1146. for i = 1,5 do
  1147. so("rbxassetid://199144089", Barrel, 1, 1.1)
  1148. Shoot(Barrel, .2, 1)
  1149. PE1.Enabled,PE2.Enabled = true,true
  1150. Lite.Enabled = true
  1151. for i = 0,1,1 do
  1152. swait()
  1153. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  1154. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(2), math.rad(-90)), .5)
  1155. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.5)
  1156. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
  1157. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  1158. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  1159. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1160. end
  1161. PE1.Enabled,PE2.Enabled = false,false
  1162. Lite.Enabled = false
  1163. for i = 0,1,1 do
  1164. swait()
  1165. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  1166. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
  1167. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  1168. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
  1169. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  1170. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  1171. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1172. end
  1173. end
  1174. elseif LaserMode == true then
  1175. gairo.Parent = nil
  1176. so("rbxassetid://161006157", Barrel, 1, .9)
  1177. so("rbxassetid://161006131", Barrel, 1, 1.2)
  1178. for i = 1, 30 do
  1179. swait()
  1180. ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller"))
  1181. end
  1182. so("rbxassetid://199144089", Barrel, 1, .8)
  1183. so("rbxassetid://199144089", Barrel, 1, .5)
  1184. Laser(Barrel)
  1185. PE1.Enabled,PE2.Enabled = true,true
  1186. Lite.Enabled = true
  1187. for i = 0, 1, 0.1 do
  1188. swait()
  1189. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1190. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  1191. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  1192. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  1193. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1194. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1195. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1196. end
  1197. PE1.Enabled,PE2.Enabled = false,false
  1198. Lite.Enabled = false
  1199. elseif Obliterate == true then
  1200. gairo.Parent = nil
  1201. so("rbxassetid://161006157", Barrel, 1, .7)
  1202. so("rbxassetid://161006131", Barrel, 1, 1)
  1203. for i = 1, 60 do
  1204. swait()
  1205. ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller"))
  1206. end
  1207. for i = 1, 5 do
  1208. so("rbxassetid://199144089", Barrel, 1, .8)
  1209. for i = 1, 5 do
  1210. Shoot(Barrel, 1, 3)
  1211. end
  1212. PE1.Enabled,PE2.Enabled = true,true
  1213. Lite.Enabled = true
  1214. for i = 0, 1, 0.2 do
  1215. swait()
  1216. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  1217. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .5)
  1218. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.5)
  1219. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.5)
  1220. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  1221. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  1222. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(30), math.rad(0), math.rad(0)), .3)
  1223. end
  1224. PE1.Enabled,PE2.Enabled = false,false
  1225. Lite.Enabled = false
  1226. for i = 0, 1, 0.2 do
  1227. swait()
  1228. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1229. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .3)
  1230. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3)
  1231. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1232. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1233. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1234. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1235. end
  1236. end
  1237.  
  1238. for i = 0, 1, 0.1 do
  1239. swait()
  1240. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1241. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(5), math.rad(-5), math.rad(-55)), .3)
  1242. RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.5) * angles(math.rad(0), math.rad(130), math.rad(80)), 0.3)
  1243. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1244. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1245. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1246. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1247. end
  1248. so("rbxassetid://161006157", Barrel, 1, .9)
  1249. so("rbxassetid://161006131", Barrel, 1, 1.2)
  1250. for i = 1, 30 do
  1251. swait()
  1252. ChargeEffect(Barrel, 2, 2, 2, math.random(-10, 10), math.random(-10, 10), math.random(-10, 10), 0, 0, 0, BrickColor.new("New Yeller"))
  1253. end
  1254. for i = 0, 1, 0.05 do
  1255. swait()
  1256. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1257. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(1), math.rad(-85)), .3)
  1258. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1259. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1260. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1261. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1262. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1263. end
  1264. so("rbxassetid://199144089", Barrel, 1, .8)
  1265. so("rbxassetid://199144089", Barrel, 1, .9)
  1266. so("rbxassetid://199144089", Barrel, 1, .6)
  1267. for i = 1, 20 do
  1268. Shoot(Barrel, 1.5, 5)
  1269. end
  1270. PE1.Enabled,PE2.Enabled = true,true
  1271. Lite.Enabled = true
  1272. for i = 0, 1, 0.05 do
  1273. swait()
  1274. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  1275. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(10), math.rad(-90)), .5)
  1276. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.8, 0) * angles(math.rad(0), math.rad(50), math.rad(120)), 0.5)
  1277. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
  1278. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  1279. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  1280. end
  1281. PE1.Enabled,PE2.Enabled = false,false
  1282. Lite.Enabled = false
  1283. end
  1284. gairo.Parent = nil
  1285. shoot = false
  1286. attack = false
  1287. end
  1288.  
  1289. mouse.Button1Down:connect(function()
  1290. if gun == true then
  1291. shoot = true
  1292. so("rbxassetid://199144089", Barrel, 1, 1)
  1293. Shoot(Barrel, 0, 0)
  1294. gun = false
  1295. end
  1296. end)
  1297. Bin=script.Parent
  1298. function s(mouse)
  1299. Equip()
  1300. end
  1301. function ds(mouse)
  1302. Unequip()
  1303. end
  1304.  
  1305. Bin.Selected:connect(s)
  1306. Bin.Deselected:connect(ds)
  1307.  
  1308. mouse.KeyDown:connect(function(k)
  1309. k = k:lower()
  1310. --[[ if attack == false and equipped == false and k == 'e' then
  1311. Equip()
  1312. elseif attack == false and equipped == true and k == 'e' then
  1313. Unequip()]]
  1314. if attack == false and equipped == true and k == 'f' then
  1315. Aim()
  1316. elseif equipped == true and k == 'f' then
  1317. shoot = false
  1318. elseif equipped == true and gun == true and k == 'q' then
  1319. if mana >= 20 then mana=mana-20 else return end
  1320. shoot = true
  1321. so("rbxassetid://199144089", Barrel, 1, .8)
  1322. for i = 1, 5 do
  1323. Shoot(Barrel, 1, 3)
  1324. gun = false
  1325. end
  1326. elseif equipped == true and gun == true and k == 'e' then
  1327. if mana >= 30 then mana=mana-30 else return end
  1328. MultiShoot = true
  1329. gun = false
  1330. elseif equipped == true and gun == true and k == 'r' then
  1331. if mana >= 50 then mana=mana-50 else return end
  1332. MultiShoot = false
  1333. LaserMode = true
  1334. gun = false
  1335. elseif equipped == true and attack == true and gun == true and k == 't' then
  1336. if mana >= 70 then mana=mana-70 else return end
  1337. MultiShoot = false
  1338. Obliterate = true
  1339. LaserMode = false
  1340. gun = false
  1341. elseif equipped == true and attack == true and gun == true and k == 'g' then
  1342. if mana >= 30 then mana=mana-30 else return end
  1343. shoot = true
  1344. ReflectShot(mouse)
  1345. so("rbxassetid://199144089", Barrel, 1, .8)
  1346. so("rbxassetid://199144089", Barrel, 1, .5)
  1347. gun = false
  1348. end
  1349. end)
  1350.  
  1351. game:GetService("RunService").Stepped:connect(function()
  1352. for _, lasr in pairs(lasrs) do
  1353. for i, v in pairs(lasr[9]) do
  1354. if lasr[7][i].Parent then
  1355. v.Scale = v.Scale + Vector3.new(-0.1,0,-0.1)
  1356. lasr[10][i].Scale = lasr[10][i].Scale + Vector3.new(-0.1,0,-0.1)
  1357. if v.Scale.x < 0.1 then
  1358. lasr[7][i].Parent = nil
  1359. lasr[8][i].Parent = nil
  1360. end
  1361. end
  1362. end
  1363.  
  1364. if lasr[1] then
  1365. local hitz, enz = RAY(lasr[3],lasr[2]*lasrspd)
  1366. lasr[5] = lasr[5] + (lasr[3] - enz).magnitude
  1367.  
  1368. lasr[7][lasr[6]].Parent = m
  1369. lasr[7][lasr[6]].CFrame = CFrame.new((lasr[3] + enz)/2,enz) * CFrame.Angles(math.pi/2,0,0)
  1370. lasr[9][lasr[6]].Scale = Vector3.new(0.7,(lasr[3] - enz).magnitude*5,0.7)
  1371.  
  1372. lasr[8][lasr[6]].Parent = m
  1373. lasr[8][lasr[6]].CFrame = lasr[7][lasr[6]].CFrame
  1374. lasr[10][lasr[6]].Scale = Vector3.new(1.3,(lasr[3] - enz).magnitude*5 + 0.02,1.3)
  1375.  
  1376. lasr[3] = enz
  1377. lasr[6] = lasr[6]%#lasr[7] + 1
  1378.  
  1379. if hitz then
  1380. lasr[4] = lasr[4] + 1
  1381. if lasr[4] == maxRebounds then
  1382. lasr[1] = false
  1383. else
  1384. local norm = FindSurface(hitz,enz)
  1385. lasr[2] = Reflect(lasr[2],norm)
  1386. end
  1387. end
  1388. if lasr[5] > maxTravelDistance then
  1389. lasr[1] = false
  1390. end
  1391. end
  1392. end
  1393. end)
  1394.  
  1395. local sine = 0
  1396. local change = 1
  1397. local val = 0
  1398. local idle = 0
  1399. local donum = 0
  1400.  
  1401. while true do
  1402. swait()
  1403. sine = sine + change
  1404. -- mouse.Icon = "http://www.roblox.com/asset/?id=296383647"
  1405. local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1406. local velderp = RootPart.Velocity.y
  1407. hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1408. if equipped == true then
  1409. if attack == false then
  1410. idle = idle + 1
  1411. else
  1412. idle = 0
  1413. end
  1414. if idle >= 500 then
  1415. if attack == false then
  1416. end
  1417. end
  1418. if donum >= .5 then
  1419. handidle = true
  1420. elseif donum <= 0 then
  1421. handidle = false
  1422. end
  1423. if handidle == false then
  1424. donum = donum + 0.003
  1425. else
  1426. donum = donum - 0.003
  1427. end
  1428. if RootPart.Velocity.y > 1 and hitfloor == nil then
  1429. Anim = "Jump"
  1430. if attack == false then
  1431. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1432. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1433. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  1434. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1435. RH.C0 = clerp(RH.C0, cf(.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(5)), .3)
  1436. LH.C0 = clerp(LH.C0, cf(-.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(-5)), .3)
  1437. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1438. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1439. end
  1440. elseif RootPart.Velocity.y < -1 and hitfloor == nil then
  1441. Anim = "Fall"
  1442. if attack == false then
  1443. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1444. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1445. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(40)), 0.3)
  1446. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1447. RH.C0 = clerp(RH.C0, cf(0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(5)), .3)
  1448. LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(-5)), .3)
  1449. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1450. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1451. end
  1452. elseif torvel < 1 and hitfloor ~= nil then
  1453. Anim = "Idle"
  1454. if attack == false then
  1455. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(5) + donum / 3, math.rad(0), math.rad(30)), .3)
  1456. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(.5) - donum / 3, math.rad(.5) + donum / 3, math.rad(-30)), .3)
  1457. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(5) + donum / 2), 0.3)
  1458. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-5) + donum / 2, math.rad(0), math.rad(-10)), 0.3)
  1459. RH.C0 = clerp(RH.C0, cf(.2, -1.5, -.5) * angles(math.rad(5) + donum / 2, math.rad(-30), math.rad(5) + donum / 5), .3)
  1460. LH.C0 = clerp(LH.C0, cf(0, -1.5 - donum / 3.5, 0) * angles(math.rad(5) + donum / 3, math.rad(-10), math.rad(0)), .3)
  1461. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1462. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1463. end
  1464. elseif torvel > 2 and hitfloor ~= nil then
  1465. Anim = "Walk"
  1466. if attack == false then
  1467. change = 3
  1468. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20) + donum / 2, math.rad(0), math.rad(0)), .3)
  1469. Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-10) - donum / 2, math.rad(0), math.rad(0)), .3)
  1470. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50) + donum / 2, math.rad(0), math.rad(5) + donum / 2), 0.3)
  1471. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20) + donum / 2, math.rad(0), math.rad(-5) - donum / 2), 0.3)
  1472. RH.C0 = clerp(RH.C0, cf(0, -1.5, -.7 * math.cos(sine / 10)) * angles(math.rad(50 * math.cos(sine / 10)), math.rad(0), math.rad(3)), .3)
  1473. LH.C0 = clerp(LH.C0, cf(0, -1.5, .7 * math.cos(sine / 10)) * angles(math.rad(-50 * math.cos(sine / -10)), math.rad(0), math.rad(-3)), .3)
  1474. FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1475. RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1476. end
  1477. end
  1478. end
  1479. if #Effects > 0 then
  1480. for e = 1, #Effects do
  1481. if Effects[e] ~= nil then
  1482. local Thing = Effects[e]
  1483. if Thing ~= nil then
  1484. local Part = Thing[1]
  1485. local Mode = Thing[2]
  1486. local Delay = Thing[3]
  1487. local IncX = Thing[4]
  1488. local IncY = Thing[5]
  1489. local IncZ = Thing[6]
  1490. if Thing[1].Transparency <= 1 then
  1491. if Thing[2] == "Block1" then
  1492. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1493. Mesh = Thing[1].Mesh
  1494. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1495. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1496. elseif Thing[2] == "Cylinder" then
  1497. Mesh = Thing[1].Mesh
  1498. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1499. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1500. elseif Thing[2] == "Blood" then
  1501. Mesh = Thing[7]
  1502. Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1503. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1504. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1505. elseif Thing[2] == "Elec" then
  1506. Mesh = Thing[1].Mesh
  1507. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1508. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1509. elseif Thing[2] == "Disappear" then
  1510. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1511. end
  1512. else
  1513. Part.Parent = nil
  1514. table.remove(Effects, e)
  1515. end
  1516. end
  1517. end
  1518. end
  1519. end
  1520. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement