jericoalejo

royal scythizone (roblox script)

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