Advertisement
Ban43_GodOfEdits

testing skyrim

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