Advertisement
Ban43_GodOfEdits

arow to the knee

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