Orangeplayer1431

Untitled

Mar 17th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 72.71 KB | None | 0 0
  1. Hood = true --[[ Equips hood ]]
  2. -------------------------------------------------------------------------------------------------------------------------
  3. ---------------------------------------------------------------------------------------------------------------------------
  4. local p = game.Players.LocalPlayer
  5. local char = p.Character
  6. local mouse = p:GetMouse()
  7. local larm = char["Left Arm"]
  8. local rarm = char["Right Arm"]
  9. local lleg = char["Left Leg"]
  10. local rleg = char["Right Leg"]
  11. local hed = char.Head
  12. local torso = char.Torso
  13. plr=game:service'Players'.LocalPlayer
  14. chr=plr.Character
  15. local ms = plr:GetMouse()
  16. CV="Bright red"
  17. local hum = char.Humanoid
  18. local cam = game.Workspace.CurrentCamera
  19. local root = char.HumanoidRootPart
  20. local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  21. local vt=Vector3.new
  22. local deb = false
  23. local CanAttack = true
  24. local shot = 0
  25. local animpose = "Idle"
  26. local lastanimpose = "Idle"
  27. local stanceToggle = "Normal"
  28. local l = game:GetService("Lighting")
  29. local rs = game:GetService("RunService").RenderStepped
  30. math.randomseed(os.time())
  31. hum.MaxHealth = 9001
  32. wait(1)
  33. hum.Health = 9001
  34.  
  35. --game:service'InsertService':LoadAsset(16469427):children()[1].Parent = char
  36. --char.Reaper.Handle.Mesh.TextureId = "http://www.roblox.com/asset/?id=176349813"
  37.  
  38.  
  39. Mesh2 = function(par,num,x,y,z)
  40. local msh = _
  41. if num == 1 then
  42. msh = Instance.new("CylinderMesh",par)
  43. elseif num == 2 then
  44. msh = Instance.new("SpecialMesh",par)
  45. msh.MeshType = 3
  46. elseif num == 3 then
  47. msh = Instance.new("BlockMesh",par)
  48. elseif num == 4 then
  49. msh = Instance.new("SpecialMesh",par)
  50. msh.MeshType = "Torso"
  51. elseif type(num) == 'string' then
  52. msh = Instance.new("SpecialMesh",par)
  53. msh.MeshId = num
  54. end
  55. msh.Scale = Vector3.new(x,y,z)
  56. return msh
  57. end
  58.  
  59. Weld2 = function(p0,p1,x,y,z,rx,ry,rz,par)
  60. local w = Instance.new('Motor',par or p0)
  61. w.Part0 = p0
  62. w.Part1 = p1
  63. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  64. return w
  65. end
  66.  
  67. function NoOutline(Part)
  68. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  69. end
  70.  
  71. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  72. local fp=Instance.new("Part")
  73. fp.formFactor=formfactor
  74. fp.Parent=parent
  75. fp.Reflectance=reflectance
  76. fp.Transparency=transparency
  77. fp.CanCollide=false
  78. fp.Locked=true
  79. fp.BrickColor=brickcolor
  80. fp.Name=name
  81. fp.Size=size
  82. fp.Position=torso.Position
  83. NoOutline(fp)
  84. fp.Material="SmoothPlastic"
  85. fp:BreakJoints()
  86. return fp
  87. end
  88.  
  89. if Hood == true then
  90. for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  91. local hat = part(3,char,0,0,BrickColor.new("Really black"),"Hood",vt(0.5,1,1.02))
  92. Mesh2(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05) --hood
  93. Weld2(char.Head,hat,0,-.25,0,0,0,0,hat)
  94. end
  95. ----------------------------------------------------
  96. hed.face.Texture = "rbxassetid://365255820"
  97. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  98. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  99. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  100. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  101. ----------------------------------------------------
  102. ypcall(function()
  103. char.Shirt:Destroy()
  104. char.Pants:Destroy()
  105. shirt = Instance.new("Shirt", char)
  106. shirt.Name = "Shirt"
  107. pants = Instance.new("Pants", char)
  108. pants.Name = "Pants"
  109. char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=493105572"
  110. char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=493105648"
  111. end)
  112. ----------------------------------------------------
  113. --cape
  114.  
  115.  
  116. p = game.Players.LocalPlayer
  117. char = p.Character
  118. hum = char.Humanoid
  119. root=char.HumanoidRootPart
  120. torso = char.Torso
  121. local player = game.Players.LocalPlayer
  122. lig = Instance.new("PointLight",player.Character.Torso)
  123. lig.Color=Color3.new(255,0,0)
  124. m=player:GetMouse()
  125. bb = Instance.new("BillboardGui",player.Character.Head)
  126. bb.Enabled = true
  127. function newRay(start,face,range,wat)
  128. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  129. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  130. return rey,hit,pos
  131. end
  132. aa1={}
  133. torso=game.Players.LocalPlayer.Character.Torso
  134.  
  135. local WorldUp = Vector3.new(0,1,0)
  136. function look2(Vec1,Vec2)
  137. local Orig = Vec1
  138. Vec1 = Vec1+Vector3.new(0,1,0)
  139. Vec2 = Vec2+Vector3.new(0,1,0)
  140. local Forward = (Vec2-Vec1).unit
  141. local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
  142. local Right = Up:Cross(Forward).unit
  143. Forward = -Forward
  144. Right = -Right
  145. return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
  146. end
  147.  
  148. function look(CFr,Vec2)
  149. local A = Vector3.new(0,0,0)
  150. local B = CFr:inverse()*Vec2
  151. local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
  152. if B.Z > 0 then
  153. CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
  154. elseif B.Z == 0 then
  155. if B.Y > 0 then
  156. CF = CFr*CFrame.Angles(math.pi/2,0,0)
  157. elseif B.Y < 0 then
  158. CF = CFr*CFrame.Angles(-math.pi/2,0,0)
  159. else
  160. CF = CFr
  161. end
  162. end
  163. local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
  164. local Up = Vector3.new(X,Y,Z)
  165. local Forward = (Vec2-CFr.p).unit
  166. local Right = Up:Cross(Forward)
  167. Forward = -Forward
  168. Right = -Right
  169. return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
  170. end
  171.  
  172. function simulate(j,d,m,r,t)
  173. local joint = j
  174. for i,v in ipairs(t) do
  175. if v[1]:FindFirstChild("Weld") then
  176. local stiff = m.CFrame.lookVector*0.03
  177. if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
  178. local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
  179. local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
  180. local pos = joint.p+(dir*(d*0.5))
  181. --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
  182. local inv = v[1].Weld.Part0.CFrame
  183. local rel1 = inv:inverse()*pos
  184. local rel2 = inv:inverse()*(pos-(dir*dis))
  185. local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
  186. v[1].Weld.C0 = cf
  187. v[2] = inv*cf
  188. --v[1].CFrame = cf
  189. end
  190. end
  191. end
  192. for i=1,8 do
  193. local p = Instance.new("Part",char)
  194. p.Anchored = false
  195. p.BrickColor = BrickColor.new("Really black")
  196. p.CanCollide = false
  197. p.FormFactor="Custom"
  198. p.Material = "Neon"
  199. p.TopSurface = "SmoothNoOutlines"
  200. p.BottomSurface = "SmoothNoOutlines"
  201. p.RightSurface = "SmoothNoOutlines"
  202. p.LeftSurface = "SmoothNoOutlines"
  203. p.FrontSurface = "SmoothNoOutlines"
  204. p.BackSurface = "SmoothNoOutlines"
  205.  
  206. p.Size=Vector3.new(2,.2,0.2)
  207. p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
  208. mesh = Instance.new("BlockMesh",p)
  209. mesh.Scale = Vector3.new(1,1,4)
  210. local w = Instance.new("Motor6D",p)
  211. w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
  212. w.Part1 = p
  213. w.Name = "Weld"
  214. --table.insert(aa1,p)
  215. aa1[i] = {p,p.CFrame}
  216.  
  217. end
  218. game:service"RunService".Stepped:connect(function()
  219. simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
  220. end)
  221. local p = game.Players.LocalPlayer
  222. local char = p.Character
  223. local mouse = p:GetMouse()
  224. local larm = char["Left Arm"]
  225. local rarm = char["Right Arm"]
  226. local lleg = char["Left Leg"]
  227. local rleg = char["Right Leg"]
  228. local hed = char.Head
  229. local torso = char.Torso
  230. local hum = char.Humanoid
  231. local cam = game.Workspace.CurrentCamera
  232. local root = char.HumanoidRootPart
  233. local deb = false
  234. local shot = 0
  235. local debris=game:service"Debris"
  236.  
  237. local RbxUtility = LoadLibrary("RbxUtility")
  238. local Create = RbxUtility.Create
  239. local m = Create("Model")
  240.  
  241. local l = game:GetService("Lighting")
  242. local rs = game:GetService("RunService").RenderStepped
  243. ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
  244. math.randomseed(os.time())
  245. for i,v in pairs (game.Workspace:GetChildren()) do
  246. if v:IsA("Sound") then
  247. v:Destroy()
  248. end
  249. end
  250. ----------------------------------------------------
  251. z = Instance.new("Sound", char)
  252. z.SoundId = "rbxassetid://313723217"
  253. z.Looped = true
  254. z.Volume = 4
  255. wait(.1)
  256. z:Play()
  257. ----------------------------------------------------
  258. function Tween(a,b,c)
  259. return a+(b-a)*c
  260. end
  261. ----------------------------------------------------
  262. function FindNearestTorso(Position,Distance,SinglePlayer)
  263. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  264. local List = {}
  265. for i,v in pairs(workspace:GetChildren())do
  266. if v:IsA("Model")then
  267. if v:findFirstChild("Torso")then
  268. if v ~= char then
  269. if(v.Torso.Position -Position).magnitude <= Distance then
  270. table.insert(List,v)
  271. end
  272. end
  273. end
  274. end
  275. end
  276. return List
  277. end
  278. ----------------------------------------------------
  279. local HBill = Instance.new("BillboardGui", hed)
  280. local HMain = Instance.new("Frame", HBill)
  281. local HBar = Instance.new("Frame")
  282. local HBarBack = Instance.new("Frame")
  283. local HHealth = Instance.new("TextLabel", HBarBack)
  284. local HName = Instance.new("TextLabel", HBarBack)
  285.  
  286. HBill.Size = UDim2.new(15,0,2.2,0)
  287. HBill.Name = "Health Display"
  288. HBill.StudsOffset = Vector3.new(0,4,0)
  289. HBill.AlwaysOnTop = true
  290. HBill.Enabled = true
  291.  
  292. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  293. HMain.BackgroundTransparency = 1
  294. HMain.Size = UDim2.new(1,0,1,0)
  295.  
  296. HBarBack.Parent = HMain
  297. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  298. HBarBack.BorderColor3 = Color3.new(0,0,0)
  299. HBarBack.BorderSizePixel = 2
  300. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  301. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  302.  
  303. HBar.Parent = HBarBack
  304. HBar.BackgroundColor3 = Color3.new(0, 1, 0)
  305. HBar.BorderColor3 = Color3.new(0,0,0)
  306. HBar.Size = UDim2.new(.5,0,1,0)
  307.  
  308. HHealth.BackgroundTransparency = 1
  309. HHealth.Size = UDim2.new(1,0,1,0)
  310. HHealth.Font = "SourceSansItalic"
  311. HHealth.Text = "[10/10]"
  312. HHealth.TextScaled = true
  313. HHealth.TextColor3 = Color3.new(1,1,1)
  314. HHealth.TextStrokeColor3 = Color3.new(85/255, 0, 127/255)
  315. HHealth.TextStrokeTransparency = 0
  316.  
  317. HName.Parent = HMain
  318. HName.BackgroundTransparency = 1
  319. HName.Size = UDim2.new(1,0,.5,0)
  320. HName.Font = "SourceSansItalic"
  321. HName.Text = "Royal Scythizone"
  322. HName.TextScaled = true
  323. HName.TextColor3 = Color3.new(85/255, 0,127/255)
  324. HName.TextStrokeColor3 = Color3.new(0,0,0)
  325. HName.TextStrokeTransparency = 0
  326. HName.TextYAlignment = "Top"
  327.  
  328. local runServ = game:GetService("RunService").RenderStepped
  329. runServ:connect(function()
  330. HHealth.Text = "["..hum.Health.."]"
  331. HBar:TweenSize(UDim2.new((hum.Health/hum.MaxHealth),0,1,0), _, "Linear", .4)
  332. end)
  333. ----------------------------------------------------
  334. cn,ca,bc,v3,r = CFrame.new,CFrame.Angles,BrickColor.new,Vector3.new,function(a)return (math.random()-.5)*2*(a or 1) end
  335. deg,nf,c3,ins,ma,pi,mr = math.deg,math.floor,Color3.new,Instance.new,math.abs,math.pi,math.rad
  336. local pert = function(prnt,cfr,siz,col,anc,canc,tra,mat,typ)
  337. local p = ins(typ or "Part")
  338. p.FormFactor = "Custom"
  339. p.Material = mat
  340. p.Transparency = tra
  341. p.CanCollide = canc
  342. p.Anchored = anc
  343. p.BrickColor = bc(col)
  344. p.Size = siz
  345. p.CFrame = cfr
  346. p.Parent = prnt
  347. p.Locked = true
  348. p.TopSurface,p.BottomSurface = 0,0
  349. p:BreakJoints()
  350. return p
  351. end
  352. local mesh = function(typ,prnt,scal,mtyp,mid,mtx)
  353. local m = ins(typ or "SpecialMesh")
  354. if mtyp then m.MeshType = mtyp end
  355. if mid then m.MeshId = mid end
  356. if mtx then m.TextureId = mtx end
  357. if scal then m.Scale = scal end
  358. m.Parent = prnt
  359. return m
  360. end
  361. function cylinderOpen(cf,col,col2)
  362. local p = pert(char,cf,v3(0,1000,0),col,true,false,.1,"SmoothPlastic")
  363. local pm = mesh("CylinderMesh",p)
  364. local p2 = pert(char,cf,v3(0,1000,0),col2,true,false,.1,"SmoothPlastic")
  365. local p2m = mesh("CylinderMesh",p2)
  366. Spawn(function()
  367. for i=.1,1.1,.0125 do
  368. p.Transparency = i
  369. p2.Transparency = i
  370. pm.Scale = pm.Scale + v3(.8,0,.8)
  371. p2m.Scale = p2m.Scale + v3(.5,0,.5)
  372. wait()
  373. end
  374. p:Destroy()
  375. p2:Destroy()
  376. end)
  377. end
  378.  
  379. function expandDong()
  380. local nTarg = Torso
  381. local Orbi = Instance.new('Part')
  382. Orbi.Size = Vector3.new(3,3,3)
  383. Orbi.CanCollide = false
  384. Orbi.Locked = true
  385. Orbi.Shape = 'Ball'
  386. Orbi.Anchored = true
  387. Orbi.Transparency = .6
  388. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  389. Orbi.Name = 'Expand Dong'
  390. Orbi.BrickColor = BrickColor.new('Royal purple')
  391.  
  392. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  393. OrbiMesh.Name = 'Dxpand Eong'
  394. OrbiMesh.Scale = Vector3.new(2, 2, 2)
  395. OrbiMesh.MeshType = 'Sphere'
  396. Orbi.Parent = char
  397. ypcall(function()
  398. for i = 3,.35,-1 do
  399. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  400. Orbi.CFrame = nTarg.CFrame
  401. end
  402. for i = .6,1,.05 do
  403. wait(0.04)
  404. Orbi.Transparency = i
  405. end
  406. Orbi:Destroy()
  407. end)
  408. end
  409.  
  410.  
  411. function expandDong2()
  412. local nTarg = Torso
  413. local Orbi = Instance.new('Part')
  414. Orbi.Size = Vector3.new(3,3,3)
  415. Orbi.CanCollide = false
  416. Orbi.Locked = true
  417. Orbi.Shape = 'Ball'
  418. Orbi.Anchored = true
  419. Orbi.Transparency = .6
  420. Orbi.TopSurface,Orbi.BottomSurface = 0,0
  421. Orbi.Name = 'Expand Dong'
  422. Orbi.BrickColor = BrickColor.new('Really black')
  423.  
  424. local OrbiMesh = Instance.new('SpecialMesh',Orbi)
  425. OrbiMesh.Name = 'Dxpand Eong'
  426. OrbiMesh.Scale = Vector3.new(2.5, 2.5, 2.5)
  427. OrbiMesh.MeshType = 'Sphere'
  428. Orbi.Parent = char
  429. ypcall(function()
  430. for i = 3,0,-1 do
  431. OrbiMesh.Scale = OrbiMesh.Scale + Vector3.new(.7, .7, .7)
  432. Orbi.CFrame = nTarg.CFrame
  433. end
  434. for i = .6,1,.05 do
  435. wait(0.04)
  436. Orbi.Transparency = i
  437. end
  438. Orbi:Destroy()
  439. end)
  440. end
  441. cylinderOpen(char.Torso.CFrame,"Royal purple","Really black")
  442. -----------------------------------------------------
  443. function pert(formfactor, parent, material, reflectance, transparency, brickcolor, name, size)
  444. local fp = Create("Part"){
  445. formFactor = formfactor,
  446. Parent = parent,
  447. Reflectance = reflectance,
  448. Transparency = transparency,
  449. CanCollide = false,
  450. Locked = true,
  451. BrickColor = BrickColor.new(tostring(brickcolor)),
  452. Name = name,
  453. Size = size,
  454. Position = Character.Torso.Position,
  455. Material = material,
  456. }
  457. nooutline(fp)
  458. return fp
  459. end
  460. ----------------------------------------------------
  461. function ShowDamage(part,partCFrame,Text)
  462. local Rate = (1 / 30)
  463. local Time = (Time or 2)
  464. local Frames = (Time / Rate)
  465.  
  466. bill2 = Instance.new("BillboardGui", part)
  467. bill2.Size = UDim2.new(4, 4, 4, 4)
  468. bill2.AlwaysOnTop = false
  469.  
  470. label = Instance.new("TextLabel", bill2)
  471. label.Size = UDim2.new(1,2,1,2)
  472. label.Position = UDim2.new(0, 0, -.65, 0)
  473. label.TextColor3 = Color3.new(0, 0, 0)
  474. label.TextStrokeTransparency = 0
  475. label.TextStrokeColor3 = Color3.new(255, 255, 255)
  476. label.BackgroundTransparency = 1
  477. label.Visible = true
  478. label.Font = 'SourceSansLight'
  479. label.FontSize = 'Size24'
  480. label.Text = Text
  481.  
  482. for Frame = 1, Frames do
  483. wait(Rate)
  484. local Percent = (Frame / Frames)
  485. part.CFrame = CFrame.new(partCFrame) + Vector3.new(0, Percent, 0)
  486. label.TextTransparency = Percent
  487. end
  488.  
  489.  
  490. end
  491.  
  492. function Damage(hit,mm)
  493. if hit ~= nil and damen == true and hit.Parent ~= Char and hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health > 0 then
  494. hit.Parent.Humanoid:TakeDamage(mm)
  495. coroutine.resume(coroutine.create(function()
  496. ShowDamage(hit,(hit.CFrame * CFrame.new(0, 0, (hit.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), mm)
  497. end))
  498. damen = false
  499. end
  500. end
  501. -----------------------------------------------------
  502. Debounces = {
  503. CanAttack = true;
  504. NoIdl = false;
  505. Slashing = false;
  506. Slashed = false;
  507. RPunch = false;
  508. RPunched = false;
  509. LPunch = false;
  510. LPunched = false;
  511. }
  512. local Touche = {char.Name, }
  513. ----------------------------------------------------
  514. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  515. local wld = Instance.new("Weld", wp1)
  516. wld.Part0 = wp0
  517. wld.Part1 = wp1
  518. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  519. end
  520. ----------------------------------------------------
  521. newWeld(torso, larm, -1.5, 0.5, 0)
  522. larm.Weld.C1 = CFrame.new(0, 0.5, 0)
  523. newWeld(torso, rarm, 1.5, 0.5, 0)
  524. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
  525. newWeld(torso, hed, 0, 1.5, 0)
  526. newWeld(torso, lleg, -0.5, -1, 0)
  527. lleg.Weld.C1 = CFrame.new(0, 1, 0)
  528. newWeld(torso, rleg, 0.5, -1, 0)
  529. rleg.Weld.C1 = CFrame.new(0, 1, 0)
  530. newWeld(root, torso, 0, 0, 0)
  531. torso.Weld.C1 = CFrame.new(0, 0, 0)
  532. ----------------------------------------------------
  533. --~Gaunlet~--
  534. Run = game:GetService("RunService")
  535.  
  536. local scythe = Instance.new("Model", char)
  537. scythe.Name = "Scythe"
  538.  
  539. local handle = Instance.new("Part", scythe)
  540. handle.CanCollide = false
  541. handle.Anchored = false
  542. handle.Material = Enum.Material.Wood
  543. handle.Size = Vector3.new(2, 7, 2)
  544. handle.Name = "Handle"
  545. handle.CFrame = CFrame.new(2, 3.573, 22)
  546. handle.Friction = 0.3
  547.  
  548. local mesh = Instance.new("CylinderMesh", handle)
  549. mesh.Scale = Vector3.new(0.4, 1.2, 0.13)
  550.  
  551. local part = Instance.new("Part", scythe)
  552. part.FormFactor = Enum.FormFactor.Custom
  553. part.CanCollide = false
  554. part.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  555. part.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  556. part.Anchored = false
  557. part.Material = Enum.Material.Neon
  558. part.Size = Vector3.new(0.203, 2.849, 0.2)
  559. part.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  560. part.CFrame = CFrame.new(-1.054, 6.358, 22.004) * CFrame.Angles(-0, 0, 1.8616886138916)
  561. part.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  562. part.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  563. part.BrickColor = BrickColor.new("Royal purple")
  564. part.Friction = 0.3
  565. part.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  566.  
  567. local part_2 = Instance.new("Part", scythe)
  568. part_2.FormFactor = Enum.FormFactor.Custom
  569. part_2.CanCollide = false
  570. part_2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  571. part_2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  572. part_2.Anchored = false
  573. part_2.Material = Enum.Material.Neon
  574. part_2.Size = Vector3.new(0.203, 0.776, 0.2)
  575. part_2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  576. part_2.CFrame = CFrame.new(1.531, 7.679, 22.004) * CFrame.Angles(-0, 0, 1.5126248598099)
  577. part_2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  578. part_2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  579. part_2.BrickColor = BrickColor.new("Royal purple")
  580. part_2.Friction = 0.3
  581. part_2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  582.  
  583. local part_3 = Instance.new("Part", scythe)
  584. part_3.FormFactor = Enum.FormFactor.Custom
  585. part_3.CanCollide = false
  586. part_3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  587. part_3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  588. part_3.Anchored = false
  589. part_3.Material = Enum.Material.Neon
  590. part_3.Size = Vector3.new(0.203, 1.16, 0.2)
  591. part_3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  592. part_3.CFrame = CFrame.new(1.184, 6.677, 22.004) * CFrame.Angles(-0, 0, 1.5824373960495)
  593. part_3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  594. part_3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  595. part_3.BrickColor = BrickColor.new("Royal purple")
  596. part_3.Friction = 0.3
  597. part_3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  598.  
  599. local part_4 = Instance.new("Part", scythe)
  600. part_4.FormFactor = Enum.FormFactor.Custom
  601. part_4.CanCollide = false
  602. part_4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  603. part_4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  604. part_4.Anchored = false
  605. part_4.Material = Enum.Material.Neon
  606. part_4.Size = Vector3.new(0.203, 1.16, 0.2)
  607. part_4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  608. part_4.CFrame = CFrame.new(0.585, 7.624, 22.004) * CFrame.Angles(-0, 0, 1.7046097517014)
  609. part_4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  610. part_4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  611. part_4.BrickColor = BrickColor.new("Royal purple")
  612. part_4.Friction = 0.3
  613. part_4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  614.  
  615. local hitbox = Instance.new("Part", scythe)
  616. hitbox.FormFactor = Enum.FormFactor.Custom
  617. hitbox.CanCollide = false
  618. hitbox.Transparency = 1
  619. hitbox.Anchored = false
  620. hitbox.Size = Vector3.new(5.444, 2.483, 1.907)
  621. hitbox.Name = "HitBox"
  622. hitbox.CFrame = CFrame.new(-0.722, 6.691, 21.458)
  623. hitbox.Friction = 0.3
  624.  
  625. local part_5 = Instance.new("Part", scythe)
  626. part_5.FormFactor = Enum.FormFactor.Custom
  627. part_5.CanCollide = false
  628. part_5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  629. part_5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  630. part_5.Anchored = false
  631. part_5.Material = Enum.Material.Neon
  632. part_5.Size = Vector3.new(0.401, 2.658, 0.2)
  633. part_5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  634. part_5.CFrame = CFrame.new(-0.903, 6.65, 22.004) * CFrame.Angles(-0, 0, 1.9664081335068)
  635. part_5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  636. part_5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  637. part_5.BrickColor = BrickColor.new("Royal purple")
  638. part_5.Friction = 0.3
  639. part_5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  640.  
  641. local part_6 = Instance.new("Part", scythe)
  642. part_6.FormFactor = Enum.FormFactor.Custom
  643. part_6.CanCollide = false
  644. part_6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  645. part_6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  646. part_6.Anchored = false
  647. part_6.Material = Enum.Material.Neon
  648. part_6.Size = Vector3.new(0.657, 1.16, 0.2)
  649. part_6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  650. part_6.CFrame = CFrame.new(-1.296, 6.696, 22.004) * CFrame.Angles(-0, 0, 2.1758482456207)
  651. part_6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  652. part_6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  653. part_6.BrickColor = BrickColor.new("Royal purple")
  654. part_6.Friction = 0.3
  655. part_6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  656.  
  657. local part_7 = Instance.new("Part", scythe)
  658. part_7.FormFactor = Enum.FormFactor.Custom
  659. part_7.CanCollide = false
  660. part_7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  661. part_7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  662. part_7.Anchored = false
  663. part_7.Material = Enum.Material.Neon
  664. part_7.Size = Vector3.new(0.2, 1.086, 0.2)
  665. part_7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  666. part_7.CFrame = CFrame.new(-2.231, 6.191, 22.004) * CFrame.Angles(-0, 0, 2.4027414321899)
  667. part_7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  668. part_7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  669. part_7.BrickColor = BrickColor.new("Royal purple")
  670. part_7.Friction = 0.3
  671. part_7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  672.  
  673. local part_8 = Instance.new("Part", scythe)
  674. part_8.FormFactor = Enum.FormFactor.Custom
  675. part_8.CanCollide = false
  676. part_8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  677. part_8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  678. part_8.Anchored = false
  679. part_8.Material = Enum.Material.Neon
  680. part_8.Size = Vector3.new(0.929, 1.078, 0.2)
  681. part_8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  682. part_8.CFrame = CFrame.new(-0.344, 7.035, 22.004) * CFrame.Angles(-0, 0, 1.9140462875366)
  683. part_8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  684. part_8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  685. part_8.BrickColor = BrickColor.new("Royal purple")
  686. part_8.Friction = 0.3
  687. part_8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  688.  
  689. local part_9 = Instance.new("Part", scythe)
  690. part_9.FormFactor = Enum.FormFactor.Custom
  691. part_9.CanCollide = false
  692. part_9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  693. part_9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  694. part_9.Anchored = false
  695. part_9.Material = Enum.Material.Neon
  696. part_9.Size = Vector3.new(0.2, 2.741, 0.2)
  697. part_9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  698. part_9.CFrame = CFrame.new(-1.359, 6.293, 22.004) * CFrame.Angles(-0, 0, 1.9664095640182)
  699. part_9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  700. part_9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  701. part_9.BrickColor = BrickColor.new("Royal purple")
  702. part_9.Friction = 0.3
  703. part_9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  704.  
  705. local part_10 = Instance.new("Part", scythe)
  706. part_10.FormFactor = Enum.FormFactor.Custom
  707. part_10.CanCollide = false
  708. part_10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  709. part_10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  710. part_10.Anchored = false
  711. part_10.Material = Enum.Material.Neon
  712. part_10.Size = Vector3.new(1.166, 1.367, 0.2)
  713. part_10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  714. part_10.CFrame = CFrame.new(1.253, 7.147, 22.004) * CFrame.Angles(-0, 0, 1.5824372768402)
  715. part_10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  716. part_10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  717. part_10.BrickColor = BrickColor.new("Royal purple")
  718. part_10.Friction = 0.3
  719. part_10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  720.  
  721. local part_11 = Instance.new("Part", scythe)
  722. part_11.FormFactor = Enum.FormFactor.Custom
  723. part_11.CanCollide = false
  724. part_11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  725. part_11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  726. part_11.Anchored = false
  727. part_11.Material = Enum.Material.Neon
  728. part_11.Size = Vector3.new(0.986, 1.56, 0.2)
  729. part_11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  730. part_11.CFrame = CFrame.new(0.129, 6.999, 22.004) * CFrame.Angles(-0, 0, 1.7046104669571)
  731. part_11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  732. part_11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  733. part_11.BrickColor = BrickColor.new("Royal purple")
  734. part_11.Friction = 0.3
  735. part_11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  736.  
  737. local weld = Instance.new("Weld", scythe)
  738. weld.Part1 = part_11
  739. weld.Part0 = part_10
  740. weld.C1 = CFrame.new(-27.632, 3.85, -22.004) * CFrame.Angles(-0, 0, -1.7046104669571)
  741. weld.C0 = CFrame.new(-28.031, 1.579, -22.004) * CFrame.Angles(-0, 0, -1.5824372768402)
  742.  
  743. local weld_2 = Instance.new("Weld", scythe)
  744. weld_2.Part1 = part
  745. weld_2.Part0 = handle
  746. weld_2.C1 = CFrame.new(-26.415, 6.808, -22.004) * CFrame.Angles(-0, 0, -1.8616886138916)
  747. weld_2.C0 = CFrame.new(-2, -24.473, -22)
  748.  
  749. local weld_3 = Instance.new("Weld", scythe)
  750. weld_3.Part1 = part_2
  751. weld_3.Part0 = part
  752. weld_3.C1 = CFrame.new(-28.619, -0.133, -22.004) * CFrame.Angles(-0, 0, -1.5126248598099)
  753. weld_3.C0 = CFrame.new(-26.415, 6.808, -22.004) * CFrame.Angles(-0, 0, -1.8616886138916)
  754.  
  755. local weld_4 = Instance.new("Weld", scythe)
  756. weld_4.Part1 = part_3
  757. weld_4.Part0 = part_2
  758. weld_4.C1 = CFrame.new(-27.562, 1.504, -22.004) * CFrame.Angles(-0, 0, -1.5824373960495)
  759. weld_4.C0 = CFrame.new(-28.619, -0.133, -22.004) * CFrame.Angles(-0, 0, -1.5126248598099)
  760.  
  761. local weld_5 = Instance.new("Weld", scythe)
  762. weld_5.Part1 = part_4
  763. weld_5.Part0 = part_3
  764. weld_5.C1 = CFrame.new(-28.191, 4.385, -22.004) * CFrame.Angles(-0, 0, -1.7046097517014)
  765. weld_5.C0 = CFrame.new(-27.562, 1.504, -22.004) * CFrame.Angles(-0, 0, -1.5824373960495)
  766.  
  767. local weld_6 = Instance.new("Weld", scythe)
  768. weld_6.Part1 = hitbox
  769. weld_6.Part0 = part_4
  770. weld_6.C1 = CFrame.new(0.722, -27.591, -21.458)
  771. weld_6.C0 = CFrame.new(-28.191, 4.385, -22.004) * CFrame.Angles(-0, 0, -1.7046097517014)
  772.  
  773. local weld_7 = Instance.new("Weld", scythe)
  774. weld_7.Part1 = part_5
  775. weld_7.Part0 = hitbox
  776. weld_7.C1 = CFrame.new(-25.77, 9.784, -22.004) * CFrame.Angles(-0, 0, -1.9664082527161)
  777. weld_7.C0 = CFrame.new(0.722, -27.591, -21.458)
  778.  
  779. local weld_8 = Instance.new("Weld", scythe)
  780. weld_8.Part1 = part_6
  781. weld_8.Part0 = part_5
  782. weld_8.C1 = CFrame.new(-23.434, 14.631, -22.004) * CFrame.Angles(-0, 0, -2.175847530365)
  783. weld_8.C0 = CFrame.new(-25.77, 9.784, -22.004) * CFrame.Angles(-0, 0, -1.9664082527161)
  784.  
  785. local weld_9 = Instance.new("Weld", scythe)
  786. weld_9.Part1 = part_7
  787. weld_9.Part0 = part_6
  788. weld_9.C1 = CFrame.new(-19.894, 18.525, -22.004) * CFrame.Angles(-0, 0, -2.4027411937714)
  789. weld_9.C0 = CFrame.new(-23.434, 14.631, -22.004) * CFrame.Angles(-0, 0, -2.175847530365)
  790.  
  791. local weld_10 = Instance.new("Weld", scythe)
  792. weld_10.Part1 = part_8
  793. weld_10.Part0 = part_7
  794. weld_10.C1 = CFrame.new(-26.421, 9.077, -22.004) * CFrame.Angles(-0, 0, -1.9140462875366)
  795. weld_10.C0 = CFrame.new(-19.894, 18.525, -22.004) * CFrame.Angles(-0, 0, -2.4027411937714)
  796.  
  797. local weld_11 = Instance.new("Weld", scythe)
  798. weld_11.Part1 = part_9
  799. weld_11.Part0 = part_8
  800. weld_11.C1 = CFrame.new(-25.616, 9.226, -22.004) * CFrame.Angles(-0, 0, -1.966409444809)
  801. weld_11.C0 = CFrame.new(-26.421, 9.077, -22.004) * CFrame.Angles(-0, 0, -1.9140462875366)
  802.  
  803. local weld_12 = Instance.new("Weld", scythe)
  804. weld_12.Part1 = part_10
  805. weld_12.Part0 = part_9
  806. weld_12.C1 = CFrame.new(-28.031, 1.579, -22.004) * CFrame.Angles(-0, 0, -1.5824372768402)
  807. weld_12.C0 = CFrame.new(-25.616, 9.226, -22.004) * CFrame.Angles(-0, 0, -1.966409444809)
  808.  
  809.  
  810.  
  811. local partweld = Instance.new("Weld", handle)
  812. partweld.Part0 = handle
  813. partweld.Part1 = rarm
  814. partweld.C0 = CFrame.new(0,-2.8,1)*CFrame.Angles(-30,0,0)
  815.  
  816.  
  817. for _,v in pairs(scythe:GetChildren()) do
  818. if v:IsA("Part") then
  819. v.CanCollide = false
  820. end
  821. end
  822.  
  823.  
  824.  
  825. function slash()
  826. dem = hitbox.Touched:connect(function(hit) Damage(hit, 30) end)
  827. for i = 1,10 do
  828. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,.9,0) * CFrame.Angles(math.rad(21), math.rad(75), math.rad(50)), 1)
  829. --larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-18)), 1)
  830. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),math.rad(-60),0), 0.5)
  831. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(70), 0), 0.5)
  832. --[[lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-10)), 0.5)
  833. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5)]]
  834. wait()
  835. end
  836. damen = true
  837. dem = hitbox.Touched:connect(function(hit) Damage(hit, 30) end)
  838. for i = 1,25 do
  839. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), 1)
  840. --larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(20)), 0.5)
  841. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-14),math.rad(30),0), 0.5)
  842. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.5)
  843. --[[lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.5)
  844. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(10)), 0.5)]]
  845. if Debounces.on == false then break end
  846.  
  847. wait()
  848. end
  849. damen = false
  850. dem:disconnect()
  851. enabled = true
  852. end
  853.  
  854. ----------------------------------------------------
  855. function nwSnd(prnt,pch,vol,id)
  856. local s=Instance.new("Sound",prnt)
  857. s.Pitch=pch
  858. s.Volume=vol
  859. s.SoundId="rbxassetid://"..id
  860. s.PlayOnRemove=true
  861. return s
  862. end
  863. ----------------------------------------------------
  864. function newRay(start,face,range,wat)
  865. local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
  866. hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
  867. return rey,hit,pos
  868. end
  869. ----------------------------------------------------
  870. function lerp(a, b, t) -- Linear interpolation
  871. return a + (b - a)*t
  872. end
  873.  
  874. function slerp(a, b, t) --Spherical interpolation
  875. dot = a:Dot(b)
  876. if dot > 0.99999 or dot < -0.99999 then
  877. return t <= 0.5 and a or b
  878. else
  879. r = math.acos(dot)
  880. return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r)
  881. end
  882. end
  883. function matrixInterpolate(a, b, t)
  884. local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components()
  885. local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components()
  886. local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position
  887. local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right
  888. local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up
  889. local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back
  890. local t = v1:Dot(v2)
  891. if not (t < 0 or t == 0 or t > 0) then -- Failsafe
  892. return CFrame.new()
  893. end
  894. return CFrame.new(
  895. v0.x, v0.y, v0.z,
  896. v1.x, v1.y, v1.z,
  897. v2.x, v2.y, v2.z,
  898. v3.x, v3.y, v3.z)
  899. end
  900. ----------------------------------------------------
  901. function genWeld(a,b)
  902. local w = Instance.new("Weld",a)
  903. w.Part0 = a
  904. w.Part1 = b
  905. return w
  906. end
  907. function weld(a, b)
  908. local weld = Instance.new("Weld")
  909. weld.Name = "W"
  910. weld.Part0 = a
  911. weld.Part1 = b
  912. weld.C0 = a.CFrame:inverse() * b.CFrame
  913. weld.Parent = a
  914. return weld;
  915. end
  916. ----------------------------------------------------
  917. function Lerp(c1,c2,al)
  918. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  919. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  920. for i,v in pairs(com1) do
  921. com1[i] = v+(com2[i]-v)*al
  922. end
  923. return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
  924. end
  925. ----------------------------------------------------
  926. function FindNearestTorso(Position,Distance,SinglePlayer)
  927. if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
  928. local List = {}
  929. for i,v in pairs(workspace:GetChildren())do
  930. if v:IsA("Model")then
  931. if v:findFirstChild("Torso")then
  932. if v ~= char then
  933. if(v.Torso.Position -Position).magnitude <= Distance then
  934. table.insert(List,v)
  935. end
  936. end
  937. end
  938. end
  939. end
  940. return List
  941. end
  942. ----------------------------------------------------
  943. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  944. local wld = Instance.new("Weld", wp1)
  945. wld.Part0 = wp0
  946. wld.Part1 = wp1
  947. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  948. end
  949. ----------------------------------------------------
  950. function weld5(part0, part1, c0, c1)
  951. weeld=Instance.new("Weld", part0)
  952. weeld.Part0=part0
  953. weeld.Part1=part1
  954. weeld.C0=c0
  955. weeld.C1=c1
  956. return weeld
  957. end
  958. ----------------------------------------------------
  959. local animpose = "Idle"
  960. local lastanimpose = "Idle"
  961. local sine = 0
  962. local change = 1
  963. local val = 0
  964. local ffing = false
  965. ----------------------------------------------------
  966. ----------------------------------------------------
  967. mouse.KeyDown:connect(function(key)
  968. if key == "e" then
  969. if Debounces.CanAttack == true then
  970. Debounces.CanAttack = false
  971. Debounces.NoIdl = true
  972. Debounces.on = true
  973.  
  974. for i = 1, 20 do
  975. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1)
  976. if Debounces.on == false then break end
  977. rs:wait()
  978. end
  979.  
  980. local Ball = Instance.new("Part",rarm)
  981. Ball.Size = Vector3.new(.1,.1,.1) ---- For the hitbox.
  982. Ball.BrickColor = BrickColor.new("Royal purple")
  983. Ball.TopSurface = 0
  984. Ball.Material = "Neon"
  985. Ball.BottomSurface = 0 ---- To make the top and bottom look smooth
  986. Ball.CanCollide = true
  987.  
  988. local Ball2 = Instance.new("Weld",Ball)
  989. Ball2.Part0 = rarm
  990. Ball2.Part1 = Ball
  991. Ball2.C0 = CFrame.new(0,-1.1,0)
  992.  
  993. local Ball3 = Instance.new("SpecialMesh",Ball)
  994. Ball3.MeshType = "Sphere" --- SInce its a ball and if you wanna do a random mesh then its MeshId = ""
  995. Ball3.Scale = Vector3.new(0.5,0.5,0.5) -- To start it off tiny as it grows.
  996.  
  997. local c = game.Players.LocalPlayer.Character
  998. local radius = 10
  999. local pos = Ball.CFrame
  1000. local clrz = {'Really black','Royal purple'};
  1001. for HAAA = 1, 20 do
  1002. for i = 1,1 do
  1003. local clr = clrz[math.random(1,#clrz)]
  1004. pos = Ball.CFrame
  1005. local p = Instance.new('Part',c)
  1006. local mafc,mafa = math.random(-10,10), math.random(-360,360)
  1007. p.CanCollide = false
  1008. p.FormFactor = 3
  1009. p.Size = Vector3.new(1,1,1)
  1010. local m = Instance.new('SpecialMesh',p)
  1011. m.MeshType = 'Brick'
  1012. spawn(function()
  1013. for i = 0,50 do
  1014. local int,int2 = .02,.02
  1015. m.Scale = m.Scale - Vector3.new(int,int,int)
  1016. p.Transparency = p.Transparency + int2
  1017. Ball3.Scale = Ball3.Scale + Vector3.new(0.02,0.02,0.02)
  1018. game:service'RunService'.RenderStepped:wait()
  1019. end
  1020. pcall(function()
  1021. p:Destroy()
  1022. end)
  1023. end)
  1024. p.BrickColor = BrickColor.new(clr)
  1025. p.Material = 'Neon'
  1026. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1027. local bp = Instance.new('BodyPosition',p)
  1028. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1029. bp.D = 100
  1030. bp.P = 100
  1031. bp.Position = pos.p
  1032. game.Debris:AddItem(p,10)
  1033. end
  1034. end
  1035.  
  1036. wait(1)
  1037. Ball2:remove()
  1038. Ball.CFrame = rarm.CFrame*CFrame.new(0,0,-4)
  1039.  
  1040. local Fly = Instance.new("BodyVelocity",Ball)
  1041. Fly.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1042. Ball.CFrame = CFrame.new(mouse.Hit.p)
  1043. Fly.velocity = Ball.CFrame.lookVector*65
  1044.  
  1045.  
  1046.  
  1047. Ball.Touched:connect(function(hit)--LINE 170
  1048. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent~=nil and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" and hit~="XIxSandStormxIX" or hit.Parent~="XIxSandStormxIX" or hit.Name~="XIxSandStormxIX" or hit~="XIxSandStormxIX"then
  1049.  
  1050. for i,v in pairs(FindNearestTorso(Ball.CFrame.p,5))do
  1051. if v:FindFirstChild('Humanoid') and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" and hit~="XIxSandStormxIX" or hit.Parent~="XIxSandStormxIX" or hit.Name~="XIxSandStormxIX" or hit~="XIxSandStormxIX" then
  1052. v.Humanoid:TakeDamage(math.random(3,6))
  1053. end
  1054. end
  1055. Fly:Destroy()
  1056. Ball.Anchored = true
  1057. Ball.CanCollide = false
  1058. for i = 1,50 do
  1059. wait()
  1060. Ball3.Scale = Ball3.Scale + Vector3.new(1,1,1)
  1061. Ball.Transparency = Ball.Transparency + .1
  1062. end
  1063. end
  1064. end)
  1065. if Debounces.CanAttack == false then
  1066. Debounces.CanAttack = true
  1067. Debounces.NoIdl = false
  1068. Debounces.on = false
  1069. end
  1070. end
  1071. end
  1072. end)
  1073. ----------------------------------------------------------
  1074. --[[attacktype = 1
  1075. attack = false
  1076.  
  1077. function attackone()
  1078. attack = true
  1079. for i = 1, 20 do
  1080. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .3)
  1081. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  1082. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 0.3, .3) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(30)), 0.3)
  1083. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(120), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1084. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1085. rs:wait()
  1086. end
  1087. for i = 1, 20 do
  1088. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .5)
  1089. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.5, -.5) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-30)), 0.5)
  1090. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1091. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1092. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-120), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1093. rs:wait()
  1094. end
  1095. attack = false
  1096. end
  1097.  
  1098.  
  1099. function attacktwo()
  1100. attack = true
  1101. for i = 1, 20 do
  1102. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1103. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.5, -.5) * CFrame.Angles(math.rad(150), math.rad(0), math.rad(0)), 0.3)
  1104. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.3, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1105. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1106. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-85), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1107. rs:wait()
  1108. end
  1109. for i = 1, 20 do
  1110. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .5)
  1111. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.2, 0.3, -.5) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-30)), 0.5)
  1112. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-50)), 0.5)
  1113. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1114. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-85), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1115. rs:wait()
  1116. end
  1117. attack = false
  1118. end
  1119.  
  1120. function attackthree()
  1121. attack = true
  1122.  
  1123. for i = 1, 20 do
  1124. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3)
  1125. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.8, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-30)), 0.3)
  1126. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.3, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.3)
  1127. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1128. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-140), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3)
  1129. rs:wait()
  1130. end
  1131. for i = 1, 20 do
  1132. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-50)), .5)
  1133. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.4, 0.5, 0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(30)), 0.5)
  1134. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3, 0.3, 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(-30)), 0.5)
  1135. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, -.3) * CFrame.Angles(math.rad(0), math.rad(140), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1136. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-1, -1, .2) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(0)) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .5)
  1137. rs:wait()
  1138. end
  1139. attack = false
  1140. end
  1141.  
  1142. mouse.Button1Down:connect(function()
  1143. if Debounces.CanAttack == true then
  1144. Debounces.CanAttack = false
  1145. Debounces.NoIdl = true
  1146. Debounces.on = true
  1147.  
  1148. if Debounces.CanAttack == false then
  1149. Debounces.CanAttack = true
  1150. Debounces.NoIdl = false
  1151. Debounces.on = false
  1152. if attack == false and attacktype == 1 then
  1153. attacktype = 2
  1154. attackone()
  1155. elseif attack == false and attacktype == 2 then
  1156. attacktype = 3
  1157. attacktwo()
  1158. elseif attack == false and attacktype == 3 then
  1159. attacktype = 1
  1160. attackthree()
  1161. end
  1162. end)]]
  1163.  
  1164. ----------------------------------------------------------
  1165. mouse.KeyDown:connect(function(key)
  1166. if key == "q" then
  1167. if Debounces.CanAttack == true then
  1168. Debounces.CanAttack = false
  1169. Debounces.NoIdl = true
  1170. Debounces.on = true
  1171.  
  1172. for i = 1, 20 do
  1173. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1)
  1174. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4)
  1175. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4)
  1176. if Debounces.on == false then break end
  1177. rs:wait()
  1178. end
  1179. for i = 1, 20 do
  1180. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(20)), 1)
  1181. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4)
  1182. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4)
  1183. if Debounces.on == false then break end
  1184. rs:wait()
  1185. end
  1186.  
  1187. hum.WalkSpeed = 0
  1188. local m0del = Instance.new('Model',char)
  1189. local wave = Instance.new('Part',m0del)
  1190. wave.CFrame = char.Torso.CFrame * CFrame.new(3.5, 0, 0)
  1191. wave.TopSurface = 'Smooth'
  1192. wave.BottomSurface = 'Smooth'
  1193. wave.BrickColor = BrickColor.new('Royal purple')
  1194. wave.Anchored = true
  1195. wave.FormFactor = 'Custom'
  1196. wave.Shape = 'Ball'
  1197. wave.CanCollide = false
  1198. wave.Material = 'Neon'
  1199. wave.Size = Vector3.new(.4, .4, .4)
  1200. local lite = Instance.new('SelectionSphere',wave)
  1201. lite.Transparency = .7
  1202. lite.Color = BrickColor.new('Royal purple')
  1203. lite.Adornee = wave
  1204. for awe = 1, 32 do
  1205. wave.Size = Vector3.new(wave.Size.X+.6, wave.Size.Y+.6, wave.Size.Z+.6)
  1206. wait()
  1207. wave.CFrame = wave.CFrame * CFrame.new(.5, 0, 0)
  1208. end
  1209. for zfvadi = 1, 20 do
  1210. wave.CFrame = wave.CFrame * CFrame.new(-1, 0, -1)
  1211. wait()
  1212. end
  1213. local beam = Instance.new('Part',m0del)
  1214. beam.TopSurface = 'Smooth'
  1215. beam.BottomSurface = 'Smooth'
  1216. beam.Material = 'Neon'
  1217. beam.Transparency = .6
  1218. beam.Anchored = true
  1219. beam.BrickColor = BrickColor.new('Royal purple')
  1220. beam.CanCollide = false
  1221. local mesh = Instance.new('CylinderMesh',beam)
  1222. local realbeam = beam:Clone()
  1223. realbeam.Parent = m0del
  1224. realbeam.BrickColor = BrickColor.new('Royal purple')
  1225. realbeam.Transparency = .1
  1226. realbeam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1227. beam.CFrame = wave.CFrame * CFrame.Angles(math.rad(90), 0, 0)
  1228. beam.Size = Vector3.new(23, 10/2, 23)
  1229. realbeam.Size = Vector3.new(24, 10/2, 24)
  1230. for HAAA = 1, 100 do
  1231. local starthere = char.Torso.CFrame * CFrame.new(0, 0, -17.5)
  1232. local idek = Ray.new(starthere.p,(starthere.p -(starthere * CFrame.new(0, 0, 1)).p).unit * 1000)
  1233. local thx = {char, m0del}
  1234. local p = wave:Clone()
  1235. table.insert(thx, p)
  1236. local Bonk, ovhere = workspace:FindPartOnRayWithIgnoreList(idek, thx)
  1237. local meg
  1238.  
  1239. if Bonk then
  1240. if Bonk.CanCollide == false then
  1241. table.insert(thx,Bonk)
  1242. end
  1243. p.Parent = m0del
  1244. p.Size = Vector3.new(28, 28, 28)
  1245. p.Position = ovhere
  1246. end
  1247. if Bonk and Bonk.Parent:findFirstChild'Humanoid' then
  1248. local dionamuh = Bonk.Parent:findFirstChild'Humanoid'
  1249. dionamuh.Health = dionamuh.Health - 11
  1250. end
  1251. meg = (starthere.p - ovhere).magnitude
  1252. wait(.01)
  1253. p:Destroy()
  1254. wait(.01)
  1255. realbeam.Size = Vector3.new(25/2, meg, 25/2)
  1256. beam.Size = Vector3.new(26/2, meg, 26/2)
  1257. realbeam.CFrame = starthere * CFrame.new(0, 0, -meg/2) * CFrame.Angles(math.rad(90), 0, 0)
  1258. beam.CFrame = starthere * CFrame.new(0, 0, -meg/2) * CFrame.Angles(math.rad(90), 0, 0)
  1259. wave.CFrame = starthere
  1260. end
  1261. hum.WalkSpeed = 16
  1262. game:GetService('Debris'):AddItem(m0del, 4)
  1263. wait(3)
  1264.  
  1265. if Debounces.CanAttack == false then
  1266. Debounces.CanAttack = true
  1267. Debounces.NoIdl = false
  1268. Debounces.on = false
  1269. end
  1270. end
  1271. end
  1272. end)
  1273. ----------------------------------------------------------
  1274. --[[mouse.KeyDown:connect(function(key)
  1275. if key == "f" then
  1276. if Debounces.CanAttack == true then
  1277. Debounces.CanAttack = false
  1278. Debounces.NoIdl = true
  1279. Debounces.on = true
  1280.  
  1281. for i = 1, 20 do
  1282. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(.75, .4, -.4)*CFrame.Angles(math.rad(20),math.rad(-10),math.rad(0)), 1)
  1283. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-.75, .4, -.4)*CFrame.Angles(math.rad(20),math.rad(10),math.rad(0)), 1)
  1284. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1)
  1285. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 1)
  1286. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.65, -1, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(11)), 1)
  1287. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.65, -1, 0) * CFrame.Angles(math.rad(90), math.rad(-0), math.rad(-11)), 1)
  1288. if Debounces.on == false then break end
  1289. rs:wait()
  1290. end
  1291.  
  1292. local c = game.Players.LocalPlayer.Character
  1293. local radius = 10
  1294. local pos = torso.CFrame
  1295. local clrz = {'Really black','Royal purple'};
  1296. for HAAA = 1, 20 do
  1297. for i = 1,1 do
  1298. local clr = clrz[math.random(1,#clrz)]
  1299. pos = torso.CFrame
  1300. local p = Instance.new('Part',c)
  1301. local mafc,mafa = math.random(-10,10), math.random(-360,360)
  1302. p.CanCollide = false
  1303. p.FormFactor = 3
  1304. p.Size = Vector3.new(1,1,1)
  1305. local m = Instance.new('SpecialMesh',p)
  1306. m.MeshType = 'Brick'
  1307. spawn(function()
  1308. for i = 0,50 do
  1309. local int,int2 = .02,.02
  1310. m.Scale = m.Scale - Vector3.new(int,int,int)
  1311. p.Transparency = p.Transparency + int2
  1312. game:service'RunService'.RenderStepped:wait()
  1313. end
  1314. pcall(function()
  1315. p:Destroy()
  1316. end)
  1317. end)
  1318. p.BrickColor = BrickColor.new(clr)
  1319. p.Material = 'Neon'
  1320. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1321. local bp = Instance.new('BodyPosition',p)
  1322. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1323. bp.D = 1000000
  1324. bp.P = 10000
  1325. bp.Position = pos.p
  1326. game.Debris:AddItem(p,10)
  1327. end
  1328. end
  1329. if Debounces.CanAttack == false then
  1330. Debounces.CanAttack = true
  1331. Debounces.NoIdl = false
  1332. Debounces.on = false
  1333. end
  1334. end
  1335. end
  1336. end)]]
  1337. ----------------------------------------------------------
  1338. --Basic laser--
  1339. --- MODMODE ACTIVATE <(^__^)> ---
  1340.  
  1341.  
  1342. local p = game.Players.LocalPlayer
  1343. local char = p.Character
  1344. local rarm = char["Right Arm"]
  1345. local torso = char.Torso
  1346. local shl=torso['Right Shoulder']
  1347. local mouse = p:GetMouse()
  1348. hold=false
  1349.  
  1350. rw=nil
  1351. n_cf=CFrame.new(1,.5,0)
  1352.  
  1353. --mouse.Button1Down:connect(function()
  1354. mouse.KeyDown:connect(function(key)
  1355. if key == "x" then
  1356. local laz = Instance.new("Part",char)
  1357. laz.Anchored=true
  1358. laz.BrickColor=BrickColor.new"New Yeller"
  1359. laz.CanCollide=false
  1360. for _,v in pairs(Enum.NormalId:GetEnumItems())do
  1361. laz[v.Name..'Surface']=0 end
  1362. laz.Size=Vector3.new(0,0,0)
  1363. Instance.new("CylinderMesh",laz).Name='m'
  1364. pos = (rarm.CFrame*CFrame.new(0,-1.2,0)).p
  1365. hold=true
  1366.  
  1367. local ptick=tick()
  1368.  
  1369. while hold do
  1370. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1)
  1371. if (tick()-ptick)>.1 then
  1372. Spawn(function()
  1373. local cl=laz:Clone()
  1374. cl.Parent=char
  1375. local msh=cl.m
  1376. local r=5
  1377. for i=0,1,.1 do
  1378. msh.Scale=Vector3.new(1+i*r,1,1+i*r)
  1379. cl.Transparency=i
  1380. wait()
  1381. end
  1382. cl:Destroy()
  1383. end)
  1384. ptick=tick()
  1385. end
  1386.  
  1387. local mag = (pos-mouse.hit.p).magnitude
  1388. laz.Size = Vector3.new(1,mag,1)
  1389.  
  1390. laz.CFrame = (CFrame.new(pos,mouse.hit.p)*CFrame.new(0,0,-mag/2))*CFrame.Angles(math.pi/2,0,0)
  1391.  
  1392. pos = (rarm.CFrame*CFrame.new(0,-1.2,0)).p
  1393. wait()
  1394. end
  1395. laz:Destroy()
  1396. end
  1397. end)
  1398. --end)
  1399.  
  1400. --mouse.Button1Up:connect(function()
  1401. mouse.KeyUp:connect(function(key)
  1402. if key == "x" then
  1403. hold=false
  1404. end
  1405. end)
  1406. --end)
  1407. mouse.KeyDown:connect(function(key)
  1408. if key == "z" then
  1409. if Debounces.CanAttack == true then
  1410. Debounces.CanAttack = false
  1411. Debounces.NoIdl = true
  1412. Debounces.on = true
  1413. hostile = true
  1414. for i = 1, 15 do
  1415. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(-20)), 1)
  1416. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4)
  1417. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4)
  1418. if Debounces.on == false then break end
  1419. rs:wait()
  1420. end
  1421. for i = 1, 15 do
  1422. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(100),math.rad(-4),math.rad(20)), 1)
  1423. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4)
  1424. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4)
  1425. if Debounces.on == false then break end
  1426. rs:wait()
  1427. end
  1428.  
  1429. if armloop then
  1430. ch['Right Arm'].Anchored = true
  1431. local p0 = ch.Torso.CFrame
  1432. p0 = p0 + ((p0 * ca(pi/-2,0,0)).lookVector * -0.5) + (p0 * ca(0,pi/-2,0)).lookVector
  1433. local p1 = p0 + ((p0.p-lp:GetMouse().Hit.p).unit * -2)
  1434. ch['Right Arm'].CFrame = cf((p0.p + p1.p)/2,p0.p) * ca(-math.pi/2,0,0)
  1435. end
  1436.  
  1437. local m0del = Instance.new('Model',char)
  1438. local wave = Instance.new('Part',m0del)
  1439. wave.CFrame = char.Torso.CFrame * CFrame.new(0, 30, 0)
  1440. wave.TopSurface = 'Smooth'
  1441. wave.BottomSurface = 'Smooth'
  1442. wave.BrickColor = BrickColor.new('Royal purple')
  1443. wave.Anchored = true
  1444. wave.FormFactor = 'Custom'
  1445. wave.Shape = 'Ball'
  1446. wave.CanCollide = false
  1447. wave.Material = 'Neon'
  1448. wave.Size = Vector3.new(3, 3, 3)
  1449. local lite = Instance.new('SelectionSphere',wave)
  1450. lite.Transparency = .7
  1451. lite.Color = BrickColor.new('Royal purple')
  1452. lite.Adornee = wave
  1453. for awe = 1, 32 do
  1454. wave.Size = Vector3.new(wave.Size.X+1, wave.Size.Y+1, wave.Size.Z+1)
  1455. wait()
  1456. wave.CFrame = wave.CFrame * CFrame.new(0, .5, 0)
  1457. end
  1458. wave.Touched:connect(function(hit)--LINE 170
  1459. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then
  1460.  
  1461. for i,v in pairs(FindNearestTorso(wave.CFrame.p,20))do
  1462. if v:FindFirstChild('Humanoid') and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then
  1463. v.Humanoid:TakeDamage(math.random(300,600))
  1464. end
  1465. end
  1466.  
  1467. end
  1468. end)
  1469. for zfvadi = 1, 25 do
  1470. wave.CFrame = wave.CFrame * CFrame.new(0, -2, -2)
  1471. wait()
  1472. end
  1473.  
  1474. wave.Touched:connect(function(hit)--LINE 170
  1475. if hit.Parent:FindFirstChild("Humanoid") and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then
  1476.  
  1477. for i,v in pairs(FindNearestTorso(wave.CFrame.p,20))do
  1478. if v:FindFirstChild('Humanoid') and hit.Parent~="XIxSandStormxIX" and hit.Name~="XIxSandStormxIX" then
  1479. v.Humanoid:TakeDamage(math.random(300,600))
  1480. end
  1481. end
  1482.  
  1483. end
  1484. end)
  1485. wait(1)
  1486. for zfvadi = 1, 25 do
  1487. wave.Size = Vector3.new(wave.Size.X-1.5, wave.Size.Y-1.5, wave.Size.Z-1.5)
  1488. wave.Transparency = wave.Transparency + .5
  1489. wait()
  1490. end
  1491. game:GetService('Debris'):AddItem(m0del, 4)
  1492. hum.WalkSpeed = 16
  1493. if Debounces.CanAttack == false then
  1494. Debounces.CanAttack = true
  1495. Debounces.NoIdl = false
  1496. Debounces.on = false
  1497. end
  1498. end
  1499. hostile = false
  1500. end
  1501. end)
  1502. ----------------------------------------------------------
  1503. mouse.KeyDown:connect(function(key)
  1504. if key == "g" then
  1505. if Debounces.CanAttack == true then
  1506. Debounces.CanAttack = false
  1507. Debounces.NoIdl = true
  1508. Debounces.on = true
  1509. if Debounces.CanAttack == false then
  1510. Debounces.CanAttack = true
  1511. Debounces.NoIdl = false
  1512. Debounces.on = false
  1513. end
  1514. end
  1515. end
  1516. end)
  1517. ----------------------------------------------------
  1518. mouse.KeyDown:connect(function(key)
  1519. if key == "m" then
  1520. if Debounces.CanAttack == true then
  1521. Debounces.CanAttack = false
  1522. Debounces.on = true
  1523. Debounces.NoIdl = true
  1524. hum.WalkSpeed = 50
  1525.  
  1526. BV = Instance.new("BodyVelocity", torso)
  1527. BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1528. BV.P = 300000
  1529. BV.Velocity = Vector3.new(0,200,0)
  1530. game:GetService("Debris"):AddItem(BV,.07)
  1531.  
  1532. for i = 1, 20 do
  1533. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7)
  1534. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
  1535. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7)
  1536. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7)
  1537. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
  1538. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
  1539. if Debounces.on == false then break end
  1540. wait()
  1541. end
  1542. BV:Destroy()
  1543. if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then
  1544. for i = 1, 30 do
  1545. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3)
  1546. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1547. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
  1548. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)), 0.3)
  1549. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1550. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1551. if Debounces.on == false then break end
  1552. wait()
  1553. end
  1554. end
  1555.  
  1556.  
  1557.  
  1558.  
  1559. hum.WalkSpeed = 16
  1560. Debounces.on = false
  1561. Debounces.NoIdl = false
  1562. if Debounces.CanAttack == false then
  1563. Debounces.CanAttack = true
  1564. end
  1565. end
  1566. end
  1567. end)
  1568. ----------------------------------------------------
  1569. mouse.KeyDown:connect(function(key)
  1570. --if key:byte() == 32 then
  1571. if key == "c" then
  1572. if Debounces.CanAttack == true then
  1573. Debounces.CanAttack = false
  1574. Debounces.NoIdl = true
  1575. Debounces.on = true
  1576. local vu = Instance.new("BodyVelocity",torso)
  1577. vu.P = 500
  1578. vu.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1579. vu.velocity = Vector3.new(torso.CFrame.lookVector.X,torso.CFrame.lookVector.Y,torso.CFrame.lookVector.Z)
  1580. game:GetService("Debris"):AddItem(vu,0.267)
  1581. if Debounces.CanAttack == false then
  1582. Debounces.CanAttack = true
  1583. Debounces.NoIdl = false
  1584. Debounces.on = false
  1585. end
  1586. end
  1587. end
  1588. end)
  1589. ----------------------------------------------------------
  1590. mouse.KeyDown:connect(function(key)
  1591. if key == "v" then
  1592. if Debounces.CanAttack == true then
  1593. Debounces.CanAttack = false
  1594. Debounces.NoIdl = true
  1595. Debounces.on = true
  1596.  
  1597. slash()
  1598. if Debounces.CanAttack == false then
  1599. Debounces.CanAttack = true
  1600. Debounces.NoIdl = false
  1601. Debounces.on = false
  1602. end
  1603. end
  1604.  
  1605. end
  1606. end)
  1607. ----------------------------------------------------------
  1608. mouse.KeyDown:connect(function(key)
  1609. if key == "r" then
  1610. if Debounces.CanAttack == true then
  1611. Debounces.CanAttack = false
  1612. Debounces.on = true
  1613. Debounces.NoIdl = true
  1614.  
  1615.  
  1616. for i = 1,20 do
  1617. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(-55)), 0.01)
  1618. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(115), math.rad(0), math.rad(55)), 0.01)
  1619. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)),0.1)
  1620. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), 0), 0.01)
  1621. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.01)
  1622. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-60), 0, math.rad(0)), 0.01)
  1623. if Debounces.on == false then break end
  1624. wait()
  1625. end
  1626.  
  1627. to = hitbox.Touched:connect(function(hit)
  1628. hit = hit.Parent
  1629. if hit and hit:IsA("Model") then
  1630. if hit:FindFirstChild("Humanoid") then
  1631. if hit.Name ~= p.Name then
  1632. hit:FindFirstChild("Humanoid"):TakeDamage(10)
  1633. end
  1634. end
  1635. end
  1636. end)
  1637.  
  1638. for i = 1,26 do
  1639. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-55)), 0.1)
  1640. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(55)), 0.1)
  1641. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(0)),0.1)
  1642. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-40), math.rad(0), 0), 0.1)
  1643. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(50), 0, math.rad(0)), 0.1)
  1644. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(0)), 0.1)
  1645. if Debounces.on == false then break end
  1646. wait()
  1647. end
  1648. wait(.5)
  1649. to:disconnect()
  1650. if Debounces.CanAttack == false then
  1651. Debounces.CanAttack = true
  1652. Debounces.on = false
  1653. Debounces.NoIdl = false
  1654. end
  1655. end
  1656. end
  1657. end)
  1658.  
  1659. ----------------------------------------------------------
  1660. function unhols()
  1661. asd = handle:findFirstChild("HolstWeld")
  1662. asd:Destroy()
  1663. partweld.Parent = handle
  1664. on=false
  1665. end
  1666.  
  1667. function hols()
  1668. local asd = Instance.new("Weld", handle)
  1669. asd.Name = "HolstWeld"
  1670. asd.Part0 = handle
  1671. asd.Part1 = char.Torso
  1672. asd.C0 = CFrame.new(0,0,-.6)*CFrame.Angles(0,0,260)
  1673. partweld.Parent=nil
  1674. on = true
  1675. end
  1676.  
  1677. function particle()
  1678. local c = game.Players.LocalPlayer.Character
  1679. local radius = 10
  1680. local pos = torso.CFrame
  1681. local clrz = {'Really black','Royal purple'};
  1682. for HAAA = 1, 20 do
  1683. for i = 1,1 do
  1684. local clr = clrz[math.random(1,#clrz)]
  1685. pos = torso.CFrame
  1686. local p = Instance.new('Part',c)
  1687. local mafc,mafa = math.random(-10,10), math.random(-360,360)
  1688. p.CanCollide = false
  1689. p.FormFactor = 3
  1690. p.Size = Vector3.new(1,1,1)
  1691. local m = Instance.new('SpecialMesh',p)
  1692. m.MeshType = 'Brick'
  1693. spawn(function()
  1694. for i = 0,50 do
  1695. local int,int2 = .02,.02
  1696. m.Scale = m.Scale - Vector3.new(int,int,int)
  1697. p.Transparency = p.Transparency + int2
  1698. game:service'RunService'.RenderStepped:wait()
  1699. end
  1700. pcall(function()
  1701. p:Destroy()
  1702. end)
  1703. end)
  1704. p.BrickColor = BrickColor.new(clr)
  1705. p.Material = 'Neon'
  1706. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  1707. local bp = Instance.new('BodyPosition',p)
  1708. bp.MaxForce = Vector3.new(1/0,1/0,1/0)
  1709. bp.D = 1000000
  1710. bp.P = 10000
  1711. bp.Position = pos.p
  1712. game.Debris:AddItem(p,10)
  1713. end
  1714. end
  1715. end
  1716. ----------------------------------------------------------
  1717. Holstered = "off"
  1718.  
  1719. mouse.KeyDown:connect(function(key)
  1720.  
  1721. if key == "f" then
  1722.  
  1723. if Holstered == "off" then
  1724.  
  1725. hols()
  1726.  
  1727. particle()
  1728.  
  1729. Holstered = "on"
  1730.  
  1731. elseif Holstered == "on" then
  1732.  
  1733. unhols()
  1734.  
  1735. particle()
  1736.  
  1737. Holstered = "off"
  1738.  
  1739. end
  1740.  
  1741. end
  1742.  
  1743. end)
  1744. ----------------------------------------------------------
  1745. game:GetService("RunService").RenderStepped:connect(function()
  1746. char.Humanoid.FreeFalling:connect(function(f)
  1747. if f then
  1748. ffing = true
  1749. else
  1750. ffing = false
  1751. end
  1752. end)
  1753. sine = sine + change
  1754. if jumpn == true then
  1755. animpose = "Jumping"
  1756. elseif ffing == true then
  1757. animpose = "Freefalling"
  1758. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
  1759. animpose = "Idle"
  1760. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
  1761. animpose = "Walking"
  1762. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
  1763. animpose = "Running"
  1764. end
  1765. if animpose ~= lastanimpose then
  1766. sine = 0
  1767. if Debounces.NoIdl == false then
  1768. if animpose == "Idle" then
  1769. for i = 1, 2 do
  1770. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-6),math.rad(8)), 1)
  1771. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(6),math.rad(-8)), 1)
  1772. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1)
  1773. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-2),0, math.rad(0)), 1)
  1774. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-16)), 1)
  1775. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(16)), 1)
  1776. end
  1777. elseif animpose == "Walking" then
  1778. for i = 1, 2 do
  1779. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-12),math.rad(14+24*math.cos(sine/8))),--[[Speed]] 0.2)
  1780. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(12),math.rad(-14-24*math.cos(sine/8))),--[[Speed]] 0.2)
  1781. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-0),0,0),--[[Speed]] 0.4)
  1782. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-0),0, math.rad(0)),--[[Speed]] 0.05)
  1783. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(-18)),--[[Speed]] 0.4)
  1784. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-0), 0, math.rad(18)), --[[Speed]]0.4)
  1785. end
  1786. elseif animpose == "Freefalling" then
  1787. for i = 1, 2 do
  1788. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7)
  1789. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
  1790. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7)
  1791. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7)
  1792. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
  1793. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
  1794. end
  1795. elseif animpose == "Running" then
  1796. for i = 1, 2 do
  1797. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 1)
  1798. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 1)
  1799. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-12),0,0), 1)
  1800. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-18),0, math.rad(0)), 1)
  1801. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-16)), 1)
  1802. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(16)), 1)
  1803. wait()
  1804. end
  1805. end
  1806. else
  1807. end
  1808. end
  1809. lastanimpose = animpose
  1810. if Debounces.NoIdl == false then
  1811. if animpose == "Idle" then
  1812. change = 0.5
  1813. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-6),math.rad(8)), 1)
  1814. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(6),math.rad(-8)), 1)
  1815. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1)
  1816. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-2),0, math.rad(0)), 1)
  1817. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-16)), 1)
  1818. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(16)), 1)
  1819. elseif animpose == "Walking" then
  1820. change = 1
  1821. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 1)
  1822. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-0),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 1)
  1823. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.0) * CFrame.Angles(math.rad(-0),0,0), 1)
  1824. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-4),0, math.rad(0)), 1)
  1825. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5,-1-0*math.cos(sine/14)/2,-.05 + math.sin(sine/14)/6) * CFrame.Angles(math.rad(-8) + -math.sin(sine/10)/2, 0, 0), 1)
  1826. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5,-1+0*math.cos(sine/14)/2,-.05 + -math.sin(sine/14)/6) * CFrame.Angles(math.rad(-8) + math.sin(sine/10)/2, 0, 0), 1)
  1827. elseif animpose == "Running" then
  1828. change = 1
  1829. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 1)
  1830. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.53,0)*CFrame.Angles(math.rad(-14),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 1)
  1831. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -.2) * CFrame.Angles(math.rad(-12),0,0), 1)
  1832. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0-0.1*math.cos(sine/5), 0) * CFrame.Angles(math.rad(-4),0, math.rad(0)), 1)
  1833. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(-16)), 1)
  1834. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-14), 0, math.rad(16)), 1)
  1835. end
  1836. end
  1837. end)
Add Comment
Please, Sign In to add comment