Advertisement
gecksad

Untitled

Dec 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. wait(1 / 60)
  3. Effects = { }
  4. local Player = game.Players.localPlayer
  5. local Character = Player.Character
  6. local Humanoid = Character.Humanoid
  7. local char = Player.Character
  8. local mouse = Player:GetMouse()
  9. local m = Instance.new('Model', Character)
  10. m.Name = "WeaponModel"
  11. local LeftArm = Character["Left Arm"]
  12. local RightArm = Character["Right Arm"]
  13. local LeftLeg = Character["Left Leg"]
  14. local RightLeg = Character["Right Leg"]
  15. local Head = Character.Head
  16. local Torso = Character.Torso
  17. local cam = game.Workspace.CurrentCamera
  18. local RootPart = Character.HumanoidRootPart
  19. local RootJoint = RootPart.RootJoint
  20. local equipped = false
  21. local attack = false
  22. local Anim = 'Idle'
  23. local idle = 0
  24. local attacktype = 1
  25. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  26. local velocity = RootPart.Velocity.y
  27. local sine = 0
  28. local change = 1
  29. local FPS = 0
  30. local grabbed = false
  31. local cn = CFrame.new
  32. local mr = math.rad
  33. local angles = CFrame.Angles
  34. local ud = UDim2.new
  35. local c3 = Color3.new
  36.  
  37. Humanoid.Animator:Destroy()
  38.  
  39. Character.Animate:Destroy()
  40.  
  41. --[[Credits to SazErenos for his Artificial Heartbeat]]--
  42.  
  43. ArtificialHB = Instance.new("BindableEvent", script)
  44. ArtificialHB.Name = "Heartbeat"
  45.  
  46. script:WaitForChild("Heartbeat")
  47.  
  48. frame = 1 / 30
  49. tf = 0
  50. allowframeloss = false
  51. tossremainder = false
  52. lastframe = tick()
  53. script.Heartbeat:Fire()
  54.  
  55. game:GetService("RunService").Heartbeat:connect(function(s, p)
  56. tf = tf + s
  57. if tf >= frame then
  58. if allowframeloss then
  59. script.Heartbeat:Fire()
  60. lastframe = tick()
  61. else
  62. for i = 1, math.floor(tf / frame) do
  63. script.Heartbeat:Fire()
  64. end
  65. lastframe = tick()
  66. end
  67. if tossremainder then
  68. tf = 0
  69. else
  70. tf = tf - frame * math.floor(tf / frame)
  71. end
  72. end
  73. end)
  74. --------------------------------------
  75. plr=game:service'Players'.LocalPlayer
  76. chr=plr.Character
  77. local ms = plr:GetMouse()
  78. CV="Bright red"
  79.  
  80. local txt = Instance.new("BillboardGui", chr)
  81. txt.Adornee = chr.Head
  82. txt.Name = "_status"
  83. txt.Size = UDim2.new(4, 0, 2.5, 0)
  84. txt.StudsOffset = Vector3.new(-4, 2, 0)
  85. local text = Instance.new("TextLabel", txt)
  86. text.Size = UDim2.new(3, 0, 0.5, 0)
  87. text.FontSize = "Size24"
  88. text.TextScaled = true
  89. text.TextTransparency = 0
  90. text.BackgroundTransparency = 1
  91. text.TextTransparency = 0
  92. text.TextStrokeTransparency = 0
  93. text.Font = "Garamond"
  94. text.TextStrokeColor3 = Color3.new(128,128,128)
  95. text.Text = "Dragonborn"
  96. --------------------------------------
  97. plr=game:service'Players'.LocalPlayer
  98. chr=plr.Character
  99. local ms = plr:GetMouse()
  100. CV="Bright red"
  101.  
  102. local txt = Instance.new("BillboardGui", chr)
  103. txt.Adornee = chr.Head
  104. txt.Name = "_status"
  105. txt.Size = UDim2.new(4, 0, 2.5, 0)
  106. txt.StudsOffset = Vector3.new(-4, 1.5, 0)
  107. local text = Instance.new("TextLabel", txt)
  108. text.Size = UDim2.new(3, 0, 0.5, 0)
  109. text.FontSize = "Size24"
  110. text.TextScaled = false
  111. text.TextTransparency = 0
  112. text.BackgroundTransparency = 1
  113. text.TextTransparency = 0
  114. text.TextStrokeTransparency = 0
  115. text.Font = "Garamond"
  116. text.TextStrokeColor3 = Color3.new(128,128,128)
  117. text.Text = "by bannaboy43"
  118. ---------------------shout---------------------------------------------------------
  119. local plr = game:GetService"Players".LocalPlayer;local mouse = plr:GetMouse()
  120. repeat wait() until plr.Character;local char = plr.Character;local hr = char:WaitForChild"HumanoidRootPart";local plrHum;repeat wait()plrHum = char:FindFirstChildWhichIsA"Humanoid" until plrHum~=nil;local keydown = false;local playing = false;rt = 0 ;m = Instance.new"Part";meshID = 'rbxassetid://1471350128' ;gc = game.Workspace.CurrentCamera;BLAST_FORCE = 2000
  121. local s;fire = function()local pos = hr.CFrame + hr.CFrame.lookVector *5 + Vector3.new(0,1.5,0)for i =1,1 do local m2 = m:Clone();local mesh = Instance.new("FileMesh")mesh.MeshId = 'rbxassetid://1471350128';mesh.Parent= m2;m2.Size = Vector3.new(5,5,.5);local bv = Instance.new'BodyVelocity';
  122. bv.MaxForce= Vector3.new(math.huge,math.huge,math.huge);m2.CFrame = pos;bv.Velocity = m2.CFrame.lookVector *180;m2.Locked = true;m2.CanCollide = false;m2.Anchored = false;bv.Parent = m2;m2.Parent = workspace;coroutine.resume(coroutine.create(function()for a =1,5 do m2.Size = Vector3.new(a*2,a*2,.5)mesh.Scale = Vector3.new(a*2,a*2,.5)wait();end;end));m2.Touched:connect(function(hit)
  123. if hit.Name ~= "Baseplate" and hit.Name ~="Base" then
  124. hit.Anchored = false;hit:BreakJoints()local blastForce = Instance.new('BodyForce', hit) blastForce.force = m2.CFrame.lookVector * BLAST_FORCE * hit:GetMass()
  125. game.Debris:AddItem(blastForce,.1)end;end)wait()game.Debris:AddItem(m2,2)end;--[[GETOUT OF ME CODE M8]]end;deb = function ()hr.Anchored = false;wait(rt)keydown = false end;mouse.KeyDown:connect(function(key)key = key:lower()if key == 't' and keydown == false then local m2 =m:Clone()s=nil;m2.Locked = true;m2.Size = Vector3.new(5,5,.5)keydown = true;while keydown == true do hr.Anchored = true
  126. hr.CFrame = CFrame.new(hr.Position,mouse.Hit.p)m2.Size = m2.Size + Vector3.new(.5,.5,0)
  127. m2.CFrame = hr.CFrame+ hr.CFrame.lookVector *2;s = m2.Size;wait()end;game.Debris:AddItem(m2,0.11)end;end)
  128. ku = function(key)key = key:lower()if key == 't' and keydown ~= nil then local s = Instance.new("Sound");s.SoundId = 'rbxassetid://149576324';s.Volume =4;s.Parent = workspace s:Play();wait(1)coroutine.resume(coroutine.create(fire))keydown = nil;deb();end;end;mouse.KeyUp:connect(ku)
  129. ----------------------Clothes-------------------------------
  130. --[Quicksilver edit by Bannaboy43 (only make edits cant stcipt ihml if this gets leaked tell people to send me scripts to make edits)
  131. wait(1 / 60)
  132. p = game.Players.LocalPlayer
  133. char = p.Character
  134. torso = char.Torso
  135. neck = char.Torso.Neck
  136. hum = char.Humanoid
  137.  
  138. wait()
  139. hum.Health =hum.MaxHealth
  140. char.Head.face.Texture = "rbxassetid://166951215"
  141.  
  142.  
  143.  
  144. z = Instance.new("Sound", char)
  145. z.SoundId = "rbxassetid://168474998" -- Put Music ID Here.
  146. z.Looped = true
  147. z.Volume = 2
  148. wait(.1)
  149. z:Play()
  150.  
  151.  
  152. Hat = Instance.new("Model")
  153. Hat.Parent = char
  154. Hat.Name = "Hat"
  155. rh = Instance.new("Part")
  156. rh.Parent = Hat
  157. rh.BrickColor = BrickColor.new("Brown")
  158. rh.Locked = true
  159. rh.CanCollide = false
  160. mesh = Instance.new("SpecialMesh")
  161. rh.formFactor = "Symmetric"
  162. mesh.MeshType = "FileMesh"
  163. mesh.MeshId = "rbxassetid://323386572"
  164. mesh.Parent = rh
  165. local weld = Instance.new("Weld")
  166. weld.Parent = rh
  167. weld.Part0 = rh
  168. weld.Part1 =char.Head
  169. weld.C0 = CFrame.new(0,.16,.35)*CFrame.Angles(0, 0, 0)
  170. mesh.Scale = Vector3.new(1,1,1)
  171. ----------------------------------------------------
  172. -------------Head---------------------------------
  173. char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
  174.  
  175. Head = Instance.new("Part", char)
  176. Head.Size = Vector3.new(1,1,1)
  177. Headmesh = Instance.new("SpecialMesh", Head)
  178. Headmesh.MeshId = "rbxassetid://2264333"
  179. Headmesh.Scale = Vector3.new(0.417, 0.35, 0.36)
  180. Headmesh.TextureId = "rbxassetid://3770870"
  181. Head.Transparency = 0
  182. Head.CanCollide = false
  183. Head.Name = "plrHead"
  184. Head.Anchored = false
  185. Head.BrickColor = BrickColor.new("Really black")
  186. Weld = Instance.new("Weld", char)
  187. Weld.Part0 = char["Head"]
  188. Weld.Part1 = Head
  189. Weld.C1 = CFrame.new(0,-.5,0)*CFrame.Angles(0,(0),0)
  190. -------------Shield---------------------------------
  191. char:FindFirstChildOfClass'Humanoid'.JumpPower = 100
  192.  
  193. Shield = Instance.new("Part", char)
  194. Shield.Size = Vector3.new(1,.4,.4)
  195. Shieldmesh = Instance.new("SpecialMesh", Shield)
  196. Shieldmesh.MeshId = "rbxassetid://467133867"
  197. Shieldmesh.Scale = Vector3.new(0.06, 0.06, 0.06)
  198. Shieldmesh.TextureId = "rbxassetid://467133879"
  199. Shield.Transparency = 0
  200. Shield.CanCollide = false
  201. Shield.Name = "plrShield"
  202. Shield.Anchored = false
  203. Shield.BrickColor = BrickColor.new("Really black")
  204. Weld = Instance.new("Weld", char)
  205. Weld.Part0 = char["Left Arm"]
  206. Weld.Part1 = Shield
  207. Weld.C1 = CFrame.new(0,.0,.5)*CFrame.Angles(0,(-80.5),110)
  208. -----------------------tail----------------------
  209. tail = Instance.new("Part", char)
  210. tail.Size = Vector3.new(.5,.5,.5)
  211. tailmesh = Instance.new("SpecialMesh", tail)
  212. tailmesh.MeshId = "rbxassetid://591111070"
  213. tailmesh.Scale = Vector3.new(.005,.0051,.0071)
  214. tailmesh.TextureId = "rbxassetid://591111076"
  215. tail.Transparency = 0
  216. tail.CanCollide = false
  217. tail.Name = "plrtail"
  218. tail.Anchored = false
  219. tail.BrickColor = BrickColor.new("Really black")
  220. Weld = Instance.new("Weld", char)
  221. Weld.Part0 = char["Right Arm"]
  222. Weld.Part1 = tail
  223. Weld.C1 = CFrame.new(1,-2,.2)*CFrame.Angles(90,(0),80)
  224. for _, a in pairs(char:children()) do
  225. if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Pants' or a:IsA'Shirt' then
  226. a:Destroy()
  227. end
  228. end
  229. local s = Instance.new('Shirt', char)
  230. s.ShirtTemplate = "rbxassetid://65784880"
  231. local p = Instance.new('Pants', char)
  232. p.PantsTemplate = "rbxassetid://65830858"
  233.  
  234. Instance.new("ForceField",char).Visible = false
  235. local poo = Instance.new("IntValue",Character)
  236. poo.Name = "haha nope"
  237. char.Humanoid.MaxHealth = math.huge
  238. wait()
  239. char.Humanoid.Health = math.huge
  240. Instance.new("ForceField",char).Visible = false
  241.  
  242.  
  243. function swait(num)
  244. if num == 0 or num == nil then
  245. ArtificialHB.Event:wait()
  246. else
  247. for i = 0, num do
  248. ArtificialHB.Event:wait()
  249. end
  250. end
  251. end
  252.  
  253. local RbxUtility = LoadLibrary("RbxUtility")
  254. local Create = RbxUtility.Create
  255.  
  256. --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]--
  257.  
  258. function RemoveOutlines(part)
  259. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  260. end
  261.  
  262. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  263. local Part = Create("Part"){
  264. Parent = Parent,
  265. Reflectance = Reflectance,
  266. Transparency = Transparency,
  267. CanCollide = false,
  268. Locked = true,
  269. BrickColor = BrickColor.new(tostring(BColor)),
  270. Name = Name,
  271. Size = Size,
  272. Material = Material,
  273. }
  274. RemoveOutlines(Part)
  275. return Part
  276. end
  277.  
  278. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279. local Msh = Create(Mesh){
  280. Parent = Part,
  281. Offset = OffSet,
  282. Scale = Scale,
  283. }
  284. if Mesh == "SpecialMesh" then
  285. Msh.MeshType = MeshType
  286. Msh.MeshId = MeshId
  287. end
  288. return Msh
  289. end
  290.  
  291. function CreateWeld(Parent, Part0, Part1, C0, C1)
  292. local Weld = Create("Weld"){
  293. Parent = Parent,
  294. Part0 = Part0,
  295. Part1 = Part1,
  296. C0 = C0,
  297. C1 = C1,
  298. }
  299. return Weld
  300. end
  301.  
  302. function CreateBillBoardGui(Img, Pos, Siz)
  303. local billpar = Create("Part"){
  304. Transparency = 1,
  305. Size = Vector3.new(1, 1, 1),
  306. Anchored = true,
  307. CanCollide = false,
  308. CFrame = CFrame.new(Pos),
  309. Name = "BillboardGuiPart",
  310. }
  311. local bill = Create("BillboardGui"){
  312. Parent = billpar,
  313. Adornee = billpar,
  314. Size = UDim2.new(1, 0, 1, 0),
  315. SizeOffset = Vector2.new(Siz, Siz),
  316. }
  317. local d = Create("ImageLabel"){
  318. Parent = bill,
  319. BackgroundTransparency = 1,
  320. Size = UDim2.new(1, 0, 1, 0),
  321. Image = Img,
  322. }
  323. return billpar
  324. end
  325.  
  326. function rayCast(Position, Direction, Range, Ignore)
  327. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  328. end
  329.  
  330. function CreateSound(id, par, vol, pit)
  331. coroutine.resume(coroutine.create(function()
  332. local S = Create("Sound"){
  333. Volume = vol,
  334. Pitch = pit or 1,
  335. SoundId = id,
  336. Parent = par or workspace,
  337. }
  338. swait()
  339. S:play()
  340. game:GetService("Debris"):AddItem(S, 6)
  341. end))
  342. end
  343.  
  344. local function GetNearest(obj, distance)
  345. local last, lastx = distance + 1
  346. for i, v in pairs(workspace:GetChildren()) do
  347. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  348. local t = v.Torso
  349. local dist = (t.Position - obj.Position).magnitude
  350. if dist <= distance then
  351. if dist < last then
  352. last = dist
  353. lastx = v
  354. end
  355. end
  356. end
  357. end
  358. return lastx
  359. end
  360.  
  361. --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]--
  362.  
  363. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  364. for i, v in pairs(hit:GetChildren()) do
  365. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  366. local find = v:FindFirstChild("DebounceHit")
  367. if not find then
  368. if v.Parent:findFirstChild("Head") then
  369. local BillG = Create("BillboardGui"){
  370. Parent = v.Parent.Head,
  371. Size = UDim2.new(1, 0, 1, 0),
  372. Adornee = v.Parent.Head,
  373. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  374. }
  375. local TL = Create("TextLabel"){
  376. Parent = BillG,
  377. Size = UDim2.new(3, 3, 3, 3),
  378. BackgroundTransparency = 1,
  379. Text = tostring(damage).."-",
  380. TextColor3 = Color1.Color,
  381. TextStrokeColor3 = Color2.Color,
  382. TextStrokeTransparency = 0,
  383. TextXAlignment = Enum.TextXAlignment.Center,
  384. TextYAlignment = Enum.TextYAlignment.Center,
  385. FontSize = Enum.FontSize.Size18,
  386. Font = "ArialBold",
  387. }
  388. coroutine.resume(coroutine.create(function()
  389. swait(1)
  390. for i = 0, 1, .1 do
  391. swait(.1)
  392. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  393. end
  394. BillG:Destroy()
  395. end))
  396. end
  397. v.Health = v.Health - damage
  398. local bool = Create("BoolValue"){
  399. Parent = v,
  400. Name = "DebounceHit",
  401. }
  402. if HSound ~= nil and HPitch ~= nil then
  403. CreateSound(HSound, hit, 1, HPitch)
  404. end
  405. game:GetService("Debris"):AddItem(bool, cooldown)
  406. end
  407. end
  408. end
  409. end
  410.  
  411. function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch)
  412. for _, c in pairs(workspace:children()) do
  413. local hum = c:findFirstChild("Humanoid")
  414. if hum ~= nil then
  415. local head = c:findFirstChild("Torso")
  416. if head ~= nil then
  417. local targ = head.Position - Part.Position
  418. local mag = targ.magnitude
  419. if mag <= magni and c.Name ~= Player.Name then
  420. Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch)
  421. end
  422. end
  423. end
  424. end
  425. end
  426.  
  427. Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.247690827, 0.247690827, 1.3622998))
  428. HandleWeld = CreateWeld(m, RightArm, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.969390154, 0.0237579346, 0.0184631348, 5.57207386e-007, 1.00000489, 3.67389002e-005, -1.00000536, 5.56462226e-007, 2.02237861e-005, 2.02239025e-005, -3.67386638e-005, 1.00000536))
  429. CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.99999994, 1))
  430. FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(0.247690827, 0.247690827, 0.866918027))
  431. FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 2.33122311e-012, -2.54655963e-010, -2.33122289e-012, 1, 1.36422748e-010, 2.54655963e-010, -1.36422748e-010, 1))
  432. BladePivotConnectorL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePivotConnectorL", Vector3.new(0.371536285, 0.247690827, 0.371536225))
  433. BladePivotConnectorLweld = CreateWeld(m, FakeHandle, BladePivotConnectorL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.308720708, -0.0040512085, 3.4677887, -1, 1.3214737e-005, 6.75022966e-005, -1.31907673e-005, -1, 0.000355066528, 6.75069823e-005, 0.000355065626, 1))
  434. CreateMesh("CylinderMesh", BladePivotConnectorL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
  435. BladePivotConnectorR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePivotConnectorR", Vector3.new(0.371536285, 0.247690827, 0.371536225))
  436. BladePivotConnectorRweld = CreateWeld(m, FakeHandle, BladePivotConnectorR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.310429096, -0.00403594971, 3.46793175, -1, 1.32228588e-005, 6.72361348e-005, -1.31989655e-005, -1, 0.000355331489, 6.72408278e-005, 0.000355330587, 1))
  437. CreateMesh("CylinderMesh", BladePivotConnectorR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.5, 1))
  438. BladePivotHandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Handle", Vector3.new(0.371536285, 0.247690827, 0.371536225))
  439. BladePivotHandleRWeld = CreateWeld(m, BladePivotConnectorR, BladePivotHandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.64916229e-005, -0.000183105469, 0.000383377075, 1, 4.25061514e-011, 4.30332108e-008, -4.25060057e-011, 1, -3.40511042e-009, -4.30332108e-008, 3.40511042e-009, 1))
  440. HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "HitboxR", Vector3.new(1.6099906, 0.247690886, 7.05918884))
  441. HitboxRweld = CreateWeld(m, BladePivotHandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.492876291, -0.00238800049, 2.10687065, -0.999999881, -9.14376017e-007, -0.000473333028, 5.87026818e-007, -0.999999762, 0.000691582798, -0.000473333552, 0.000691582507, 0.999999642))
  442. CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.50000006, 1))
  443.  
  444. numLerp = function(start, goal, alpha)
  445. return (((goal - start) * alpha) + start)
  446. end
  447.  
  448. CFrameZero = function()
  449. return CFrame.new(Vector3.new())
  450. end
  451.  
  452. CFAngles = function(Vector)
  453. return CFrame.Angles(math.rad(Vector.x), math.rad(Vector.y), math.rad(Vector.z))
  454. end
  455.  
  456. AnimStat = {
  457. lerpSpeed = .2;
  458. }
  459.  
  460. Joints = {
  461. Character.HumanoidRootPart.RootJoint;
  462. Character.Torso.Neck;
  463. Character.Torso['Right Shoulder'];
  464. Character.Torso['Left Shoulder'];
  465. Character.Torso['Right Hip'];
  466. Character.Torso['Left Hip'];
  467. FakeHandleWeld;
  468. BladePivotHandleRWeld;
  469. BladePivotHandleLWeld;
  470. }
  471.  
  472. JointTargets = {
  473. CFrameZero();
  474. CFrameZero();
  475. CFrameZero();
  476. CFrameZero();
  477. CFrameZero();
  478. CFrameZero();
  479. CFrameZero();
  480. CFrameZero();
  481. CFrameZero();
  482. }
  483.  
  484. setJointCFrames = function(table)
  485. for i = 1, #table do
  486. JointTargets[i] = table[i]
  487. end
  488. end
  489.  
  490. setLerp = function(speed)
  491. AnimStat.lerpSpeed = speed
  492. end
  493.  
  494. for i, v in pairs (Joints) do
  495. v.C1 = CFrameZero()
  496. end
  497.  
  498. --[[ Credits to Fenrier for the Effect Functions. ]]--
  499.  
  500. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  501. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  502. prt.Anchored = true
  503. prt.CFrame = cframe
  504. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  505. game:GetService("Debris"):AddItem(prt, 10)
  506. if Type == 1 or Type == nil then
  507. table.insert(Effects, {
  508. prt,
  509. "Block1",
  510. delay,
  511. x3,
  512. y3,
  513. z3,
  514. msh
  515. })
  516. elseif Type == 2 then
  517. table.insert(Effects, {
  518. prt,
  519. "Block2",
  520. delay,
  521. x3,
  522. y3,
  523. z3,
  524. msh
  525. })
  526. end
  527. end
  528.  
  529. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  530. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  531. prt.Anchored = true
  532. prt.CFrame = cframe
  533. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  534. game:GetService("Debris"):AddItem(prt, 10)
  535. table.insert(Effects, {
  536. prt,
  537. "Cylinder",
  538. delay,
  539. x3,
  540. y3,
  541. z3,
  542. msh
  543. })
  544. end
  545.  
  546. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  547. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  548. prt.Anchored = true
  549. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  550. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  551. game:GetService("Debris"):AddItem(prt, 10)
  552. table.insert(Effects, {
  553. prt,
  554. "Cylinder",
  555. delay,
  556. x3,
  557. y3,
  558. z3,
  559. msh
  560. })
  561. end
  562.  
  563. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  564. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  565. prt.Anchored = true
  566. prt.CFrame = cframe
  567. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  568. game:GetService("Debris"):AddItem(prt, 10)
  569. table.insert(Effects, {
  570. prt,
  571. "Cylinder",
  572. delay,
  573. x3,
  574. y3,
  575. z3,
  576. msh
  577. })
  578. end
  579.  
  580. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  581. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  582. prt.Anchored = true
  583. prt.CFrame = cframe
  584. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  585. game:GetService("Debris"):AddItem(prt, 10)
  586. table.insert(Effects, {
  587. prt,
  588. "Cylinder",
  589. delay,
  590. x3,
  591. y3,
  592. z3,
  593. msh
  594. })
  595. end
  596.  
  597. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  598. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  599. prt.Anchored = true
  600. prt.CFrame = cframe
  601. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  602. game:GetService("Debris"):AddItem(prt, 10)
  603. table.insert(Effects, {
  604. prt,
  605. "Cylinder",
  606. delay,
  607. x3,
  608. y3,
  609. z3,
  610. msh
  611. })
  612. end
  613.  
  614. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  615. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  616. prt.Anchored = true
  617. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  618. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  619. local num = math.random(10, 50) / 1000
  620. game:GetService("Debris"):AddItem(prt, 10)
  621. table.insert(Effects, {
  622. prt,
  623. "Shatter",
  624. num,
  625. prt.CFrame,
  626. math.random() - math.random(),
  627. 0,
  628. math.random(50, 100) / 100
  629. })
  630. end
  631.  
  632. function SlashEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  633. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(.5, .5, .5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  634. prt.Anchored = true
  635. prt.CFrame = cframe
  636. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=448386996", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  637. game:GetService("Debris"):AddItem(prt, 2)
  638. coroutine.resume(coroutine.create(function(Part, Mesh, num)
  639. for i = 0, 1, delay do
  640. swait()
  641. Part.Transparency = i
  642. Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3)
  643. end
  644. Part.Parent = nil
  645. end), prt, msh, (math.random(0, 1) + math.random()) / 5)
  646. end
  647.  
  648. --[[ Attack Functions ]]--
  649.  
  650. function attackone()
  651. attack = true
  652. con1 = HitboxR.Touched:connect(function(hit)
  653.  
  654. Damage(hit.Parent, math.random(70, 30), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
  655. con1:disconnect()
  656. end)
  657. setLerp(.4)
  658. setJointCFrames({
  659. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -55, 0));
  660. CFrame.new(Vector3.new(-0.016, 1.535, -0.152)) * CFAngles(Vector3.new(-6.792, 46.287, 3.09));
  661. CFrame.new(Vector3.new(1.897, 0.454, 0.282)) * CFAngles(Vector3.new(3.21, -25.942, 75.245));
  662. CFrame.new(Vector3.new(-1.695, 0.525, -0.692)) * CFAngles(Vector3.new(55.331, -44.297, -39.112));
  663. CFrame.new(Vector3.new(0.694, -2.013, 0.178)) * CFAngles(Vector3.new(-15.703, 22.753, 3.174));
  664. CFrame.new(Vector3.new(-0.729, -1.978, -0.179)) * CFAngles(Vector3.new(-3.654, 43.988, -4.411));
  665. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -180, 0));
  666. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  667. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  668. })
  669. swait(8)
  670. CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
  671. setLerp(.4)
  672. setJointCFrames({
  673. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
  674. CFrame.new(Vector3.new(0.055, 1.532, -0.139)) * CFAngles(Vector3.new(-14.049, -49.103, -7.262));
  675. CFrame.new(Vector3.new(1.645, 0.377, -0.714)) * CFAngles(Vector3.new(-23.518, 65.061, 99.396));
  676. CFrame.new(Vector3.new(-1.753, 0.235, 0.263)) * CFAngles(Vector3.new(-5.081, 26.84, -51.509));
  677. CFrame.new(Vector3.new(0.673, -2.02, 0.012)) * CFAngles(Vector3.new(-4.758, -45.926, -3.011));
  678. CFrame.new(Vector3.new(-0.758, -1.974, 0.079)) * CFAngles(Vector3.new(-3.046, -29.709, -5.439));
  679. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 10, 0));
  680. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  681. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  682. })
  683. swait(8)
  684. con1:disconnect()
  685. attack = false
  686. end
  687.  
  688. function attacktwo()
  689. attack = true
  690. setLerp(.4)
  691. con1 = HitboxR.Touched:connect(function(hit)
  692.  
  693. Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
  694. con1:disconnect()
  695. end)
  696. setJointCFrames({
  697. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
  698. CFrame.new(Vector3.new(0.045, 1.538, -0.134)) * CFAngles(Vector3.new(-14.279, -47.198, -11.634));
  699. CFrame.new(Vector3.new(1.233, 0.062, -0.828)) * CFAngles(Vector3.new(156.018, 77.026, -95.941));
  700. CFrame.new(Vector3.new(-1.734, 0.437, 0.461)) * CFAngles(Vector3.new(-12.866, 40.384, -62.165));
  701. CFrame.new(Vector3.new(0.733, -2.017, -0.047)) * CFAngles(Vector3.new(2.611, -45.958, 2.288));
  702. CFrame.new(Vector3.new(-0.725, -1.977, 0.098)) * CFAngles(Vector3.new(-3.046, -29.709, -5.439));
  703. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 10, 0));
  704. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  705. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  706. })
  707. swait(8)
  708. CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, 0.8)
  709. setLerp(.4)
  710. setJointCFrames({
  711. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -80, 0));
  712. CFrame.new(Vector3.new(-0.004, 1.538, -0.131)) * CFAngles(Vector3.new(-13.606, 44.565, 8.582));
  713. CFrame.new(Vector3.new(1.647, 0.805, 0.363)) * CFAngles(Vector3.new(-1.54, -23.757, 110.54));
  714. CFrame.new(Vector3.new(-1.811, 0.399, -0.458)) * CFAngles(Vector3.new(18.743, -30.056, -65.737));
  715. CFrame.new(Vector3.new(0.526, -2.02, -0.187)) * CFAngles(Vector3.new(0.776, 6.763, 1.602));
  716. CFrame.new(Vector3.new(-0.87, -1.965, -0.04)) * CFAngles(Vector3.new(4.644, 46.466, -6.865));
  717. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 50, 0));
  718. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  719. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  720. })
  721. swait(8)
  722. con1:disconnect()
  723. attack = false
  724. end
  725.  
  726. function attackthree()
  727. attack = true
  728. con1 = HitboxR.Touched:connect(function(hit)
  729.  
  730. Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
  731. con1:disconnect()
  732. end)
  733. setLerp(.4)
  734. setJointCFrames({
  735. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -40, 0));
  736. CFrame.new(Vector3.new(-0.037, 1.497, 0.024)) * CFAngles(Vector3.new(-3.139, 26.26, 0));
  737. CFrame.new(Vector3.new(1.373, 1.389, 0.289)) * CFAngles(Vector3.new(-160.264, -19.457, -5.426));
  738. CFrame.new(Vector3.new(-0.722, 0.382, -0.902)) * CFAngles(Vector3.new(81.391, -9.118, 43.625));
  739. CFrame.new(Vector3.new(0.659, -1.981, 0.222)) * CFAngles(Vector3.new(-13.126, 23.083, 7.411));
  740. CFrame.new(Vector3.new(-0.708, -2.001, -0.268)) * CFAngles(Vector3.new(-3.063, 30.058, -0.495));
  741. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -20, 0));
  742. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  743. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  744. })
  745. swait(8)
  746. CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, 0.5)
  747. setLerp(.5)
  748. setJointCFrames({
  749. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(0, 0, 0));
  750. CFrame.new(Vector3.new(-0.014, 1.49, -0.137)) * CFAngles(Vector3.new(-12.751, -0.538, -1.417));
  751. CFrame.new(Vector3.new(0.925, 0.154, -0.894)) * CFAngles(Vector3.new(57.567, 6.384, -4.734));
  752. CFrame.new(Vector3.new(-1.77, 0.206, 0.357)) * CFAngles(Vector3.new(-45.001, 0, -24.978));
  753. CFrame.new(Vector3.new(0.659, -1.5, 0.392)) * CFAngles(Vector3.new(-21.248, -8.267, 6.821));
  754. CFrame.new(Vector3.new(-0.521, -1.5, -0.295)) * CFAngles(Vector3.new(-3.255, 7.413, -0.432));
  755. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-5, 70, 5));
  756. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  757. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  758. })
  759. swait(8)
  760. con1:disconnect()
  761. attack = false
  762. end
  763.  
  764. function attackfour()
  765. attack = true
  766. con1 = HitboxR.Touched:connect(function(hit)
  767.  
  768. Damage(hit.Parent, math.random(80,200), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
  769. con1:disconnect()
  770. end)
  771. setLerp(.4)
  772. setJointCFrames({
  773. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 80, 0));
  774. CFrame.new(Vector3.new(0.018, 1.492, -0.132)) * CFAngles(Vector3.new(-18.019, -58.875, -16.889));
  775. CFrame.new(Vector3.new(0.925, 0.154, -0.894)) * CFAngles(Vector3.new(158.964, 59.715, -91.349));
  776. CFrame.new(Vector3.new(-1.773, 0.315, 0.248)) * CFAngles(Vector3.new(-45, -0.001, -36.715));
  777. CFrame.new(Vector3.new(0.743, -2.019, -0.029)) * CFAngles(Vector3.new(-0.445, -47.718, 6.45));
  778. CFrame.new(Vector3.new(-0.947, -1.957, 0.19)) * CFAngles(Vector3.new(-42.216, -38.563, -31.271));
  779. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 30, 0));
  780. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  781. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  782. })
  783. swait(8)
  784. CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
  785. setLerp(.4)
  786. setJointCFrames({
  787. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, -80, 0));
  788. CFrame.new(Vector3.new(-0.035, 1.492, -0.137)) * CFAngles(Vector3.new(-11.809, 38.617, 6.104));
  789. CFrame.new(Vector3.new(1.792, 0.699, 0.122)) * CFAngles(Vector3.new(-3.214, -14.186, 98.936));
  790. CFrame.new(Vector3.new(-0.828, 0.513, -0.966)) * CFAngles(Vector3.new(-172.955, -33.64, 103.96));
  791. CFrame.new(Vector3.new(0.827, -1.995, 0.166)) * CFAngles(Vector3.new(-7.088, 23.2, 12.015));
  792. CFrame.new(Vector3.new(-0.669, -1.931, -0.225)) * CFAngles(Vector3.new(-9.979, 41.79, 2.021));
  793. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 50, 0));
  794. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  795. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  796. })
  797. swait(8)
  798. con1:disconnect()
  799. attack = false
  800. end
  801.  
  802. local charge = false
  803.  
  804. local Counter = false
  805.  
  806. function SLAY()
  807. attack = true
  808. Character.Humanoid.WalkSpeed = 5
  809. while true do
  810. swait()
  811. if charge == true then
  812. setLerp(.8)
  813. setJointCFrames({
  814. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  815. CFrame.new(Vector3.new(-0.012, 1.5, 0.01)) * CFAngles(Vector3.new(-0.001, 1.446, 0));
  816. CFrame.new(Vector3.new(1.301, 0.767, -0.661)) * CFAngles(Vector3.new(105.91, 59.1, -6.255));
  817. CFrame.new(Vector3.new(-1.498, 0.012, -0.513)) * CFAngles(Vector3.new(51.137, -7.204, -5.77));
  818. CFrame.new(Vector3.new(0.567, -2.005, 0.316)) * CFAngles(Vector3.new(-21.791, -13.545, 2.883));
  819. CFrame.new(Vector3.new(-0.547, -1.998, -0.177)) * CFAngles(Vector3.new(-0.605, 13.112, -1.803));
  820. CFrame.new(Vector3.new(0, -.2, .2)) * CFAngles(Vector3.new(50, -3, -90));
  821. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  822. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  823. })
  824. elseif charge == false then
  825. break
  826. end
  827. end
  828. con1 = HitboxR.Touched:connect(function(hit)
  829. CreateSound("http://roblox.com/asset/?id=206082273", hit.Parent.Head, 1, 1)
  830. Damage(hit.Parent, math.random(), 0.2, BrickColor.new("Navy blue"), BrickColor.new("Deep orange"), "rbxassetid://199149137" , .7)
  831. for i = 1, 10 do
  832. BreakEffect(BrickColor.new("Really red"), hit.Parent:WaitForChild("Head").CFrame, 0.5, math.random(5, 20), 0.5)
  833. end
  834. con1:disconnect()
  835. end)
  836. if charge == false then
  837. setLerp(.4)
  838. setJointCFrames({
  839. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(20, 0, 0));
  840. CFrame.new(Vector3.new(-0.011, 1.493, -0.041)) * CFAngles(Vector3.new(-10, 0.331, 0));
  841. CFrame.new(Vector3.new(0.579, 1.57, -0.851)) * CFAngles(Vector3.new(147.19, 9.426, -29.255));
  842. CFrame.new(Vector3.new(-0.578, 1.542, -0.913)) * CFAngles(Vector3.new(148.824, -2.845, 30.01));
  843. CFrame.new(Vector3.new(0.567, -2.005, .4)) * CFAngles(Vector3.new(-50, -9.094, 1.886));
  844. CFrame.new(Vector3.new(-0.611, -1.998, .4)) * CFAngles(Vector3.new(-50, 5.328, -4.905));
  845. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-2, -8, 50));
  846. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  847. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  848. })
  849. swait(7)
  850. CreateSound("http://roblox.com/asset/?id=320557563", HitboxR, 1, .7)
  851. CreateSound("http://roblox.com/asset/?id=320557563", HitboxL, 1, .8)
  852. setLerp(.5)
  853. setJointCFrames({
  854. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  855. CFrame.new(Vector3.new(-0.011, 1.509, -0.151)) * CFAngles(Vector3.new(-14.66, 0.331, 0));
  856. CFrame.new(Vector3.new(0.649, 0.02, -0.851)) * CFAngles(Vector3.new(57.19, 9.426, -29.255));
  857. CFrame.new(Vector3.new(-0.648, -0.048, -0.913)) * CFAngles(Vector3.new(58.824, -2.845, 30.01));
  858. CFrame.new(Vector3.new(0.567, -2.005, 0.336)) * CFAngles(Vector3.new(-28.626, -9.094, 1.886));
  859. CFrame.new(Vector3.new(-0.611, -1.998, -0.439)) * CFAngles(Vector3.new(-4.339, 10.351, -5.303));
  860. CFrame.new(Vector3.new(0, 0, -.1)) * CFAngles(Vector3.new(-80, 55, 80));
  861. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  862. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  863. })
  864. swait(5)
  865. end
  866. Counter = false
  867. Humanoid.JumpPower = 50
  868. attack = false
  869. con1:disconnect()
  870. Character.Humanoid.WalkSpeed = 16
  871. end
  872.  
  873. --[[Attacks]]--
  874.  
  875. mouse.Button1Down:connect(function()
  876. if attack == false and attacktype == 1 then
  877. attacktype = 2
  878. attackone()
  879. elseif attack == false and attacktype == 2 then
  880. attacktype = 3
  881. attacktwo()
  882. elseif attack == false and attacktype == 3 then
  883. attacktype = 4
  884. attackthree()
  885. elseif attack == false and attacktype == 4 then
  886. attacktype = 1
  887. attackfour()
  888. end
  889. end)
  890.  
  891. mouse.KeyDown:connect(function(k)
  892. k = k:lower()
  893. if attack == false and k == 'r' and charge == false then
  894. charge = true
  895. SLAY()
  896. end
  897. end)
  898.  
  899. mouse.KeyUp:connect(function(k)
  900. k = k:lower()
  901. if attack == true and k == 'r' and charge == true then
  902. charge = false
  903. end
  904. end)
  905.  
  906. --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]--
  907.  
  908. while true do
  909. swait()
  910. FPS = 1 / game:GetService("RunService").Heartbeat:wait()
  911. local FPSLerp = AnimStat.lerpSpeed / (FPS / 60)
  912. for i = 1, #Joints do
  913. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  914. Joints[i].C1 = CFrameZero()
  915. end
  916. for i, v in pairs(Character:GetChildren()) do
  917. if v:IsA("Part") then
  918. v.Material = "SmoothPlastic"
  919. elseif v:IsA("Hat") then
  920. v:WaitForChild("Handle").Material = "SmoothPlastic"
  921. end
  922. end
  923. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  924. velocity = RootPart.Velocity.y
  925. sine = sine + change
  926. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  927. if equipped == true or equipped == false then
  928. if RootPart.Velocity.y > 1 and hit == nil then
  929. Anim = "Jump"
  930. if attack == false then
  931. setLerp(.3)
  932. setJointCFrames({
  933. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  934. CFrame.new(Vector3.new(-0.007, 1.536, -0.105)) * CFAngles(Vector3.new(-12.077, -3.507, 0));
  935. CFrame.new(Vector3.new(1.771, 0.317, -0.117)) * CFAngles(Vector3.new(10.537, 3.207, 31.739));
  936. CFrame.new(Vector3.new(-1.772, 0.325, -0.278)) * CFAngles(Vector3.new(18.191, -10.425, -37.978));
  937. CFrame.new(Vector3.new(0.515, -1.34, -0.448)) * CFAngles(Vector3.new(-10.97, -6.145, 0.586));
  938. CFrame.new(Vector3.new(-0.522, -1.922, 0.127)) * CFAngles(Vector3.new(-19.103, 6.555, 0.301));
  939. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, 30, 0));
  940. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  941. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  942. })
  943. end
  944. elseif RootPart.Velocity.y < -1 and hit == nil then
  945. Anim = "Fall"
  946. if attack == false then
  947. setLerp(.3)
  948. setJointCFrames({
  949. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  950. CFrame.new(Vector3.new(-0.007, 1.555, -0.309)) * CFAngles(Vector3.new(-21.347, -3.507, 0));
  951. CFrame.new(Vector3.new(1.692, 0.513, 0.379)) * CFAngles(Vector3.new(-4.37, -23.033, 59.089));
  952. CFrame.new(Vector3.new(-1.891, 0.751, -0.161)) * CFAngles(Vector3.new(18.191, -10.425, -67.978));
  953. CFrame.new(Vector3.new(0.53, -1.739, -0.475)) * CFAngles(Vector3.new(4.108, -5.783, 2.161));
  954. CFrame.new(Vector3.new(-0.562, -1.846, -0.263)) * CFAngles(Vector3.new(11.068, 5.824, -3.029));
  955. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, -20, 0));
  956. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  957. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  958. })
  959. end
  960. elseif Torsovelocity < 1 and hit ~= nil then
  961. Anim = "Idle"
  962. if attack == false then
  963. change = 1
  964. setLerp(.3)
  965. setJointCFrames({
  966. CFrame.new(Vector3.new(0, -.1 + .1 * math.sin(sine / 27), 0)) * CFAngles(Vector3.new(0, -40, 0));
  967. CFrame.new(Vector3.new(-0.038, 1.5, 0.016)) * CFAngles(Vector3.new(-2 - 3 * math.sin(sine / 26), 37.43, 0));
  968. CFrame.new(Vector3.new(1.5, 0, -0.161)) * CFAngles(Vector3.new(10.537, 3.207, 16.739 - 3 * math.sin(sine / 26)));
  969. CFrame.new(Vector3.new(-1.498, 0.012, -0.113)) * CFAngles(Vector3.new(6.417, -1.04, -9.162 + 3 * math.sin(sine / 26)));
  970. CFrame.new(Vector3.new(0.567, -1.9 - .1 * math.sin(sine / 27), 0.086)) * CFAngles(Vector3.new(0.242, 24.101, 3.041 + 1 * math.sin(sine / 28)));
  971. CFrame.new(Vector3.new(-0.651, -1.9 - .1 * math.sin(sine / 27), -0.089)) * CFAngles(Vector3.new(-0.001, 30, -3.028 - 1 * math.sin(sine / 28)));
  972. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(190, 2, 0));
  973. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  974. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  975. })
  976. end
  977. elseif Torsovelocity > 2 and hit ~= nil then
  978. Anim = "Walk"
  979. if attack == false then
  980. setLerp(.3)
  981. change = 2.5
  982. setJointCFrames({
  983. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(-10, 0 + 2 * math.sin(sine / 8), 0));
  984. CFrame.new(Vector3.new(0, 1.5, 0)) * CFAngles(Vector3.new(5, 0 - 2 * math.sin(sine / 8), -0.001));
  985. CFrame.new(Vector3.new(1.5, 0, -.22)) * CFAngles(Vector3.new(20 + 1 * math.sin(sine / 8), 0, 10 + 1 * math.sin(sine / 17)));
  986. CFrame.new(Vector3.new(-1.45 + .05 * math.sin(sine / 10), 0 , -.2 * math.sin(sine / 10))) * CFAngles(Vector3.new(10 * math.sin(sine / 10), 0, 1 * math.sin(sine / 10)));
  987. CFrame.new(Vector3.new(0.5, -1.9 - 0.4 * math.cos(sine / 8) / 2, 0 + 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(-40 * math.sin(sine / 8), 0, 2));
  988. CFrame.new(Vector3.new(-0.5, -1.9 + 0.4 * math.cos(sine / 8) / 2, 0 - 1.4 * math.sin(sine / 8) / 2)) * CFAngles(Vector3.new(40 * math.sin(sine / 8), 0, -2));
  989. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(180, -2 - 1 * math.sin(sine / 8), 0));
  990. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  991. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 180));
  992. })
  993. end
  994. end
  995. end
  996. if #Effects > 0 then
  997. for e = 1, #Effects do
  998. if Effects[e] ~= nil then
  999. local Thing = Effects[e]
  1000. if Thing ~= nil then
  1001. local Part = Thing[1]
  1002. local Mode = Thing[2]
  1003. local Delay = Thing[3]
  1004. local IncX = Thing[4]
  1005. local IncY = Thing[5]
  1006. local IncZ = Thing[6]
  1007. if Thing[1].Transparency <= 1 then
  1008. if Thing[2] == "Block1" then
  1009. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1010. Mesh = Thing[1].Mesh
  1011. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1012. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1013. elseif Thing[2] == "Block2" then
  1014. Thing[1].CFrame = Thing[1].CFrame
  1015. Mesh = Thing[7]
  1016. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1017. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1018. elseif Thing[2] == "Cylinder" then
  1019. Mesh = Thing[1].Mesh
  1020. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1021. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1022. elseif Thing[2] == "Blood" then
  1023. Mesh = Thing[7]
  1024. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1025. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1026. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1027. elseif Thing[2] == "Elec" then
  1028. Mesh = Thing[1].Mesh
  1029. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1030. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1031. elseif Thing[2] == "Disappear" then
  1032. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1033. elseif Thing[2] == "Shatter" then
  1034. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1035. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1036. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1037. Thing[6] = Thing[6] + Thing[5]
  1038. end
  1039. else
  1040. Part.Parent = nil
  1041. table.remove(Effects, e)
  1042. end
  1043. end
  1044. end
  1045. end
  1046. end
  1047. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement