Advertisement
gecksad

Untitled

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