ericdesouza

New script

Jan 1st, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.89 KB | None | 0 0
  1. p = game.Players.LocalPlayer
  2. char = p.Character
  3. local char = p.Character
  4. torso = char.Torso
  5. neck = char.Torso.Neck
  6. hum = char.Humanoid
  7. Player = game:GetService("Players").LocalPlayer
  8. Character = Player.Character
  9. tors = Character.Torso
  10. root = Character.HumanoidRootPart
  11. lleg = Character["Left Leg"]
  12. hed = Character.Head
  13. rleg = Character["Right Leg"]
  14. rarm = Character["Right Arm"]
  15. larm = Character["Left Arm"]
  16.  
  17. ypcall(function()
  18. for i,v in pairs(Character:children()) do
  19. if v:IsA("Hat") then
  20. v:Destroy()
  21. end
  22. end
  23. for i,v in pairs(Character:children()) do
  24. if v:IsA("Accessory") then
  25. v:Destroy()
  26. end
  27. end
  28. for i,v in pairs(Character:children()) do
  29. if v:IsA("Hair") then
  30. v:Destroy()
  31. end
  32. end
  33. end)
  34.  
  35. CV="Hot pink"
  36.  
  37. local txt = Instance.new("BillboardGui", char)
  38. txt.Adornee = char .Head
  39. txt.Name = "_status"
  40. txt.Size = UDim2.new(2, 0, 1.2, 0)
  41. txt.StudsOffset = Vector3.new(-9, 8, 0)
  42. local text = Instance.new("TextLabel", txt)
  43. text.Size = UDim2.new(10, 0, 7, 0)
  44. text.FontSize = "Size24"
  45. text.TextScaled = true
  46. text.TextTransparency = 0
  47. text.BackgroundTransparency = 1
  48. text.TextTransparency = 0
  49. text.TextStrokeTransparency = 0
  50. text.Font = "Highway"
  51. text.TextStrokeColor3 = BrickColor.new("").Color
  52.  
  53. v=Instance.new("Part")
  54. v.Name = "ColorBrick"
  55. v.Parent=p.Character
  56. v.FormFactor="Symmetric"
  57. v.Anchored=true
  58. v.CanCollide=false
  59. v.BottomSurface="Smooth"
  60. v.TopSurface="Smooth"
  61. v.Size=Vector3.new(10,5,3)
  62. v.Transparency=1
  63. v.CFrame=char.Torso.CFrame
  64. v.BrickColor=BrickColor.new(CV)
  65. v.Transparency=1
  66. text.TextColor3 = BrickColor.new("Yellow").Color
  67. v.Shape="Block"
  68. text.Text = ", "
  69.  
  70. hed.face.Texture = "http://www.roblox.com/asset/?id=0"
  71. hed.Transparency = 0
  72. rleg.Transparency = 0
  73. rarm.Transparency = 0
  74. larm.Transparency = 0
  75. lleg.Transparency = 0
  76. tors.Transparency = 0
  77.  
  78. Player = game:GetService("Players").LocalPlayer
  79. Character = Player.Character
  80. rarm = Character["Right Arm"]
  81. larm = Character["Left Arm"]
  82. vt = Vector3.new
  83. bc = BrickColor.new
  84. wit = bc("Yellow").Color
  85.  
  86. local prth = Instance.new("Part",Character)
  87. prth.Size = vt(1.25,1.25,1.25)
  88. prth.CanCollide = false
  89. prth.Material = "Neon"
  90. prth.Transparency = 0.5
  91. prth.BrickColor = bc("")
  92. local wldh = Instance.new("Weld",Character)
  93. wldh.Part0 = hed
  94. wldh.Part1 = prth
  95.  
  96. local prtrm = Instance.new("Part",Character)
  97. prtrm.Size = vt(2.1,2.1,1.1)
  98. prtrm.CanCollide = false
  99. prtrm.Transparency = 0.5
  100. prtrm.Material = "Neon"
  101. prtrm.BrickColor = bc("")
  102. local wldm = Instance.new("Weld",Character)
  103. wldm.Part0 = root
  104. wldm.Part1 = prtrm
  105.  
  106. local prtr = Instance.new("Part",Character)
  107. prtr.Size = vt(1.1,2.1,1.1)
  108. prtr.CanCollide = false
  109. prtr.Transparency = 0.5
  110. prtr.Material = "Neon"
  111. prtr.BrickColor = bc("")
  112. local prtrl = Instance.new("Part",Character)
  113. prtrl.Size = vt(1.1,2.1,1.1)
  114. prtrl.CanCollide = false
  115. prtrl.Transparency = 0.5
  116. prtrl.Material = "Neon"
  117. prtrl.BrickColor = bc("")
  118. local eff = Instance.new("ParticleEmitter",prtr)
  119. eff.LightEmission = 1
  120. eff.Texture = "rbxassetid://284205403"
  121. eff.Color = ColorSequence.new(wit)
  122. eff.Size = NumberSequence.new(0.5,1)
  123. eff.Acceleration = vt(0,25,0)
  124. eff.Speed = NumberRange.new(-5)
  125. eff.LockedToPart = false
  126. eff.Transparency = NumberSequence.new(0.95)
  127. eff.Lifetime = NumberRange.new(0.5)
  128. eff.Rate = 100000
  129. eff.VelocitySpread = 25
  130. local wld = Instance.new("Weld",Character)
  131. wld.Part0 = rarm
  132. wld.Part1 = prtr
  133. local wldl = Instance.new("Weld",Character)
  134. wldl.Part0 = rleg
  135. wldl.Part1 = prtrl
  136.  
  137. local prtr2 = Instance.new("Part",Character)
  138. prtr2.Size = vt(1.1,2.1,1.1)
  139. prtr2.CanCollide = false
  140. prtr2.Transparency = 0.5
  141. prtr2.Material = "Neon"
  142. prtr2.BrickColor = bc("")
  143. local prtrl2 = Instance.new("Part",Character)
  144. prtrl2.Size = vt(1.1,2.1,1.1)
  145. prtrl2.CanCollide = false
  146. prtrl2.Transparency = 0.5
  147. prtrl2.Material = "Neon"
  148. prtrl2.BrickColor = bc("")
  149. local eff2 = Instance.new("ParticleEmitter",prtr2)
  150. eff2.LightEmission = 1
  151. eff2.Texture = "rbxassetid://284205403"
  152. eff2.Color = ColorSequence.new(wit)
  153. eff2.Size = NumberSequence.new(0.5,1)
  154. eff2.Acceleration = vt(0,25,0)
  155. eff2.Speed = NumberRange.new(-5)
  156. eff2.LockedToPart = false
  157. eff2.Transparency = NumberSequence.new(0.95)
  158. eff2.Lifetime = NumberRange.new(0.5)
  159. eff2.Rate = 100000
  160. eff2.VelocitySpread = 25
  161. local wld2 = Instance.new("Weld",Character)
  162. wld2.Part0 = larm
  163. wld2.Part1 = prtr2
  164. local wldl2 = Instance.new("Weld",Character)
  165. wldl2.Part0 = lleg
  166. wldl2.Part1 = prtrl2
  167.  
  168. local mouse = game.Players.LocalPlayer:GetMouse()
  169. tors = game.Players.LocalPlayer.Character.Torso
  170. vt = Vector3.new
  171. bc = BrickColor.new
  172.  
  173. local Effect = Instance.new("Part",game.Lighting)
  174. Effect.BrickColor = bc("Yellow")
  175. Effect.Transparency = 1
  176. Effect.Anchored = true
  177. Effect.CanCollide = false
  178. Effect.Material = "Neon"
  179. Effect.Shape = "Ball"
  180. Effect.Size = vt(5,5,5)
  181. local fire1 = Instance.new("Fire",Effect)
  182. fire1.Name = "Fire"
  183. fire1.Heat = 1
  184. fire1.Size = 30
  185. fire1.SecondaryColor = bc("white").Color
  186. fire1.Color = bc("Yellow").Color
  187. local fire2 = Instance.new("Fire",Effect)
  188. fire2.Name = "Fire2"
  189. fire2.Heat = 1
  190. fire2.Size = 25
  191. fire2.SecondaryColor = bc("yellow").Color
  192. fire2.Color = bc("white").Color
  193.  
  194. Character = game.Players.LocalPlayer.Character
  195. Head = Character.Head
  196.  
  197. CV="Yellow"
  198. p = game.Players.LocalPlayer
  199. char = p.Character
  200. local txt = Instance.new("BillboardGui", char)
  201. txt.Adornee = char .Head
  202. txt.Name = "_status"
  203. txt.Size = UDim2.new(2, 0, 1.2, 0)
  204. txt.StudsOffset = Vector3.new(-9, 8, 0)
  205. local text = Instance.new("TextLabel", txt)
  206. text.Size = UDim2.new(10, 0, 7, 0)
  207. text.FontSize = "Size24"
  208. text.TextScaled = true
  209. text.TextTransparency = 0
  210. text.BackgroundTransparency = 1
  211. text.TextTransparency = 0
  212. text.TextStrokeTransparency = 0
  213. text.Font = "Fantasy"
  214. text.TextStrokeColor3 = Color3.new(207,181,.59)
  215.  
  216. v=Instance.new("Part")
  217. v.Name = "ColorBrick"
  218. v.Parent=p.Character
  219. v.FormFactor="Symmetric"
  220. v.Anchored=true
  221. v.CanCollide=false
  222. v.BottomSurface="Smooth"
  223. v.TopSurface="Smooth"
  224. v.Size=Vector3.new(10,5,3)
  225. v.Transparency=1
  226. v.CFrame=char.Torso.CFrame
  227. v.BrickColor=BrickColor.new(CV)
  228. v.Transparency=1
  229. text.TextColor3 = Color3.new(207,181,.59)
  230. v.Shape="Block"
  231. text.Text = "Noob Holy Gunner"
  232.  
  233. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  234. wait(1 / 60)
  235. Effects = { }
  236. local Player = game.Players.localPlayer
  237. local Character = Player.Character
  238. local Humanoid = Character.Humanoid
  239. local mouse = Player:GetMouse()
  240. local m = Instance.new('Model', Character)
  241. m.Name = "WeaponModel"
  242. local LeftArm = Character["Left Arm"]
  243. local RightArm = Character["Right Arm"]
  244. local LeftLeg = Character["Left Leg"]
  245. local RightLeg = Character["Right Leg"]
  246. local Head = Character.Head
  247. local Torso = Character.Torso
  248. local cam = game.Workspace.CurrentCamera
  249. local RootPart = Character.HumanoidRootPart
  250. local RootJoint = RootPart.RootJoint
  251. local equipped = false
  252. local attack = false
  253. local Anim = 'Idle'
  254. local idle = 0
  255. local attacktype = 1
  256. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  257. local velocity = RootPart.Velocity.y
  258. local sine = 0
  259. local change = 1
  260. local grabbed = false
  261. local cn = CFrame.new
  262. local mr = math.rad
  263. local angles = CFrame.Angles
  264. local ud = UDim2.new
  265. local c3 = Color3.new
  266. Instance.new("ForceField", game.Players.LocalPlayer.Character)
  267.  
  268.  
  269. local Orin = "rbxassetid://109676490"
  270. Head.face.Texture = Orin
  271. spawn(function()
  272. while wait() do
  273. Head.BrickColor = BrickColor.new("Bright yellow")
  274. RightArm.BrickColor = BrickColor.new("Bright yellow")
  275. LeftArm.BrickColor = BrickColor.new("Bright yellow")
  276. Torso.BrickColor = BrickColor.new("Bright blue")
  277. RightLeg.BrickColor = BrickColor.new("Br. yellowish green")
  278. LeftLeg.BrickColor = BrickColor.new("Br. yellowish green")
  279. end
  280. end)
  281.  
  282. Humanoid.Animator.Parent = nil
  283. Character.Animate.Parent = nil
  284.  
  285. local newMotor = function(part0, part1, c0, c1)
  286. local w = Instance.new('Motor', part0)
  287. w.Part0 = part0
  288. w.Part1 = part1
  289. w.C0 = c0
  290. w.C1 = c1
  291. return w
  292. end
  293.  
  294. function clerp(a, b, t)
  295. return a:lerp(b, t)
  296. end
  297.  
  298. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  299. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  300.  
  301. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  302. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  303. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  304. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  305. RootJoint.C1 = CFrame.new(0, 0, 0)
  306. RootJoint.C0 = CFrame.new(0, 0, 0)
  307. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  308. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  309.  
  310. local rarmc1 = RW.C1
  311. local larmc1 = LW.C1
  312. local rlegc1 = RH.C1
  313. local llegc1 = LH.C1
  314.  
  315. local resetc1 = false
  316.  
  317. function PlayAnimationFromTable(table, speed, bool)
  318. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  319. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  320. RW.C0 = clerp(RW.C0, table[3], speed)
  321. LW.C0 = clerp(LW.C0, table[4], speed)
  322. RH.C0 = clerp(RH.C0, table[5], speed)
  323. LH.C0 = clerp(LH.C0, table[6], speed)
  324. if bool == true then
  325. if resetc1 == false then
  326. resetc1 = true
  327. RootJoint.C1 = RootJoint.C1
  328. Torso.Neck.C1 = Torso.Neck.C1
  329. RW.C1 = rarmc1
  330. LW.C1 = larmc1
  331. RH.C1 = rlegc1
  332. LH.C1 = llegc1
  333. end
  334. end
  335. end
  336.  
  337. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  338.  
  339. ArtificialHB = Instance.new("BindableEvent", script)
  340. ArtificialHB.Name = "Heartbeat"
  341.  
  342. script:WaitForChild("Heartbeat")
  343.  
  344. frame = 1 / 30
  345. tf = 0
  346. allowframeloss = false
  347. tossremainder = false
  348. lastframe = tick()
  349. script.Heartbeat:Fire()
  350.  
  351. game:GetService("RunService").Heartbeat:connect(function(s, p)
  352. tf = tf + s
  353. if tf >= frame then
  354. if allowframeloss then
  355. script.Heartbeat:Fire()
  356. lastframe = tick()
  357. else
  358. for i = 1, math.floor(tf / frame) do
  359. script.Heartbeat:Fire()
  360. end
  361. lastframe = tick()
  362. end
  363. if tossremainder then
  364. tf = 0
  365. else
  366. tf = tf - frame * math.floor(tf / frame)
  367. end
  368. end
  369. end)
  370.  
  371. function swait(num)
  372. if num == 0 or num == nil then
  373. ArtificialHB.Event:wait()
  374. else
  375. for i = 0, num do
  376. ArtificialHB.Event:wait()
  377. end
  378. end
  379. end
  380.  
  381. local RbxUtility = LoadLibrary("RbxUtility")
  382. local Create = RbxUtility.Create
  383.  
  384. function RemoveOutlines(part)
  385. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  386. end
  387.  
  388. CFuncs = {
  389. ["Part"] = {
  390. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  391. local Part = Create("Part"){
  392. Parent = Parent,
  393. Reflectance = Reflectance,
  394. Transparency = Transparency,
  395. CanCollide = false,
  396. Locked = true,
  397. BrickColor = BrickColor.new(tostring(BColor)),
  398. Name = Name,
  399. Size = Size,
  400. Material = Material,
  401. }
  402. RemoveOutlines(Part)
  403. return Part
  404. end;
  405. };
  406.  
  407. ["Mesh"] = {
  408. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  409. local Msh = Create(Mesh){
  410. Parent = Part,
  411. Offset = OffSet,
  412. Scale = Scale,
  413. }
  414. if Mesh == "SpecialMesh" then
  415. Msh.MeshType = MeshType
  416. Msh.MeshId = MeshId
  417. end
  418. return Msh
  419. end;
  420. };
  421.  
  422. ["Mesh"] = {
  423. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  424. local Msh = Create(Mesh){
  425. Parent = Part,
  426. Offset = OffSet,
  427. Scale = Scale,
  428. }
  429. if Mesh == "SpecialMesh" then
  430. Msh.MeshType = MeshType
  431. Msh.MeshId = MeshId
  432. end
  433. return Msh
  434. end;
  435. };
  436.  
  437. ["Weld"] = {
  438. Create = function(Parent, Part0, Part1, C0, C1)
  439. local Weld = Create("Weld"){
  440. Parent = Parent,
  441. Part0 = Part0,
  442. Part1 = Part1,
  443. C0 = C0,
  444. C1 = C1,
  445. }
  446. return Weld
  447. end;
  448. };
  449.  
  450. ["Sound"] = {
  451. Create = function(id, par, vol, pit)
  452. coroutine.resume(coroutine.create(function()
  453. local S = Create("Sound"){
  454. Volume = vol,
  455. Pitch = pit or 1,
  456. SoundId = id,
  457. Parent = par or workspace,
  458. }
  459. Instance.new("DistortionSoundEffect", S).Level = 1
  460. wait()
  461. S:play()
  462. game:GetService("Debris"):AddItem(S, 10)
  463. end))
  464. end;
  465. };
  466.  
  467. ["ParticleEmitter"] = {
  468. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  469. local fp = Create("ParticleEmitter"){
  470. Parent = Parent,
  471. Color = ColorSequence.new(Color1, Color2),
  472. LightEmission = LightEmission,
  473. Size = Size,
  474. Texture = Texture,
  475. Transparency = Transparency,
  476. ZOffset = ZOffset,
  477. Acceleration = Accel,
  478. Drag = Drag,
  479. LockedToPart = LockedToPart,
  480. VelocityInheritance = VelocityInheritance,
  481. EmissionDirection = EmissionDirection,
  482. Enabled = Enabled,
  483. Lifetime = LifeTime,
  484. Rate = Rate,
  485. Rotation = Rotation,
  486. RotSpeed = RotSpeed,
  487. Speed = Speed,
  488. VelocitySpread = VelocitySpread,
  489. }
  490. return fp
  491. end;
  492. };
  493. }
  494.  
  495. function rayCast(Position, Direction, Range, Ignore)
  496. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  497. end
  498.  
  499. local function GetNearest(obj, distance)
  500. local last, lastx = distance + 1
  501. for i, v in pairs(workspace:GetChildren()) do
  502. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  503. local t = v.Torso
  504. local dist = (t.Position - obj.Position).magnitude
  505. if dist <= distance then
  506. if dist < last then
  507. last = dist
  508. lastx = v
  509. end
  510. end
  511. end
  512. end
  513. return lastx
  514. end
  515.  
  516. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  517.  
  518. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  519. for i, v in pairs(hit:GetChildren()) do
  520. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  521. local find = v:FindFirstChild("DebounceHit")
  522. if not find then
  523. if v.Parent:findFirstChild("Head") then
  524. local BillG = Create("BillboardGui"){
  525. Parent = v.Parent.Head,
  526. Size = UDim2.new(1, 0, 1, 0),
  527. Adornee = v.Parent.Head,
  528. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  529. }
  530. local TL = Create("TextLabel"){
  531. Parent = BillG,
  532. Size = UDim2.new(3, 3, 3, 3),
  533. BackgroundTransparency = 1,
  534. Text = tostring(damage).."-",
  535. TextColor3 = Color1.Color,
  536. TextStrokeColor3 = Color2.Color,
  537. TextStrokeTransparency = 0,
  538. TextXAlignment = Enum.TextXAlignment.Center,
  539. TextYAlignment = Enum.TextYAlignment.Center,
  540. FontSize = Enum.FontSize.Size18,
  541. Font = "ArialBold",
  542. }
  543. coroutine.resume(coroutine.create(function()
  544. swait(1)
  545. for i = 0, 1, .1 do
  546. swait(.1)
  547. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  548. end
  549. BillG:Destroy()
  550. end))
  551. end
  552. v.Health = v.Health - damage
  553. local bool = Create("BoolValue"){
  554. Parent = v,
  555. Name = "DebounceHit",
  556. }
  557. if HSound ~= nil and HPitch ~= nil then
  558. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  559. end
  560. game:GetService("Debris"):AddItem(bool, cooldown)
  561. end
  562. end
  563. end
  564. end
  565.  
  566. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  567. for _, c in pairs(workspace:children()) do
  568. local hum = c:findFirstChild("Humanoid")
  569. if hum ~= nil then
  570. local head = c:findFirstChild("Torso")
  571. if head ~= nil then
  572. local targ = head.Position - Part.Position
  573. local mag = targ.magnitude
  574. if mag <= magni and c.Name ~= Player.Name then
  575. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  576. end
  577. end
  578. end
  579. end
  580. end
  581.  
  582. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  583. HandleWeld = CFuncs["Weld"].Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199958801, -0.0500774384, -1.09998882, -1, 0, 0, 0, 0, -1, -0, -1, -0))
  584. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  585. FakeHandleWeld = CFuncs["Weld"].Create(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  586. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  587. BarrelWeld = CFuncs["Weld"].Create(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.749999046, -1.50000024, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  588. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
  589. PartWeld = CFuncs["Weld"].Create(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.300000191, -0.400000095, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  590. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://464785640", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
  591. Part.Mesh.TextureId = "rbxassetid://113108073"
  592.  
  593. EffectModel = Instance.new("Model", Character)
  594. EffectModel.Name = "Effects"
  595.  
  596. Effects = {
  597. ["Block"] = {
  598. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  599. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  600. prt.Anchored = true
  601. prt.CFrame = cframe
  602. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  603. game:GetService("Debris"):AddItem(prt, 10)
  604. if Type == 1 or Type == nil then
  605. table.insert(Effects, {
  606. prt,
  607. "Block1",
  608. delay,
  609. x3,
  610. y3,
  611. z3,
  612. msh
  613. })
  614. elseif Type == 2 then
  615. table.insert(Effects, {
  616. prt,
  617. "Block2",
  618. delay,
  619. x3,
  620. y3,
  621. z3,
  622. msh
  623. })
  624. end
  625. end;
  626. };
  627.  
  628. ["Cylinder"] = {
  629. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  630. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 2)
  635. Effects[#Effects + 1] = {
  636. prt,
  637. "Cylinder",
  638. delay,
  639. x3,
  640. y3,
  641. z3
  642. }
  643. end;
  644. };
  645.  
  646. ["Sphere"] = {
  647. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  648. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  649. prt.Anchored = true
  650. prt.CFrame = cframe
  651. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  652. game:GetService("Debris"):AddItem(prt, 10)
  653. table.insert(Effects, {
  654. prt,
  655. "Cylinder",
  656. delay,
  657. x3,
  658. y3,
  659. z3,
  660. msh
  661. })
  662. end;
  663. };
  664.  
  665. ["Elec"] = {
  666. Create = function(cff, x, y, z)
  667. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  668. prt.Anchored = true
  669. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  670. prt.CFrame = CFrame.new(prt.Position)
  671. game:GetService("Debris"):AddItem(prt, 2)
  672. local xval = math.random() / 2
  673. local yval = math.random() / 2
  674. local zval = math.random() / 2
  675. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  676. table.insert(Effects, {
  677. prt,
  678. "Elec",
  679. 0.1,
  680. x,
  681. y,
  682. z,
  683. xval,
  684. yval,
  685. zval
  686. })
  687. end;
  688.  
  689. };
  690.  
  691. ["Ring"] = {
  692. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  693. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  694. prt.Anchored = true
  695. prt.CFrame = cframe
  696. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  697. game:GetService("Debris"):AddItem(prt, 10)
  698. table.insert(Effects, {
  699. prt,
  700. "Cylinder",
  701. delay,
  702. x3,
  703. y3,
  704. z3,
  705. msh
  706. })
  707. end;
  708. };
  709.  
  710.  
  711. ["Wave"] = {
  712. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  713. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  714. prt.Anchored = true
  715. prt.CFrame = cframe
  716. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://967645239", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  717. game:GetService("Debris"):AddItem(prt, 10)
  718. table.insert(Effects, {
  719. prt,
  720. "Cylinder",
  721. delay,
  722. x3,
  723. y3,
  724. z3,
  725. msh
  726. })
  727. end;
  728. };
  729.  
  730. ["Break"] = {
  731. Create = function(brickcolor, cframe, x1, y1, z1)
  732. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  733. prt.Anchored = true
  734. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  735. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  736. local num = math.random(10, 50) / 1000
  737. game:GetService("Debris"):AddItem(prt, 10)
  738. table.insert(Effects, {
  739. prt,
  740. "Shatter",
  741. num,
  742. prt.CFrame,
  743. math.random() - math.random(),
  744. 0,
  745. math.random(50, 100) / 100
  746. })
  747. end;
  748. };
  749. }
  750.  
  751. Shoot2 = function(orgpos)
  752. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  753. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  754. table.insert(Effects, {
  755. MouseLook.lookVector,
  756. "Shoot2",
  757. 50,
  758. orgpos,
  759. 5,
  760. 7,
  761. 0,
  762. 1,
  763. 2
  764. })
  765. end
  766.  
  767. function attackone()
  768. attack = true
  769. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  770. for i = 0, 1, 0.025 do
  771. swait()
  772. PlayAnimationFromTable({
  773. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  774. CFrame.new(0, 1.4999907, 3.42726707e-007, 1, 0, 0, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  775. CFrame.new(0.431798398, 0.400000006, -0.888215482, 0.939692736, 0.342019886, 0, 0, 0, -1, -0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  776. CFrame.new(-0.559965074, 0.300000012, -0.828456283, 0.939692736, -0.342019886, 0, 0, 0, -1, 0.342019916, 0.939692736, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  777. CFrame.new(0.599619746, -1.99127948, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  778. CFrame.new(-0.599619746, -1.99127901, 0, 0.996194661, 0.087155968, 0, -0.087155968, 0.996194661, 0, -0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  779. }, .3, false)
  780. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  781. end
  782. CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
  783. CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
  784. CFuncs["Sound"].Create("rbxassetid://365003340", Barrel, .05, .9)
  785. Shoot2(Barrel.Position)
  786. for i = 0, 1, 0.15 do
  787. swait()
  788. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  789. PlayAnimationFromTable({
  790. CFrame.new(-0, -0.281125277, 0.157014638, 1, 0, -0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  791. CFrame.new(0, 1.4999938, 1.05202198e-005, 1, 0, -0, 0, 0.965925813, 0.258818924, -0, -0.258818924, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  792. CFrame.new(0.406597674, 0.817824185, -0.957423151, 0.939692974, 0.280165672, -0.196174338, -5.36441803e-007, -0.573575616, -0.819152534, -0.34201926, 0.769751906, -0.538984895) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  793. CFrame.new(-0.506752789, 0.775180221, -0.974653006, 0.939692974, -0.280165732, 0.196174279, 5.36441803e-007, -0.573575556, -0.819152713, 0.34201926, 0.769752145, -0.538984716) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  794. CFrame.new(0.566868722, -1.61683154, -0.13679418, 0.954536259, -0.174988821, -0.241328761, 0.172366679, 0.984509468, -0.0321052969, 0.243208498, -0.0109513998, 0.969912171) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  795. CFrame.new(-0.545306504, -1.37044179, -0.679420352, 0.996202111, 0.0754783303, 0.0434113704, -0.0434117466, 0.862729907, -0.503797948, -0.0754781216, 0.49999994, 0.862729967) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  796. }, .6, false)
  797. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  798. end
  799. for i = 0, 1, 0.15 do
  800. swait()
  801. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  802. PlayAnimationFromTable({
  803. CFrame.new(-0, -0.795007467, 0.0831707418, 1, 0, -0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  804. CFrame.new(0, 1.49999774, 1.20103359e-005, 1, 0, -0, 0, 0.965925634, 0.258819878, -0, -0.258819878, 0.965925634) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  805. CFrame.new(1.70605683, 1.21151328, -0.185158521, 0.893217862, -0.29338178, -0.340718448, -0.340719074, -0.936116338, -0.0871595442, -0.293381065, 0.193941653, -0.936116695) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  806. CFrame.new(-1.69524968, 1.05172348, -0.252849877, 0.812758088, 0.493294626, 0.309975445, 0.582562625, -0.694268882, -0.422624737, 0.00672781467, 0.524071693, -0.851647615) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  807. CFrame.new(0.689150453, -1.88461804, -0.0157705098, 0.954536736, -0.174989104, -0.241326213, 0.172367141, 0.984509468, -0.0321044922, 0.243205875, -0.0109517872, 0.969912887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  808. CFrame.new(-0.536899447, -1.34506011, -0.583059072, 0.99620223, 0.0226762109, 0.0840658173, -0.043412663, 0.966281295, 0.253803402, -0.0754759163, -0.256489068, 0.963595748) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  809. }, .2, false)
  810. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  811. end
  812. for i = 0, 1, 0.05 do
  813. swait()
  814. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  815. PlayAnimationFromTable({
  816. CFrame.new(-0, -2.09708667, 0.108620644, 1, 0, -0, 0, 0.573575675, -0.819152594, 0, 0.819152594, 0.573575675) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  817. CFrame.new(0, 1.53697455, -0.422635257, 1, 0, -0, 0, 0.766043842, 0.64278841, -0, -0.64278841, 0.766043842) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  818. CFrame.new(1.57810855, 0.650130272, 0.33058399, 0.930655897, -0.284022599, -0.230674848, 0.352510452, 0.527023435, 0.773293555, -0.0980618149, -0.800985396, 0.590598404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  819. CFrame.new(-1.38994181, 0.87733829, 0.667137444, 0.963715255, 0.08906921, 0.251633942, -0.25866431, 0.0788001418, 0.962747812, 0.0659223944, -0.992903471, 0.0989798903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  820. CFrame.new(0.774198592, -1.52057803, -0.607582211, 0.954536974, -0.272207022, -0.121501081, 0.172365844, 0.83655864, -0.520057499, 0.243206039, 0.475471497, 0.845445395) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  821. CFrame.new(-0.530096769, -1.05517173, -0.660005629, 0.99620223, 0.0226761587, 0.0840661526, -0.0434127897, 0.966280818, 0.253804684, -0.0754762068, -0.256490231, 0.96359539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  822. }, .3, false)
  823. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  824. end
  825. for i = 0, 1, 0.13 do
  826. swait()
  827. PlayAnimationFromTable({
  828. CFrame.new(-0, -1.01349139, -0.251608461, 1, 0, 0, 0, 0.707105339, 0.707108378, 0, -0.707108378, 0.707105339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  829. CFrame.new(0.0127754211, 1.44207788, 0.0749337673, 1, 0, 0, 0, 0.939691544, -0.342023343, 0, 0.342023343, 0.939691544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  830. CFrame.new(1.62296665, 0.191783041, -0.192457974, 0.930656254, -0.329096794, 0.159920022, 0.352511466, 0.923570275, -0.150843769, -0.098055169, 0.196757287, 0.975536823) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  831. CFrame.new(-0.870643735, 0.71258086, -0.942903101, 0.18127799, -0.372358024, -0.910213113, -0.781424284, 0.507405519, -0.363202393, 0.597088516, 0.777103186, -0.19898814) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  832. CFrame.new(0.214147568, -1.73508716, -0.0895051956, 0.924306214, 0.282332808, -0.256800473, -0.113861978, 0.846218646, 0.520528436, 0.364271581, -0.451887846, 0.814311981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  833. CFrame.new(-0.535767198, -0.599929333, -0.996632636, 0.996202111, 0.0754788443, 0.0434101112, -0.0434126705, 0.862728953, -0.503799856, -0.0754773915, 0.500001788, 0.862729192) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  834. }, .3, false)
  835. end
  836. attack = false
  837. end
  838.  
  839. --[[Attacks]]--
  840.  
  841. mouse.Button1Down:connect(function()
  842. if attack == false and attacktype == 1 then
  843. attackone()
  844. end
  845. end)
  846.  
  847. mouse.KeyDown:connect(function(k)
  848. k = k:lower()
  849. if attack == false and k == '' then
  850.  
  851. end
  852. end)
  853.  
  854. while true do
  855. swait()
  856. for i, v in pairs(Character:GetChildren()) do
  857. if v:IsA("Part") then
  858. v.Material = "SmoothPlastic"
  859. elseif v:IsA("Accessory") then
  860. v:WaitForChild("Handle").Material = "SmoothPlastic"
  861. end
  862. end
  863. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  864. velocity = RootPart.Velocity.y
  865. sine = sine + change
  866. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  867. if equipped == true or equipped == false then
  868. if RootPart.Velocity.y > 1 and hit == nil then
  869. Anim = "Jump"
  870. if attack == false then
  871. PlayAnimationFromTable({
  872. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  873. CFrame.new(0, 1.49221826, -0.044082582, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  874. CFrame.new(1.66304386, 0.182627335, 0.00782334805, 0.883022726, -0.392632574, 0.257119894, 0.321392894, 0.905103981, 0.2783764, -0.342019886, -0.163176134, 0.925416708) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  875. CFrame.new(-1.66570556, 0.224230319, 0.110721856, 0.903736115, 0.408218145, -0.128915116, -0.34750703, 0.875426054, 0.33595863, 0.25000003, -0.258819014, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  876. CFrame.new(0.499999166, -1.99999452, 4.76837158e-007, 0.984807849, -5.94328526e-007, -0.173648044, 0.0449439958, 0.965925872, 0.254886925, 0.167730987, -0.258819073, 0.951251388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  877. CFrame.new(-0.499999404, -1.51703107, -0.129407585, 0.965925753, 6.6929374e-007, 0.258819193, -0.0669879839, 0.965925813, 0.24999994, -0.24999994, -0.258819163, 0.933012724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  878. }, .3, false)
  879. end
  880. elseif RootPart.Velocity.y < -1 and hit == nil then
  881. Anim = "Fall"
  882. if attack == false then
  883. PlayAnimationFromTable({
  884. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  885. CFrame.new(0, 1.49221873, -0.0440826714, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  886. CFrame.new(1.76076102, 0.406842887, 0.0212866664, 0.695482016, -0.670965135, 0.257119834, 0.611573994, 0.74059701, 0.278376371, -0.377202988, -0.0363579579, 0.925416648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  887. CFrame.new(-1.68029141, 0.390803367, 0.155905366, 0.70961535, 0.692695498, -0.128914997, -0.625963271, 0.703777075, 0.335958213, 0.323444158, -0.157705069, 0.933012843) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  888. CFrame.new(0.693307817, -1.96826017, -0.0605875254, 0.986561239, -0.127662987, -0.101976946, 0.137943029, 0.985269904, 0.101069227, 0.0875720233, -0.113777988, 0.989639223) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  889. CFrame.new(-0.526552737, -1.81498528, -0.152177691, 0.965925574, 0.0449441113, 0.254888207, -0.066988036, 0.994663239, 0.0784704387, -0.250001162, -0.0928710476, 0.963781357) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  890. }, .3, false)
  891. end
  892. elseif Torsovelocity < 1 and hit ~= nil then
  893. Anim = "Idle"
  894. if attack == false then
  895. change = 1
  896. PlayAnimationFromTable({
  897. CFrame.new(1.22602091e-006, -0.219458103, 1.46111324e-006, 0.76604414, 0, 0.642788053, 0, 1, 0, -0.642788053, 0, 0.76604414) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  898. CFrame.new(0, 1.49999201, 0, 0.707106233, 0, -0.707107306, 0, 1, 0, 0.707107306, 0, 0.707106233) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  899. CFrame.new(0.571566343, -0.0739164352, -0.639066696, 0.939692855, 0.340718329, -0.0298085809, -0.241844058, 0.600305915, -0.762328327, -0.241844922, 0.723563433, 0.646503866) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  900. CFrame.new(-0.628383756, -0.12163578, -0.696761668, 0.939692736, -0.342020065, -5.06639481e-007, 0.196173996, 0.538984895, -0.819152653, 0.280166954, 0.769751549, 0.573575616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  901. CFrame.new(0.624118924, -1.79798961, 0.0678238794, 0.995454907, -0.0383867361, -0.0871553123, 0.0385330059, 0.999257326, -4.09960694e-006, 0.0870907605, -0.00335427374, 0.996194839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  902. CFrame.new(-0.53866595, -1.82180798, 0.00821807235, 0.977763176, 0.0281341001, 0.207816422, -0.0287620034, 0.999586344, -1.4934686e-007, -0.207730502, -0.00597707182, 0.978167892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  903. }, .3, false)
  904. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  905. end
  906. elseif Torsovelocity > 2 and hit ~= nil then
  907. Anim = "Walk"
  908. if attack == false then
  909. change = 3
  910. PlayAnimationFromTable({
  911. CFrame.new(0, -0.0240751095, -0.146390602, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  912. CFrame.new(0, 1.49999237, -1.81794167e-006, 1, 0, 0, 0, 0.984807789, -0.173647881, 0, 0.173647881, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  913. CFrame.new(0.172261134, 0.427689523, -1.09730911, 0.644483984, 0.748984814, -0.153825179, 0.413525045, -0.510645986, -0.753815472, -0.643146515, 0.422211438, -0.638827145) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  914. CFrame.new(-1.1922102, 0.363029838, -0.448653877, 0.935289383, -0.110854559, -0.33607316, -0.341521561, -0.531564534, -0.775114357, -0.0927196145, 0.839732468, -0.535025835) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  915. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  916. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)),
  917. }, .3, false)
  918. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  919. end
  920. end
  921. end
  922. if 0 < #Effects then
  923. for e = 1, #Effects do
  924. if Effects[e] ~= nil then
  925. local Thing = Effects[e]
  926. if Thing ~= nil then
  927. local Part = Thing[1]
  928. local Mode = Thing[2]
  929. local Delay = Thing[3]
  930. local IncX = Thing[4]
  931. local IncY = Thing[5]
  932. local IncZ = Thing[6]
  933. if Thing[2] == "Shoot" then
  934. local Look = Thing[1]
  935. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  936. local mag = (Thing[4] - pos).magnitude
  937. Thing[9] = Thing[9] + 0.5
  938. Thing[5] = Thing[5] + 0.2
  939. Thing[6] = Thing[6] + 0.2
  940. Effects["Cylinder"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos) * angles(1.57, 0, 0), Thing[9], mag * 5, Thing[9], -0.2, 0, -0.2, 0.1)
  941. Thing[4] = Thing[4] + Look * 15
  942. Thing[3] = Thing[3] - 1
  943. if hit ~= nil then
  944. Thing[3] = 0
  945. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  946. ref.Anchored = true
  947. ref.CFrame = CFrame.new(pos)
  948. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  949. CFuncs["Sound"].Create("rbxassetid://212389494", ref, 1, 1.1)
  950. game:GetService("Debris"):AddItem(ref, 1)
  951. end
  952. if Thing[3] <= 0 then
  953. table.remove(Effects, e)
  954. end
  955. end
  956. do
  957. if Thing[2] == "Shoot2" then
  958. local Look = Thing[1]
  959. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  960. local mag = (Thing[4] - pos).magnitude
  961. Thing[9] = Thing[9] + 0.5
  962. Thing[5] = Thing[5] + 0.2
  963. Thing[6] = Thing[6] + 0.2
  964. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  965. Thing[4] = Thing[4] + Look * 3
  966. Thing[3] = Thing[3] + 5
  967. if hit ~= nil then
  968. Thing[3] = 0
  969. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Yellow"), "Reference", Vector3.new())
  970. ref.Anchored = true
  971. ref.CFrame = CFrame.new(pos)
  972. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  973. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  974. Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  975. Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  976. CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
  977. CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
  978. CFuncs["Sound"].Create("rbxassetid://365003340", ref, 1, .9)
  979. local e = Instance.new("Explosion", ref)
  980. e.Position = ref.Position
  981. e.BlastRadius = 400
  982. e.DestroyJointRadiusPercent = 20
  983. e.Visible = false
  984. e.ExplosionType = "CratersAndDebris"
  985. game:GetService("Debris"):AddItem(ref, 10)
  986. end
  987. if Thing[3] <= 0 then
  988. table.remove(Effects, e)
  989. end
  990. end
  991. do
  992. do
  993. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  994. if Thing[1].Transparency <= 1 then
  995. if Thing[2] == "Block1" then
  996. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  997. Mesh = Thing[7]
  998. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  999. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1000. else
  1001. if Thing[2] == "Block2" then
  1002. Thing[1].CFrame = Thing[1].CFrame
  1003. Mesh = Thing[7]
  1004. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1005. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1006. else
  1007. if Thing[2] == "Block3" then
  1008. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  1009. Mesh = Thing[7]
  1010. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1011. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1012. else
  1013. if Thing[2] == "Cylinder" then
  1014. Mesh = Thing[7]
  1015. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1016. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1017. else
  1018. if Thing[2] == "Cylinder2" then
  1019. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  1020. Mesh = Thing[7]
  1021. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1022. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1023. else
  1024. if Thing[2] == "Blood" then
  1025. Mesh = Thing[7]
  1026. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  1027. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1028. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1029. else
  1030. if Thing[2] == "Elec" then
  1031. Mesh = Thing[10]
  1032. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1033. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1034. else
  1035. if Thing[2] == "Disappear" then
  1036. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1037. end
  1038. end
  1039. end
  1040. end
  1041. end
  1042. end
  1043. end
  1044. end
  1045. else
  1046. Part.Parent = nil
  1047. table.remove(Effects, e)
  1048. end
  1049. end
  1050. end
  1051. end
  1052. end
  1053. end
  1054. end
  1055. end
  1056. end
  1057. end
  1058. touchCounter = 0
  1059. while wait() do
  1060. if plr.Character.Parent == workspace.Camera then
  1061. local c = plr.Character:Clone()
  1062. c:MakeJoints()
  1063. for y,t in pairs(c:GetChildren()) do
  1064. if t:IsA("Part") then
  1065. t.CanCollide = false
  1066. t.Anchored = true
  1067. t.Transparency = .5
  1068. t.TopSurface = "Smooth"
  1069. t.BottomSurface = "Smooth"
  1070. t.RightSurface = "Smooth"
  1071. t.LeftSurface = "Smooth"
  1072. t.FrontSurface = "Smooth"
  1073. t.BackSurface = "Smooth"
  1074. t.BrickColor = BrickColor.new("Really black")
  1075. if t.Name == "Head" and t:FindFirstChild("face") then
  1076. t.face:Remove()
  1077. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  1078. t.roblox:Remove()
  1079. elseif t.Name == "HumanoidRootPart" then
  1080. t:Remove()
  1081. end
  1082. else
  1083. t:Remove()
  1084. end
  1085. end
  1086. c.Parent = workspace
  1087. game.Debris:AddItem(c,.05)
  1088. end
  1089. end
Add Comment
Please, Sign In to add comment