Advertisement
DylanD2003

Untitled

Sep 14th, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.02 KB | None | 0 0
  1. --[[Nocturna_A._Alteriano_Night.Owl.Inc]]--
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. local mouse = Player:GetMouse()
  8. local m = Instance.new('Model', Character)
  9. m.Name = "WeaponModel"
  10. local LeftArm = Character["Left Arm"]
  11. local RightArm = Character["Right Arm"]
  12. local LeftLeg = Character["Left Leg"]
  13. local RightLeg = Character["Right Leg"]
  14. local Head = Character.Head
  15. local Torso = Character.Torso
  16. local cam = game.Workspace.CurrentCamera
  17. local RootPart = Character.HumanoidRootPart
  18. local RootJoint = RootPart.RootJoint
  19. local equipped = false
  20. local attack = false
  21. local Anim = 'Idle'
  22. local idle = 0
  23. local attacktype = 1
  24. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  25. local velocity = RootPart.Velocity.y
  26. local sine = 0
  27. local change = 1
  28. local grabbed = false
  29. local cn = CFrame.new
  30. local mr = math.rad
  31. local angles = CFrame.Angles
  32. local ud = UDim2.new
  33. local c3 = Color3.new
  34.  
  35. Humanoid.Animator.Parent = nil
  36. Character.Animate.Parent = nil
  37.  
  38. local newMotor = function(part0, part1, c0, c1)
  39. local w = Instance.new('Motor', part0)
  40. w.Part0 = part0
  41. w.Part1 = part1
  42. w.C0 = c0
  43. w.C1 = c1
  44. return w
  45. end
  46.  
  47. function clerp(a, b, t)
  48. return a:lerp(b, t)
  49. end
  50.  
  51. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  52. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  53.  
  54. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  55. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  56. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  57. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  58. RootJoint.C1 = CFrame.new(0, 0, 0)
  59. RootJoint.C0 = CFrame.new(0, 0, 0)
  60. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  61. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  62.  
  63. local rarmc1 = RW.C1
  64. local larmc1 = LW.C1
  65. local rlegc1 = RH.C1
  66. local llegc1 = LH.C1
  67.  
  68. local resetc1 = false
  69.  
  70. function PlayAnimationFromTable(table, speed, bool)
  71. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  72. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  73. RW.C0 = clerp(RW.C0, table[3], speed)
  74. LW.C0 = clerp(LW.C0, table[4], speed)
  75. RH.C0 = clerp(RH.C0, table[5], speed)
  76. LH.C0 = clerp(LH.C0, table[6], speed)
  77. if bool == true then
  78. if resetc1 == false then
  79. resetc1 = true
  80. RootJoint.C1 = RootJoint.C1
  81. Torso.Neck.C1 = Torso.Neck.C1
  82. RW.C1 = rarmc1
  83. LW.C1 = larmc1
  84. RH.C1 = rlegc1
  85. LH.C1 = llegc1
  86. end
  87. end
  88. end
  89.  
  90. --[[
  91. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  92. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  93. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  94. --]]
  95. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  96. --die plz
  97. mouse = game.Players.LocalPlayer:GetMouse()
  98. function ragdoll()
  99. game.Players.LocalPlayer.Character.Archivable = true
  100. clone = game.Players.LocalPlayer.Character:Clone()
  101. clone.Parent = workspace
  102. for i,v in pairs(clone:GetChildren()) do
  103. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  104. v:destroy()
  105. end
  106. for i,p in pairs(v:GetChildren()) do
  107. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  108. p:destroy()
  109. end
  110. end
  111. end
  112. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  113. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  114. t:destroy()
  115. end
  116. end
  117. vel = Instance.new("BodyVelocity", clone.Torso)
  118. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  119. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  120. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=318594664"
  121. using = false
  122. hit = Instance.new("Sound", clone.Torso)
  123. hit.SoundId = "rbxassetid://546029423"
  124. hit.Volume = 5
  125. hit1 = Instance.new("Sound", clone.Torso)
  126. hit1.SoundId = "rbxassetid://138087186"
  127. hit1.Volume = 5
  128. hit2 = Instance.new("Sound", clone.Torso)
  129. hit2.SoundId = "rbxassetid://131237241"
  130. hit2.Volume = 5
  131. hit3 = Instance.new("Sound", clone.Torso)
  132. hit3.SoundId = "rbxassetid://278062209"
  133. hit3.Volume = 5
  134. hit3.TimePosition = 0.33
  135. ded = Instance.new("Sound", clone.Torso)
  136. ded.SoundId = "rbxassetid://906084456"
  137. ded.Volume = 10
  138. ded.TimePosition = 5
  139. local leftarm = clone:findFirstChild("Left Arm")
  140. local rightrm = clone:findFirstChild("Right Arm")
  141. local leftleg = clone:findFirstChild("Left Leg")
  142. local rightleg = clone:findFirstChild("Right Leg")
  143. local head = clone:findFirstChild("Head")
  144. local welding = Instance.new("Weld", clone.Torso)
  145. welding.Part0 = clone.Torso
  146. welding.Part1 = head
  147. welding.C0 = welding.C0 * CFrame.new(0,1.5,0)
  148. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  149. if g.ClassName == "Part" then
  150. g:destroy()
  151. end
  152. end
  153. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  154. if h.ClassName == "Accesory" then
  155. h:destroy()
  156. end
  157. end
  158. game.Workspace.CurrentCamera.CameraSubject = head
  159. if leftleg ~= nil then
  160. local glue = Instance.new("Glue", clone.Torso)
  161. glue.Part0 = clone.Torso
  162. glue.Part1 = leftleg
  163. glue.Name = "Left leg"
  164. local collider = Instance.new("Part", leftleg)
  165. collider.Position = Vector3.new(0,999,0)
  166. collider.Size = Vector3.new(1.7, 1, 1)
  167. collider.Shape = "Cylinder"
  168. local weld = Instance.new("Weld", collider)
  169. weld.Part0 = leftleg
  170. weld.Part1 = collider
  171. weld.C0 = CFrame.Angles(0, 0, 80)
  172. collider.TopSurface = "Smooth"
  173. collider.BottomSurface = "Smooth"
  174. collider.formFactor = "Symmetric"
  175. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  176. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  177. collider.Transparency = 1
  178. end
  179. ------------
  180. if rightleg ~= nil then
  181. local glue1 = Instance.new("Glue", clone.Torso)
  182. glue1.Part0 = clone.Torso
  183. glue1.Part1 = rightleg
  184. glue1.Name = "Right leg"
  185. local collider1 = Instance.new("Part", rightleg)
  186. collider1.Position = Vector3.new(0,999,0)
  187. collider1.Size = Vector3.new(1.7, 1, 1)
  188. collider1.Shape = "Cylinder"
  189. local weld1 = Instance.new("Weld", collider1)
  190. weld1.Part0 = rightleg
  191. weld1.Part1 = collider1
  192. weld1.C0 = CFrame.Angles(0, 0, 80)
  193. collider1.TopSurface = "Smooth"
  194. collider1.BottomSurface = "Smooth"
  195. collider1.formFactor = "Symmetric"
  196. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  197. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  198. collider1.Transparency = 1
  199. end
  200. ------------
  201. if rightrm ~= nil then
  202. local glue11 = Instance.new("Glue", clone.Torso)
  203. glue11.Part0 = clone.Torso
  204. glue11.Part1 = rightrm
  205. glue11.Name = "Right shoulder"
  206. local collider11 = Instance.new("Part", rightrm)
  207. collider11.Position = Vector3.new(0,9999,0)
  208. collider11.Size = Vector3.new(1.8,1,1)
  209. collider11.Shape = "Cylinder"
  210. local weld11 = Instance.new("Weld", collider11)
  211. weld11.Part0 = rightrm
  212. weld11.Part1 = collider11
  213. weld11.C0 = CFrame.Angles(0, 0, 80)
  214. collider11.TopSurface = "Smooth"
  215. collider11.BottomSurface = "Smooth"
  216. collider11.formFactor = "Symmetric"
  217. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  218. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  219. collider11.Transparency = 1
  220. end
  221. ------------
  222. if leftarm ~= nil then
  223. local glue111 = Instance.new("Glue", clone.Torso)
  224. glue111.Part0 = clone.Torso
  225. glue111.Part1 = leftarm
  226. glue111.Name = "Left shoulder"
  227. local collider111 = Instance.new("Part", leftarm)
  228. collider111.Position = Vector3.new(0,9999,0)
  229. collider111.Size = Vector3.new(1.8,1,1)
  230. collider111.Shape = "Cylinder"
  231. local weld111 = Instance.new("Weld", collider111)
  232. weld111.Part0 = leftarm
  233. weld111.Part1 = collider111
  234. weld111.C0 = CFrame.Angles(0, 0, 80)
  235. collider111.TopSurface = "Smooth"
  236. collider111.BottomSurface = "Smooth"
  237. collider111.formFactor = "Symmetric"
  238. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  239. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  240. collider111.Transparency = 1
  241. ----------------
  242. sensoring = Instance.new("Part", clone.Torso)
  243. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  244. sensoring.CanCollide = false
  245. sensoring.Position = clone.Torso.Position
  246. local welder = Instance.new("Weld", sensoring)
  247. welder.Part0 = clone.Torso
  248. welder.Part1 = sensoring
  249. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  250. sensoring.Transparency = 1
  251. -----------------
  252. sensoring1 = Instance.new("Part", clone.Torso)
  253. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  254. sensoring1.CanCollide = false
  255. sensoring1.Position = clone.Torso.Position
  256. local welder1 = Instance.new("Weld", sensoring)
  257. welder1.Part0 = clone.Torso
  258. welder1.Part1 = sensoring1
  259. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  260. sensoring1.Transparency = 1
  261. end
  262. clone.Name = game.Players.LocalPlayer.Character.Name.."(Got fucked by an explosion)"
  263. ded:Play()
  264. vel:destroy()
  265. wait(0.5)
  266. local function touch()
  267. if not using then
  268. using = true
  269. local Math = math.random(1,4)
  270. if Math == 1 then
  271. hit:Play()
  272. end
  273. if Math == 2 then
  274. hit1:Play()
  275. end
  276. if Math == 3 then
  277. hit2:Play()
  278. end
  279. if Math == 4 then
  280. hit3:Play()
  281. end
  282. wait(0.1)
  283. using = false
  284. end
  285. end
  286. sensoring.Touched:connect(touch)
  287. sensoring1.Touched:connect(touch)
  288. wait(4.47)
  289. hit1.Volume = 0
  290. hit2.Volume = 0
  291. hit3.Volume = 0
  292. hit.Volume = 0
  293. end
  294.  
  295. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  296.  
  297. --di ent
  298.  
  299. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  300.  
  301. ArtificialHB = Instance.new("BindableEvent", script)
  302. ArtificialHB.Name = "Heartbeat"
  303.  
  304. script:WaitForChild("Heartbeat")
  305.  
  306. frame = 1 / 30
  307. tf = 0
  308. allowframeloss = false
  309. tossremainder = false
  310. lastframe = tick()
  311. script.Heartbeat:Fire()
  312.  
  313. game:GetService("RunService").Heartbeat:connect(function(s, p)
  314. tf = tf + s
  315. if tf >= frame then
  316. if allowframeloss then
  317. script.Heartbeat:Fire()
  318. lastframe = tick()
  319. else
  320. for i = 1, math.floor(tf / frame) do
  321. script.Heartbeat:Fire()
  322. end
  323. lastframe = tick()
  324. end
  325. if tossremainder then
  326. tf = 0
  327. else
  328. tf = tf - frame * math.floor(tf / frame)
  329. end
  330. end
  331. end)
  332.  
  333. function swait(num)
  334. if num == 0 or num == nil then
  335. ArtificialHB.Event:wait()
  336. else
  337. for i = 0, num do
  338. ArtificialHB.Event:wait()
  339. end
  340. end
  341. end
  342.  
  343. local RbxUtility = LoadLibrary("RbxUtility")
  344. local Create = RbxUtility.Create
  345.  
  346. function RemoveOutlines(part)
  347. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  348. end
  349.  
  350. CFuncs = {
  351. ["Part"] = {
  352. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  353. local Part = Create("Part"){
  354. Parent = Parent,
  355. Reflectance = Reflectance,
  356. Transparency = Transparency,
  357. CanCollide = false,
  358. Locked = true,
  359. BrickColor = BrickColor.new(tostring(BColor)),
  360. Name = Name,
  361. Size = Size,
  362. Material = Material,
  363. }
  364. RemoveOutlines(Part)
  365. return Part
  366. end;
  367. };
  368.  
  369. ["Mesh"] = {
  370. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  371. local Msh = Create(Mesh){
  372. Parent = Part,
  373. Offset = OffSet,
  374. Scale = Scale,
  375. }
  376. if Mesh == "SpecialMesh" then
  377. Msh.MeshType = MeshType
  378. Msh.MeshId = MeshId
  379. end
  380. return Msh
  381. end;
  382. };
  383.  
  384. ["Mesh"] = {
  385. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  386. local Msh = Create(Mesh){
  387. Parent = Part,
  388. Offset = OffSet,
  389. Scale = Scale,
  390. }
  391. if Mesh == "SpecialMesh" then
  392. Msh.MeshType = MeshType
  393. Msh.MeshId = MeshId
  394. end
  395. return Msh
  396. end;
  397. };
  398.  
  399. ["Weld"] = {
  400. Create = function(Parent, Part0, Part1, C0, C1)
  401. local Weld = Create("Weld"){
  402. Parent = Parent,
  403. Part0 = Part0,
  404. Part1 = Part1,
  405. C0 = C0,
  406. C1 = C1,
  407. }
  408. return Weld
  409. end;
  410. };
  411.  
  412. ["Sound"] = {
  413. Create = function(id, par, vol, pit)
  414. coroutine.resume(coroutine.create(function()
  415. local S = Create("Sound"){
  416. Volume = vol,
  417. Pitch = pit or 1,
  418. SoundId = id,
  419. Parent = par or workspace,
  420. }
  421. Instance.new("DistortionSoundEffect", S).Level = 1
  422. wait()
  423. S:play()
  424. game:GetService("Debris"):AddItem(S, 10)
  425. end))
  426. end;
  427. };
  428.  
  429. ["ParticleEmitter"] = {
  430. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  431. local fp = Create("ParticleEmitter"){
  432. Parent = Parent,
  433. Color = ColorSequence.new(Color1, Color2),
  434. LightEmission = LightEmission,
  435. Size = Size,
  436. Texture = Texture,
  437. Transparency = Transparency,
  438. ZOffset = ZOffset,
  439. Acceleration = Accel,
  440. Drag = Drag,
  441. LockedToPart = LockedToPart,
  442. VelocityInheritance = VelocityInheritance,
  443. EmissionDirection = EmissionDirection,
  444. Enabled = Enabled,
  445. Lifetime = LifeTime,
  446. Rate = Rate,
  447. Rotation = Rotation,
  448. RotSpeed = RotSpeed,
  449. Speed = Speed,
  450. VelocitySpread = VelocitySpread,
  451. }
  452. return fp
  453. end;
  454. };
  455. }
  456.  
  457. function rayCast(Position, Direction, Range, Ignore)
  458. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  459. end
  460.  
  461. local function GetNearest(obj, distance)
  462. local last, lastx = distance + 1
  463. for i, v in pairs(workspace:GetChildren()) do
  464. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  465. local t = v.Torso
  466. local dist = (t.Position - obj.Position).magnitude
  467. if dist <= distance then
  468. if dist < last then
  469. last = dist
  470. lastx = v
  471. end
  472. end
  473. end
  474. end
  475. return lastx
  476. end
  477.  
  478. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  479.  
  480. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  481. for i, v in pairs(hit:GetChildren()) do
  482. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  483. local find = v:FindFirstChild("DebounceHit")
  484. if not find then
  485. if v.Parent:findFirstChild("Head") then
  486. local BillG = Create("BillboardGui"){
  487. Parent = v.Parent.Head,
  488. Size = UDim2.new(1, 0, 1, 0),
  489. Adornee = v.Parent.Head,
  490. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  491. }
  492. local TL = Create("TextLabel"){
  493. Parent = BillG,
  494. Size = UDim2.new(3, 3, 3, 3),
  495. BackgroundTransparency = 1,
  496. Text = tostring(damage).."-",
  497. TextColor3 = Color1.Color,
  498. TextStrokeColor3 = Color2.Color,
  499. TextStrokeTransparency = 0,
  500. TextXAlignment = Enum.TextXAlignment.Center,
  501. TextYAlignment = Enum.TextYAlignment.Center,
  502. FontSize = Enum.FontSize.Size18,
  503. Font = "ArialBold",
  504. }
  505. coroutine.resume(coroutine.create(function()
  506. swait(1)
  507. for i = 0, 1, .1 do
  508. swait(.1)
  509. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  510. end
  511. BillG:Destroy()
  512. end))
  513. end
  514. v.Health = v.Health - damage
  515. local bool = Create("BoolValue"){
  516. Parent = v,
  517. Name = "DebounceHit",
  518. }
  519. if HSound ~= nil and HPitch ~= nil then
  520. CFuncs["Sound"].Create(HSound, hit, 1, HPitch)
  521. end
  522. game:GetService("Debris"):AddItem(bool, cooldown)
  523. end
  524. end
  525. end
  526. end
  527.  
  528. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  529. for _, c in pairs(workspace:children()) do
  530. local hum = c:findFirstChild("Humanoid")
  531. if hum ~= nil then
  532. local head = c:findFirstChild("Torso")
  533. if head ~= nil then
  534. local targ = head.Position - Part.Position
  535. local mag = targ.magnitude
  536. if mag <= magni and c.Name ~= Player.Name then
  537. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  538. end
  539. end
  540. end
  541. end
  542. end
  543.  
  544. Handle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Handle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  545. 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))
  546. FakeHandle = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "FakeHandle", Vector3.new(0.399999946, 0.899999976, 0.400000095))
  547. 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))
  548. Barrel = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 1, "Medium stone grey", "Barrel", Vector3.new(0.399999946, 0.399999976, 0.400000095))
  549. 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))
  550. Part = CFuncs["Part"].Create(m, Enum.Material.SmoothPlastic, 0, 0, "Medium stone grey", "Part", Vector3.new(0.399999946, 0.299999952, 0.400000095))
  551. 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))
  552. CFuncs["Mesh"].Create("SpecialMesh", Part, Enum.MeshType.FileMesh, "rbxassetid://435840330", Vector3.new(0, 0, 0), Vector3.new(0.00200000009, 0.00200000009, 0.00200000009))
  553. Part.Mesh.TextureId = "rbxassetid://435840335"
  554.  
  555. EffectModel = Instance.new("Model", Character)
  556. EffectModel.Name = "Effects"
  557.  
  558. Effects = {
  559. ["Block"] = {
  560. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  561. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  562. prt.Anchored = true
  563. prt.CFrame = cframe
  564. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  565. game:GetService("Debris"):AddItem(prt, 10)
  566. if Type == 1 or Type == nil then
  567. table.insert(Effects, {
  568. prt,
  569. "Block1",
  570. delay,
  571. x3,
  572. y3,
  573. z3,
  574. msh
  575. })
  576. elseif Type == 2 then
  577. table.insert(Effects, {
  578. prt,
  579. "Block2",
  580. delay,
  581. x3,
  582. y3,
  583. z3,
  584. msh
  585. })
  586. end
  587. end;
  588. };
  589.  
  590. ["Cylinder"] = {
  591. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  592. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2))
  593. prt.Anchored = true
  594. prt.CFrame = cframe
  595. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  596. game:GetService("Debris"):AddItem(prt, 2)
  597. Effects[#Effects + 1] = {
  598. prt,
  599. "Cylinder",
  600. delay,
  601. x3,
  602. y3,
  603. z3
  604. }
  605. end;
  606. };
  607.  
  608. ["Sphere"] = {
  609. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  610. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  611. prt.Anchored = true
  612. prt.CFrame = cframe
  613. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  614. game:GetService("Debris"):AddItem(prt, 10)
  615. table.insert(Effects, {
  616. prt,
  617. "Cylinder",
  618. delay,
  619. x3,
  620. y3,
  621. z3,
  622. msh
  623. })
  624. end;
  625. };
  626.  
  627. ["Elec"] = {
  628. Create = function(cff, x, y, z)
  629. local prt = CFuncs["Part"].Create(workspace, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
  630. prt.Anchored = true
  631. prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  632. prt.CFrame = CFrame.new(prt.Position)
  633. game:GetService("Debris"):AddItem(prt, 2)
  634. local xval = math.random() / 2
  635. local yval = math.random() / 2
  636. local zval = math.random() / 2
  637. local msh = CFuncs["Mesh"].Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
  638. table.insert(Effects, {
  639. prt,
  640. "Elec",
  641. 0.1,
  642. x,
  643. y,
  644. z,
  645. xval,
  646. yval,
  647. zval
  648. })
  649. end;
  650.  
  651. };
  652.  
  653. ["Ring"] = {
  654. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  655. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  656. prt.Anchored = true
  657. prt.CFrame = cframe
  658. local msh = CFuncs["Mesh"].Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  659. game:GetService("Debris"):AddItem(prt, 10)
  660. table.insert(Effects, {
  661. prt,
  662. "Cylinder",
  663. delay,
  664. x3,
  665. y3,
  666. z3,
  667. msh
  668. })
  669. end;
  670. };
  671.  
  672.  
  673. ["Wave"] = {
  674. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  675. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  676. prt.Anchored = true
  677. prt.CFrame = cframe
  678. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  679. game:GetService("Debris"):AddItem(prt, 10)
  680. table.insert(Effects, {
  681. prt,
  682. "Cylinder",
  683. delay,
  684. x3,
  685. y3,
  686. z3,
  687. msh
  688. })
  689. end;
  690. };
  691.  
  692. ["Break"] = {
  693. Create = function(brickcolor, cframe, x1, y1, z1)
  694. local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  695. prt.Anchored = true
  696. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  697. local msh = CFuncs["Mesh"].Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  698. local num = math.random(10, 50) / 1000
  699. game:GetService("Debris"):AddItem(prt, 10)
  700. table.insert(Effects, {
  701. prt,
  702. "Shatter",
  703. num,
  704. prt.CFrame,
  705. math.random() - math.random(),
  706. 0,
  707. math.random(50, 100) / 100
  708. })
  709. end;
  710. };
  711. }
  712.  
  713. Shoot2 = function(orgpos)
  714. local MouseLook = CFrame.new((orgpos + mouse.Hit.p) / 2, mouse.Hit.p)
  715. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(orgpos), 5, 5, 5, 3, 3, 3, 0.1)
  716. table.insert(Effects, {
  717. MouseLook.lookVector,
  718. "Shoot2",
  719. 50,
  720. orgpos,
  721. 5,
  722. 7,
  723. 0,
  724. 1,
  725. 2
  726. })
  727. end
  728.  
  729. function attackone()
  730. attack = true
  731. CFuncs["Sound"].Create("rbxassetid://243053454", Torso, .1, 2.8)
  732. for i = 0, 1, 0.025 do
  733. swait()
  734. PlayAnimationFromTable({
  735. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  736. 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),
  737. 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),
  738. 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),
  739. 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),
  740. 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),
  741. }, .3, false)
  742. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  743. end
  744. CFuncs["Sound"].Create("rbxassetid://203691837", Barrel, .01, .3)
  745. CFuncs["Sound"].Create("rbxassetid://131384028", Barrel, .01, .9)
  746. CFuncs["Sound"].Create("rbxassetid://184718741", Barrel, .05, .9)
  747. Shoot2(Barrel.Position)
  748. for i = 0, 1, 0.15 do
  749. swait()
  750. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  751. PlayAnimationFromTable({
  752. 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),
  753. 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),
  754. 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),
  755. 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),
  756. 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),
  757. 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),
  758. }, .6, false)
  759. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-30), math.rad(-20), math.rad(0)), 0.3)
  760. end
  761. for i = 0, 1, 0.15 do
  762. swait()
  763. RootPart.Velocity = RootPart.CFrame.lookVector * -100
  764. PlayAnimationFromTable({
  765. 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),
  766. 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),
  767. 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),
  768. 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),
  769. 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),
  770. 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),
  771. }, .2, false)
  772. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)), 0.3)
  773. end
  774. for i = 0, 1, 0.05 do
  775. swait()
  776. RootPart.Velocity = RootPart.CFrame.lookVector * -50
  777. PlayAnimationFromTable({
  778. 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),
  779. 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),
  780. 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),
  781. 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),
  782. 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),
  783. 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),
  784. }, .3, false)
  785. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0)), 0.3)
  786. end
  787. for i = 0, 1, 0.13 do
  788. swait()
  789. PlayAnimationFromTable({
  790. 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),
  791. 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),
  792. 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),
  793. 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),
  794. 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),
  795. 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),
  796. }, .3, false)
  797. end
  798. attack = false
  799. end
  800.  
  801. --[[Attacks]]--
  802.  
  803. mouse.Button1Down:connect(function()
  804. if attack == false and attacktype == 1 then
  805. attackone()
  806. end
  807. end)
  808.  
  809. mouse.KeyDown:connect(function(k)
  810. k = k:lower()
  811. if attack == false and k == '' then
  812.  
  813. end
  814. end)
  815.  
  816. while true do
  817. swait()
  818. for i, v in pairs(Character:GetChildren()) do
  819. if v:IsA("Part") then
  820. v.Material = "SmoothPlastic"
  821. elseif v:IsA("Accessory") then
  822. v:WaitForChild("Handle").Material = "SmoothPlastic"
  823. end
  824. end
  825. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  826. velocity = RootPart.Velocity.y
  827. sine = sine + change
  828. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  829. if equipped == true or equipped == false then
  830. if RootPart.Velocity.y > 1 and hit == nil then
  831. Anim = "Jump"
  832. if attack == false then
  833. PlayAnimationFromTable({
  834. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  835. 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),
  836. 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),
  837. 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),
  838. 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),
  839. 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),
  840. }, .3, false)
  841. end
  842. elseif RootPart.Velocity.y < -1 and hit == nil then
  843. Anim = "Fall"
  844. if attack == false then
  845. PlayAnimationFromTable({
  846. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  847. 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),
  848. 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),
  849. 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),
  850. 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),
  851. 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),
  852. }, .3, false)
  853. end
  854. elseif Torsovelocity < 1 and hit ~= nil then
  855. Anim = "Idle"
  856. if attack == false then
  857. change = 1
  858. PlayAnimationFromTable({
  859. 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),
  860. 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),
  861. 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),
  862. 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),
  863. 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),
  864. 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),
  865. }, .3, false)
  866. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-20), math.rad(0)), 0.3)
  867. end
  868. elseif Torsovelocity > 2 and hit ~= nil then
  869. Anim = "Walk"
  870. if attack == false then
  871. change = 3
  872. PlayAnimationFromTable({
  873. 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),
  874. 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),
  875. 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),
  876. 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),
  877. 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)),
  878. 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)),
  879. }, .3, false)
  880. FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
  881. end
  882. end
  883. end
  884. if 0 < #Effects then
  885. for e = 1, #Effects do
  886. if Effects[e] ~= nil then
  887. local Thing = Effects[e]
  888. if Thing ~= nil then
  889. local Part = Thing[1]
  890. local Mode = Thing[2]
  891. local Delay = Thing[3]
  892. local IncX = Thing[4]
  893. local IncY = Thing[5]
  894. local IncZ = Thing[6]
  895. if Thing[2] == "Shoot" then
  896. local Look = Thing[1]
  897. local hit, pos = rayCast(Thing[4], Look, 15, Character)
  898. local mag = (Thing[4] - pos).magnitude
  899. Thing[9] = Thing[9] + 0.5
  900. Thing[5] = Thing[5] + 0.2
  901. Thing[6] = Thing[6] + 0.2
  902. 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)
  903. Thing[4] = Thing[4] + Look * 15
  904. Thing[3] = Thing[3] - 1
  905. if hit ~= nil then
  906. Thing[3] = 0
  907. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  908. ref.Anchored = true
  909. ref.CFrame = CFrame.new(pos)
  910. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
  911. CFuncs["Sound"].Create("rbxassetid://315748949", ref, 1, 1.1)
  912. game:GetService("Debris"):AddItem(ref, 1)
  913. end
  914. if Thing[3] <= 0 then
  915. table.remove(Effects, e)
  916. end
  917. end
  918. do
  919. if Thing[2] == "Shoot2" then
  920. local Look = Thing[1]
  921. local hit, pos = rayCast(Thing[4], Look, 3, Character)
  922. local mag = (Thing[4] - pos).magnitude
  923. Thing[9] = Thing[9] + 0.5
  924. Thing[5] = Thing[5] + 0.2
  925. Thing[6] = Thing[6] + 0.2
  926. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new((Thing[4] + pos) / 2, pos), 25, 25, 25, -5, -5, -5, 0.2)
  927. Thing[4] = Thing[4] + Look * 3
  928. Thing[3] = Thing[3] + 5
  929. if hit ~= nil then
  930. Thing[3] = 0
  931. ref = CFuncs["Part"].Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
  932. ref.Anchored = true
  933. ref.CFrame = CFrame.new(pos)
  934. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 25, 25, 25, 5, 5, 5, 0.01)
  935. Effects["Sphere"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01)
  936. Effects["Block"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 10, 10, 10, 15, 15, 15, 0.01, 1)
  937. Effects["Wave"].Create(BrickColor.new("New Yeller"), CFrame.new(pos), 2, 2, 2, 3, 3, 3, 0.01)
  938. CFuncs["Sound"].Create("rbxassetid://203691837", ref, 1, .3)
  939. CFuncs["Sound"].Create("rbxassetid://203691885", ref, 1, .9)
  940. CFuncs["Sound"].Create("rbxassetid://184718741", ref, 1, .9)
  941. local e = Instance.new("Explosion", ref)
  942. e.Position = ref.Position
  943. e.BlastRadius = 400
  944. e.DestroyJointRadiusPercent = 20
  945. e.Visible = false
  946. e.ExplosionType = "CratersAndDebris"
  947. game:GetService("Debris"):AddItem(ref, 10)
  948. end
  949. if Thing[3] <= 0 then
  950. table.remove(Effects, e)
  951. end
  952. end
  953. do
  954. do
  955. if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "showDamage" and Thing[2] ~= "Shoot2" then
  956. if Thing[1].Transparency <= 1 then
  957. if Thing[2] == "Block1" then
  958. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  959. Mesh = Thing[7]
  960. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  961. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  962. else
  963. if Thing[2] == "Block2" then
  964. Thing[1].CFrame = Thing[1].CFrame
  965. Mesh = Thing[7]
  966. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  967. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  968. else
  969. if Thing[2] == "Block3" then
  970. Thing[8].C0 = CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * Thing[9]
  971. Mesh = Thing[7]
  972. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  973. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  974. else
  975. if Thing[2] == "Cylinder" then
  976. Mesh = Thing[7]
  977. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  978. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  979. else
  980. if Thing[2] == "Cylinder2" then
  981. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, Thing[8], 0)
  982. Mesh = Thing[7]
  983. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  984. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  985. else
  986. if Thing[2] == "Blood" then
  987. Mesh = Thing[7]
  988. Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
  989. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  990. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  991. else
  992. if Thing[2] == "Elec" then
  993. Mesh = Thing[10]
  994. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  995. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  996. else
  997. if Thing[2] == "Disappear" then
  998. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  999. end
  1000. end
  1001. end
  1002. end
  1003. end
  1004. end
  1005. end
  1006. end
  1007. else
  1008. Part.Parent = nil
  1009. table.remove(Effects, e)
  1010. end
  1011. end
  1012. end
  1013. end
  1014. end
  1015. end
  1016. end
  1017. end
  1018. end
  1019. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement