Its_YeBoi

Untitled

Jan 29th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.56 KB | None | 0 0
  1. local plr = game:service'Players'.LocalPlayer
  2. local pl = plr
  3. repeat wait() until plr.Character
  4. local chr = plr.Character
  5. local ch = chr
  6. local Character = chr
  7. local maus = plr:GetMouse()
  8. local PGui=plr.PlayerGui
  9. local lleg = chr["Left Leg"]
  10. local rleg = chr["Right Leg"]
  11. local larm = chr["Left Arm"]
  12. local rarm = chr["Right Arm"]
  13. local hed = chr.Head
  14. local rutprt = chr.HumanoidRootPart
  15. it=Instance.new
  16. attacktype=1
  17. vt=Vector3.new
  18. cf=CFrame.new
  19. euler=CFrame.fromEulerAnglesXYZ
  20. angles=CFrame.Angles
  21. local torso = chr.Torso
  22. local otheranims=false
  23. local swimming=false
  24. local attacking =false
  25. function punchSfx()
  26. local punch1s = Instance.new("Sound",chr.Torso)
  27. game:service'Debris':AddItem(punch1s,1)
  28. punch1s.Volume=3
  29. punch1s.SoundId='rbxassetid://541909763'
  30. punch1s.PlaybackSpeed = 1.2
  31. punch1s:Play()
  32. end
  33.  
  34.  
  35. function swait(num)
  36. if num==0 or num==nil then
  37. game:service'RunService'.Heartbeat:wait(0)
  38. else
  39. for i=0,num do
  40. game:service'RunService'.Heartbeat:wait(0)
  41. end
  42. end
  43. end
  44.  
  45. --//*CHARACTER
  46.  
  47. function NoOutline(Part)
  48. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  49. end
  50. player=Player
  51. ch=Character
  52.  
  53. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  54. local fp=it("Part")
  55. fp.formFactor=formfactor
  56. fp.Parent=parent
  57. fp.Reflectance=reflectance
  58. fp.Transparency=transparency
  59. fp.CanCollide=false
  60. fp.Locked=true
  61. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  62. fp.Name=name
  63. fp.Size=size
  64. fp.Position=Character.Torso.Position
  65. NoOutline(fp)
  66. fp.Material=material
  67. fp:BreakJoints()
  68. return fp
  69. end
  70.  
  71.  
  72. so = function(id,par,vol,pit)
  73. coroutine.resume(coroutine.create(function()
  74. local sou = Instance.new("Sound",par or workspace)
  75. sou.Volume=vol
  76. sou.Pitch=pit or 1
  77. sou.SoundId=id
  78. swait()
  79. sou:play()
  80. game:GetService("Debris"):AddItem(sou,6)
  81. end))
  82. end
  83.  
  84. function NoOutline(Part)
  85. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  86. end
  87. player=Player
  88. ch=Character
  89.  
  90. function ShowDamage(Pos, Text, Time, Color)
  91. local Rate = (1 / 30)
  92. local Pos = (Pos or Vector3.new(0, 0, 0))
  93. local Text = (Text or "")
  94. local Time = (Time or 2)
  95. local Color = (Color or Color3.new(1, 0, 0))
  96. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",Vector3.new(0,0,0))
  97. EffectPart.Anchored = true
  98. local BillboardGui = Instance.new("BillboardGui")
  99. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  100. BillboardGui.Adornee = EffectPart
  101. local TextLabel = Instance.new("TextLabel")
  102. TextLabel.BackgroundTransparency = 1
  103. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  104. TextLabel.Text = Text
  105. TextLabel.TextColor3 = Color
  106. TextLabel.TextScaled = true
  107. TextLabel.Font = Enum.Font.ArialBold
  108. TextLabel.Parent = BillboardGui
  109. BillboardGui.Parent = EffectPart
  110. game.Debris:AddItem(EffectPart, (Time + 0.1))
  111. EffectPart.Parent = game:GetService("Workspace")
  112. delay(0, function()
  113. local Frames = (Time / Rate)
  114. for Frame = 1, Frames do
  115. wait(Rate)
  116. local Percent = (Frame / Frames)
  117. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  118. TextLabel.TextTransparency = Percent
  119. end
  120. if EffectPart and EffectPart.Parent then
  121. EffectPart:Destroy()
  122. end
  123. end)
  124. end
  125.  
  126. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  127. if hit.Parent==nil then
  128. return
  129. end
  130. local h=hit.Parent:FindFirstChild("Humanoid")
  131. for _,v in pairs(hit.Parent:children()) do
  132. if v:IsA("Humanoid") then
  133. h=v
  134. end
  135. end
  136. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  137. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  138. end
  139. if hit.Parent.className=="Hat" then
  140. hit=hit.Parent.Parent:findFirstChild("Head")
  141. end
  142. if h~=nil and hit.Parent.Name~=chr.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  143. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  144. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  145. return
  146. end]]
  147. -- hs(hit,1.2)
  148. local c=Instance.new("ObjectValue")
  149. c.Name="creator"
  150. c.Value=game:service("Players").LocalPlayer
  151. c.Parent=h
  152. game:GetService("Debris"):AddItem(c,.5)
  153. local Damage=math.random(minim,maxim)
  154. -- h:TakeDamage(Damage)
  155. local blocked=false
  156. local block=hit.Parent:findFirstChild("Block")
  157. if block~=nil then
  158. print(block.className)
  159. if block.className=="NumberValue" then
  160. if block.Value>0 then
  161. blocked=true
  162. if decreaseblock==nil then
  163. block.Value=block.Value-1
  164. end
  165. end
  166. end
  167. if block.className=="IntValue" then
  168. if block.Value>0 then
  169. blocked=true
  170. if decreaseblock~=nil then
  171. block.Value=block.Value-1
  172. end
  173. end
  174. end
  175. end
  176. if blocked==false then
  177. -- h:TakeDamage(Damage)
  178. h.Health=h.Health-Damage
  179. if h.Health == 0 and h.Parent.Name == "Lost Soul" then
  180. game.Players.LocalPlayer:WaitForChild("leaderstats").Currency.Value = game.Players.LocalPlayer:WaitForChild("leaderstats").Currency.Value + 23
  181. end
  182. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  183. else
  184. h.Health=h.Health-(Damage/2)
  185. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  186. end
  187. if Type=="Knockdown" then
  188. local hum=hit.Parent.Humanoid
  189. hum.PlatformStand=true
  190. coroutine.resume(coroutine.create(function(HHumanoid)
  191. swait(1)
  192. HHumanoid.PlatformStand=false
  193. end),hum)
  194. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  195. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  196. local bodvol=Instance.new("BodyVelocity")
  197. bodvol.velocity=angle*knockback
  198. bodvol.P=0
  199. bodvol.maxForce=Vector3.new(10e+003, 10e+003, 10e+003)
  200. bodvol.Parent=hit
  201. local rl=Instance.new("BodyAngularVelocity")
  202. rl.P=0
  203. rl.maxTorque=Vector3.new(1,1,1)*1
  204. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  205. rl.Parent=hit
  206. game:GetService("Debris"):AddItem(bodvol,2)
  207. game:GetService("Debris"):AddItem(rl,2)
  208. end
  209. end
  210. end
  211.  
  212.  
  213. --make hair here :/
  214.  
  215. ch["Body Colors"].HeadColor = BrickColor.new("Pastel brown")
  216. ch["Body Colors"].TorsoColor = BrickColor.new("Pastel brown")
  217. ch["Body Colors"].LeftArmColor = BrickColor.new("Pastel brown")
  218. ch["Body Colors"].RightArmColor = BrickColor.new("Pastel brown")
  219. shirt = Instance.new("Shirt", ch)
  220. shirt.Name = "Shirt"
  221. pants = Instance.new("Pants", ch)
  222. pants.Name = "Pants"
  223. ch.Shirt:Remove()
  224. ch.Pants:Remove()
  225. ch.Shirt.ShirtTemplate = ("http://www.roblox.com/asset/?id = 539481437")
  226. ch.Pants.PantsTemplate = ("http://www.roblox.com/asset/?id = 539482020")
  227. ch.Head.face.Texture = ("rbxassetid://683375744")
  228. for i,v in pairs(ch:GetChildren()) do if v:IsA("Accessory") then
  229. v:Remove()
  230. end
  231. end
  232.  
  233.  
  234.  
  235. Part1 = Instance.new("Part")
  236. SpecialMesh2 = Instance.new("SpecialMesh")
  237. Attachment3 = Instance.new("Attachment")
  238. Vector3Value4 = Instance.new("Vector3Value")
  239. Weld5 = Instance.new("Weld")
  240. Part1.Name = "Handle"
  241. Part1.Parent = game.Players.LocalPlayer.Character
  242. Part1.Anchored = false
  243. Part1.BrickColor = BrickColor.new("Really black")
  244. Part1.Rotation = Vector3.new(8.84999943, 70.3199997, -8.34000015)
  245. Part1.CanCollide = false
  246. Part1.Locked = false
  247. Part1.FormFactor = Enum.FormFactor.Custom
  248. Part1.Size = Vector3.new(1.60002756, 0.800000012, 1.59999776)
  249. Part1.BottomSurface = Enum.SurfaceType.Smooth
  250. Part1.TopSurface = Enum.SurfaceType.Smooth
  251. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  252. Part1.Position = Vector3.new(-718.445313, -25.8889561, 151.164215)
  253. Part1.Orientation = Vector3.new(2.97000003, 70.5299988, 0)
  254. Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  255. SpecialMesh2.Parent = Part1
  256. SpecialMesh2.MeshId = "rbxassetid://560152258"
  257. SpecialMesh2.Scale = Vector3.new(7, 6.30000019, 6)
  258. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  259. SpecialMesh2.Scale = Vector3.new(7, 6.30000019, 6)
  260. Attachment3.Name = "HairAttachment"
  261. Attachment3.Parent = Part1
  262. Attachment3.Rotation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  263. Attachment3.CFrame = CFrame.new(0, -0.100000001, -0.300000012, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  264. Attachment3.Position = Vector3.new(0, -0.100000001, -0.300000012)
  265. Attachment3.Axis = Vector3.new(1, -7.87137555e-09, -3.02998127e-15)
  266. Attachment3.Orientation = Vector3.new(2.37458114e-14, 1.73605135e-13, -4.50996595e-07)
  267. Vector3Value4.Name = "OriginalSize"
  268. Vector3Value4.Parent = Part1
  269. Vector3Value4.Value = Vector3.new(1.60002756, 0.800000012, 1.59999776)
  270. Weld5.Name = "AccessoryWeld"
  271. Weld5.Parent = Part1
  272. Weld5.C0 = CFrame.new(0, -0.100000001, -0.300000012, 1, 7.87137555e-09, 3.02998127e-15, -7.87137555e-09, 1, -4.1444258e-16, -3.02998127e-15, 4.14442554e-16, 1)
  273. Weld5.C1 = CFrame.new(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  274. Weld5.Part0 = Part1
  275. Weld5.Part1 = game.Players.LocalPlayer.Character.Head
  276.  
  277.  
  278.  
  279. ---//*DEBOUNCES
  280. canChangeFromC = true
  281. canChangeFromA = true
  282. canChangeFromCF = true
  283. canChangeFromSF = true
  284. canChangeFromPT = true
  285. canChangeFromGT = true
  286. canChangeFromUT = true
  287. ----
  288. canChangeFromMT = true
  289. ----*\\
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296. ---
  297. ----*\\
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304. --//*Instances
  305.  
  306. ---*\\
  307.  
  308. ----
  309. local multiversalThreat = false
  310. -----*\\
  311. chr.Animate.Disabled=true
  312. local fldb={['w']=false,['a']=false,['s']=false,['d']=false}
  313. local RunSpeed=30
  314.  
  315. local WlkSpeed=16
  316. local SwimSpeed=14
  317. local SwimDashSpeed=28
  318. local anim = "Idling"
  319. local lastanim = "Idling"
  320. local val = 0
  321. local syne = 0
  322. local num = 0
  323. local runtime = 0
  324. local pseudohead=hed:Clone()
  325. for i,x in pairs(pseudohead:GetChildren()) do if not x.ClassName:find('Mesh') then x:Destroy() end end
  326. pseudohead.Name='PseudoHead'
  327. pseudohead.Parent=chr.Head
  328. local pseudoweld=Instance.new('Weld',torso)
  329. pseudoweld.Part0=hed
  330. pseudoweld.Name='PseudoHedWld'
  331. pseudoweld.Part1=pseudohead
  332. hed.Transparency=1
  333. coroutine.wrap(function()
  334. for i,x in pairs(hed:GetChildren()) do if x:IsA('Sound') then x:Destroy() end end end)()
  335. function Lerp(a, b, i)
  336. local com1 = {a.X, a.Y, a.Z, a:toEulerAnglesXYZ()}
  337. local com2 = {b.X, b.Y, b.Z, b:toEulerAnglesXYZ()}
  338. local calx = com1[1] + (com2[1] - com1[1]) * i
  339. local caly = com1[2] + (com2[2] - com1[2]) * i
  340. local calz = com1[3] + (com2[3] - com1[3]) * i
  341. local cala = com1[4] + (com2[4] - com1[4]) * i
  342. local calb = com1[5] + (com2[5] - com1[5]) * i
  343. local calc = com1[6] + (com2[6] - com1[6]) * i
  344. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  345. end
  346. function TwnSingleNumber(s,f,m)
  347. local wot=s+(f-s)*m
  348. return wot
  349. end
  350. function TwnVector3(q,w,e)
  351. local begin={q.x,q.y,q.z}
  352. local ending={w.x,w.y,w.z}
  353. local bgx=begin[1]+(ending[1]-begin[1])*e
  354. local bgy=begin[2]+(ending[2]-begin[2])*e
  355. local bgz=begin[3]+(ending[3]-begin[3])*e
  356. return Vector3.new(bgx,bgy,bgz)
  357. end
  358. newWeld = function(wld, wp0, wp1, wc0x, wc0y, wc0z)
  359. wld = Instance.new("Weld", wp1)
  360. wld.Part0 = wp0
  361. wld.Part1 = wp1
  362. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  363. end
  364. local angles = CFrame.Angles
  365. function clerp(a, b, t)
  366. return a:lerp(b, t)
  367. end
  368. newWeld(law, torso, larm, -1.5, 0.5, 0)
  369. newWeld(raw, torso, rarm, 1.5, 0.5, 0)
  370. newWeld(llw, torso, lleg, -.5, -2, 0)
  371. newWeld(rlw, torso, rleg, .5, -2, 0)
  372. newWeld(hw, torso, hed, 0, 1.5, 0)
  373. local rutwald=Instance.new('Weld',rutprt)
  374. rutwald.Part0=rutprt
  375. rutwald.Part1=torso
  376. rutprt.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),0)
  377. larm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  378. rarm.Weld.C1 = CFrame.new(0, 0.5, 0)*CFrame.Angles(math.rad(0),0,0)
  379. rleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  380. lleg.Weld.C1=CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),0,0)
  381.  
  382. -----
  383. ---------EFFECTS
  384. ---------
  385. ---------DEBOUNCE ENABLE
  386. canChangeFromCF = true
  387. canChangeFromA = true
  388. canChangeFromSF = true
  389. canChangeFromPT = true
  390. canChangeFromGT = true
  391. canChangeFromUT = true
  392. ----
  393. canChangeFromMT = true
  394. ---------
  395.  
  396. ---------EFFECTS
  397.  
  398. ---------
  399.  
  400. ---------DEBOUNCE ENABLE
  401. canChangeFromCF = true
  402. canChangeFromC = true
  403. canChangeFromSF = true
  404. canChangeFromPT = true
  405. canChangeFromGT = true
  406. canChangeFromUT = true
  407. ----
  408. canChangeFromMT = true
  409. ---------
  410. ---------DEBOUNCE ENABLE
  411. wait(1)
  412. canChangeFromC = true
  413. canChangeFromA = true
  414. canChangeFromSF = true
  415. canChangeFromPT = true
  416. canChangeFromGT = true
  417. canChangeFromUT = true
  418. ----
  419. canChangeFromMT = true
  420. ---------
  421.  
  422. ---//*MOVES
  423.  
  424.  
  425.  
  426. --*\\
  427.  
  428. maus.KeyDown:connect(function(kei)
  429. if string.byte(kei)==48 and not otheranims then
  430. runnin=true
  431. end
  432. if kei=='w' then fldb.w=true end
  433. if kei=='a' then fldb.a=true end
  434. if kei=='s' then fldb.s=true end
  435. if kei=='d' then fldb.d=true end
  436. end)
  437. maus.KeyUp:connect(function(kei)
  438. if string.byte(kei)==48 and not otheranims then
  439. runnin=false
  440. end
  441. if kei=='w' then fldb.w=false end
  442. if kei=='a' then fldb.a=false end
  443. if kei=='s' then fldb.s=false end
  444. if kei=='d' then fldb.d=false end
  445. end)
  446.  
  447. function debounce(func)
  448. local isRunning = false -- Create a local debounce variable
  449. return function(...) -- Return a new function
  450. if not isRunning then
  451. isRunning = true
  452.  
  453. func(...) -- Call it with the original arguments
  454.  
  455. isRunning = false
  456. end
  457. end
  458. end
  459.  
  460. local punch1 = false
  461. local punch2 = false
  462. local punch_delay = 0.4
  463. local blue = false
  464. local dmg_val = 1
  465.  
  466. function phit1()
  467. local rm = Instance.new('Part',rarm)
  468. rm.Transparency = 1
  469. rm.Name = "rm"
  470. rm.CanCollide = false
  471. rm.Anchored = false
  472. rm.Size = Vector3.new(1.1, .1, 1.1)
  473. rm.BrickColor=BrickColor.new("Neon orange")
  474. local rmm = Instance.new("SpecialMesh",rm)
  475. rmm.MeshId = "rbxasset://fonts/rightarm.mesh"
  476. rmm.Scale = Vector3.new(1.1, .1, 1.1)
  477. local rw = Instance.new("Weld",rm)
  478. rw.Part0=rm
  479. rw.Part1=rarm
  480. rw.C0=CFrame.new(0,.8,0)
  481.  
  482. rm.Touched:connect(debounce(function(hit)
  483. dmg = true
  484. if hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= game.Players.LocalPlayer.Name then
  485. hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(dmg_val)
  486. end
  487. game:GetService'Debris':AddItem(rm,.00001)
  488. end))
  489. end
  490.  
  491. function phit2()
  492. local rm = Instance.new('Part',larm)
  493. rm.Transparency = 1
  494. rm.Name = "lm"
  495. rm.CanCollide = false
  496. rm.Anchored = false
  497. rm.Size = Vector3.new(1.1, .1, 1.1)
  498. rm.BrickColor=BrickColor.new("Neon orange")
  499. local rmm = Instance.new("SpecialMesh",rm)
  500. rmm.MeshId = "rbxasset://fonts/rightarm.mesh"
  501. rmm.Scale = Vector3.new(1.1, .1, 1.1)
  502. local rw = Instance.new("Weld",rm)
  503. rw.Part0=rm
  504. rw.Part1=larm
  505. rw.C0=CFrame.new(0,.8,0)
  506.  
  507. rm.Touched:connect(debounce(function(hit)
  508. dmg = true
  509. if hit.Parent:FindFirstChildOfClass'Humanoid' and hit.Parent.Name ~= game.Players.LocalPlayer.Name then
  510. hit.Parent:FindFirstChildOfClass'Humanoid':TakeDamage(dmg_val)
  511. end
  512. rm:Destroy()
  513. end))
  514. end
  515. AAura = Instance.new("ParticleEmitter")
  516.  
  517.  
  518. maus.KeyDown:connect(function(kei)
  519. if kei == "q" then
  520. orb = true
  521. anim = "attackin"
  522. if orb == true then
  523. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(70)),1)
  524. local pew = Instance.new("Sound",chr.Torso)
  525. pew.Volume = 1
  526. pew.SoundId='rbxassetid://586187912'
  527. pew:Play()
  528. local Wave=Instance.new("Part",chr)
  529. Wave.BrickColor = BrickColor.new("Deep blue")
  530. Wave.Size = Vector3.new(1,1,1)
  531. Wave.Name = "Wave"
  532. Wave.Material = 'Neon'
  533. Wave.Transparency = 0
  534. Wave.Shape = "Ball"
  535. Wave.CanCollide = false
  536. Wave.CFrame = rutprt.CFrame*CFrame.new(1,0,1)*CFrame.Angles(math.random(90.6,90.6),math.random(0,0),math.random(0,0))
  537. local BV = Instance.new("BodyVelocity",Wave)BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)BV.velocity = chr.HumanoidRootPart.CFrame.lookVector*185
  538. Wave.Touched:connect(function(hit)
  539. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  540. if hit.Anchored == false and hit.Parent ~= chr then
  541. Damagefunc(Wave,hit,5,8,math.random(3,3),"Normal",RootPart,.2,1)
  542. end
  543. end
  544. end)
  545. end
  546. end
  547. end)
  548.  
  549. maus.KeyUp:connect(function(kei)
  550. if kei == "q" then
  551. orb = false
  552. anim = "Idling"
  553. end
  554. end)
  555.  
  556. maus.KeyDown:connect(function(kei)
  557. if kei == "1" then
  558. AAura.Parent = nil
  559.  
  560. spawn(function()
  561. for i=1,55 do
  562. wait()
  563. local c = chr
  564. local radius = 8
  565. local pos = torso.CFrame
  566. local clrz = {'White','White'};
  567. for i = 1,2.7 do
  568. local clr = clrz[math.random(1,#clrz)]
  569. pos = torso.CFrame
  570. local p = Instance.new('Part',c)
  571. local mafa = math.random(-360,360)
  572. p.CanCollide = false
  573. p.Size = Vector3.new(1,1,1)
  574. local m = Instance.new('SpecialMesh',p)
  575. m.MeshType = 'Sphere'
  576. spawn(function()
  577. for i = 0,50 do
  578. local int,int2 = .05,.05
  579. m.Scale = m.Scale - Vector3.new(int,int,int)
  580. p.Transparency = p.Transparency + int2
  581. swait()
  582. end
  583. end)
  584. p.BrickColor = BrickColor.new(clr)
  585. p.Material = 'Neon'
  586. p.CFrame = pos * CFrame.new(math.random(-radius,radius),math.random(-radius,radius),math.random(-radius,radius)) * CFrame.Angles(mafa,mafa,mafa)
  587. local bp = Instance.new('BodyPosition',p)
  588. bp.MaxForce = Vector3.new(0.7/0,0.7/0,0.7/0)
  589. bp.D = 100
  590. bp.P = 300
  591. bp.Position = pos.p
  592. game.Debris:AddItem(p,10)
  593. end
  594. end
  595. end)
  596. wait(3)
  597. annoyedPOWERUP = Instance.new("Sound")
  598. annoyedPOWERUP.Parent = chr.Torso
  599. annoyedPOWERUP.Volume = 1
  600. annoyedPOWERUP.SoundId = "http://www.roblox.com/asset/?id = 447041606"
  601. annoyedPOWERUP:Play()
  602. AExplodeP = Instance.new("Part",chr)
  603. AExplodeP.Anchored = true
  604. AExplodeP.TopSurface = 0
  605. AExplodeP.Material = "Neon"
  606. AExplodeP.BottomSurface = 0
  607. AExplodeP.CanCollide = false
  608. AExplodeP.CFrame = chr.Torso.CFrame
  609. AExplodeP.BrickColor = BrickColor.new("White")
  610. AExplodeP.Size = Vector3.new(1,1,1)
  611. AExplodeM = Instance.new("SpecialMesh",AExplodeP)
  612. AExplodeM.MeshType = "Sphere"
  613. blue = false
  614. Part1.BrickColor = BrickColor.new("Really black")
  615. ch.Head.face.Texture = ("rbxassetid://683375744")
  616. for i = 1,50,2 do wait()
  617. AExplodeM.Scale = Vector3.new(i,i,i)
  618. AExplodeP.Transparency = i/50
  619. end
  620. AExplodeP:Remove()
  621. dmg_val = .5
  622. punch_delay = .2
  623.  
  624. end
  625. if kei == "2" and blue == false then
  626. blue = true
  627. annoyedPOWERUP = Instance.new("Sound")
  628. annoyedPOWERUP.Parent = chr.Torso
  629. annoyedPOWERUP.Volume = 1
  630. annoyedPOWERUP.SoundId = "http://www.roblox.com/asset/?id = 447041606"
  631. annoyedPOWERUP:Play()
  632. AExplodeP = Instance.new("Part",chr)
  633. AExplodeP.Anchored = true
  634. AExplodeP.TopSurface = 0
  635. AExplodeP.Material = "Neon"
  636. AExplodeP.BottomSurface = 0
  637. AExplodeP.CanCollide = false
  638. AExplodeP.CFrame = chr.Torso.CFrame
  639. AExplodeP.BrickColor = BrickColor.new("Cyan")
  640. AAura.Parent = chr.Torso
  641. local color1 = Color3.new(255,255,255)
  642. local color2 = Color3.new(0,20,255)
  643. AAura.Texture = "rbxassetid://347730682"
  644. AAura.Color = ColorSequence.new(color1,color2)
  645. AAura.Size = NumberSequence.new(6,6,6,6,6,6)
  646. AAura.Lifetime = NumberRange.new(0.3,0.3,0.3,0.3,0.3)
  647. AAura.Rate = 200
  648. AAura.LightEmission = .7
  649. AAura.Transparency = NumberSequence.new(0.6,0.6,0.6,0.6,0.6,0.6)
  650. AAura.Speed = NumberRange.new(10,10,10,10,10,10)
  651. AAura.LockedToPart = true
  652.  
  653.  
  654. AExplodeP.Size = Vector3.new(1,1,1)
  655. AExplodeM = Instance.new("SpecialMesh",AExplodeP)
  656. AExplodeM.MeshType = "Sphere"
  657.  
  658.  
  659. AExplodeP2 = Instance.new("Part",chr)
  660. AExplodeP2.Anchored = true
  661. AExplodeP2.TopSurface = 0
  662. AExplodeP2.Material = "Neon"
  663. AExplodeP2.BottomSurface = 0
  664. AExplodeP2.CanCollide = false
  665. AExplodeP2.CFrame = chr.Torso.CFrame
  666. AExplodeP2.BrickColor = BrickColor.new("Cyan")
  667. AExplodeP2.Size = Vector3.new(1,1,1)
  668. AExplodeM2 = Instance.new("FileMesh",AExplodeP2)
  669. AExplodeM2.MeshId = "rbxassetid://20329976"
  670. Part1.BrickColor = BrickColor.new("Cyan")
  671. ch.Head.face.Texture = ("rbxassetid://683375946")
  672. dmg_val = 1
  673. punch_delay = .06
  674. for i = 1,50,2 do wait()
  675. AExplodeM.Scale = Vector3.new(i,i,i)
  676. AExplodeP.Transparency = i/50
  677. AExplodeM2.Scale = Vector3.new(i,i-30,i)
  678. AExplodeP2.Transparency = i/50
  679. end
  680. AExplodeP:Remove()
  681. AExplodeP2:Remove()
  682. end
  683. end)
  684.  
  685. spawn(function()
  686. while wait() do
  687. if attacking then
  688. otheranims = true
  689. if attacking == true then
  690. punch1 = false
  691. punch2 = true
  692. anim = "Punch2"
  693. wait(0.05)
  694. if anim == "Punch2" then
  695. punchSfx()
  696. wait(punch_delay)
  697. end
  698. punch2 = false
  699. punch1 = true
  700. anim = "Punch1"
  701. wait(0.05)
  702. if anim == "Punch1" then
  703. punchSfx()
  704. wait(punch_delay)
  705. end
  706. end
  707. end
  708. end
  709. end)
  710.  
  711. maus.Button1Down:connect(function()
  712. otheranims = false
  713. attacking = true
  714. punch1 = false
  715. punch2 = false
  716. end)
  717.  
  718. maus.Button1Up:connect(function()
  719. otheranims = false
  720. attacking = false
  721. punch1 = false
  722. punch2 = false
  723. anim = "Idling"
  724. end)
  725.  
  726. game:service'RunService'.RenderStepped:connect(function()
  727. if anim~=lastanim then
  728. runtime=0
  729. end
  730. lastanim=anim
  731. chr.Humanoid.CameraOffset=(rutprt.CFrame:toObjectSpace(hed.CFrame)).p+Vector3.new(0,-1.25,0)
  732. syne=syne+.95
  733. if not otheranims and not swimming then
  734. if (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 1 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  735. anim="Idling"
  736. elseif (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude > 1 and (rutprt.Velocity*Vector3.new(1, 0, 1)).magnitude < RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  737. anim="Walking"
  738. elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > RunSpeed-10 and not chr.Humanoid.Jump then-- and torso.Velocity.y<5 and torso.Velocity.y>-5
  739. anim="Sprinting"
  740. elseif torso.Velocity.y>5 and chr.Humanoid.Jump then
  741. anim='Jumping'
  742. elseif (torso.Velocity.y < -5) and chr.Humanoid.Jump then
  743. anim='Falling'
  744. end
  745. end
  746.  
  747.  
  748. if anim=="Idling" and attacking == false then
  749. idlesineinc=35
  750. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(50),0,math.rad(3)),.1)
  751. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(120),0,math.rad(-3)),.1)
  752. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-4)),.1)
  753. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(4)),.1)
  754. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,math.rad(-60),0),.1)
  755. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.rad(0),math.cos(syne/idlesineinc)/35+math.rad(60),math.rad(0)),.1)
  756. end
  757.  
  758. if anim=="Walking" and attacking == false then
  759. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(math.cos(syne/6)/1.25,math.rad(5),-(math.cos(syne/6.75)/15)+math.rad(3)),.1)
  760. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/15)/25,0)*CFrame.Angles(-(math.cos(syne/6)/1.25),0,-(math.cos(syne/6.75)/15)-math.rad(3)),.1)
  761. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/6)/10,-(math.cos(syne/6)/1.125))*CFrame.Angles(math.cos(syne/6)/1.125,0,math.rad(-2.5)),.1)
  762. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/6)/10,math.cos(syne/6)/1.125)*CFrame.Angles(-(math.cos(syne/6)/1.125),0,math.rad(2.5)),.1)
  763. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(-math.cos(syne/3)/20,0,0),.1)
  764. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/3.375)/20,math.cos(syne/3)/5)*CFrame.Angles(math.cos(syne/3)/20+math.rad(-3.5),math.cos(syne/6)/10,-math.cos(syne/6)/30+math.sin(rutprt.RotVelocity.y/2)/7.5),.1)
  765. end
  766.  
  767. if anim=="Sprinting" and attacking == false then
  768. RunSpeed = 50
  769. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(12.5)),.1)
  770. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(-math.cos(syne/2.5)/10+math.rad(-25),0,math.rad(-12.5)),.1)
  771. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2,0)*CFrame.Angles(math.rad(-15),math.rad(-7),math.rad(-2.5)),.1)
  772. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,0)*CFrame.Angles(math.rad(-15),math.rad(7),math.rad(2.5)),.1)
  773. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.55,0)*CFrame.Angles(math.rad(15),0,0),.1)
  774. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,1,0)*CFrame.Angles(math.rad(-25),0,math.sin(rutprt.RotVelocity.y/2)/2),.1)
  775. end
  776. if anim=="Jumping" and attacking == false then
  777. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(50)),.1)
  778. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-50)),.1)
  779. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-2.3,0)*CFrame.Angles(math.rad(-17.5),0,math.rad(-2.5)),.1)
  780. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-2,-.1)*CFrame.Angles(math.rad(-17.5),0,math.rad(2.5)),.1)
  781. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/20)/50,0)*CFrame.Angles(math.cos(syne/20)/40,0,0),.1)
  782. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(-15),math.rad(0),math.rad(0)),.1)
  783. end
  784.  
  785. if anim=="Falling" and attacking == false then
  786. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(70)),.035)
  787. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525,0)*CFrame.Angles(math.rad(10),0,math.rad(-70)),.035)
  788. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.2,0)*CFrame.Angles(math.rad(-14),0,math.rad(-2.5)),.035)
  789. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9,0)*CFrame.Angles(math.rad(0),0,math.rad(2.5)),.035)
  790. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5,-.3)*CFrame.Angles(math.rad(-40),0,0),.035)
  791. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/20)/20,0)*CFrame.Angles(math.rad(10),math.rad(0),math.rad(0)),.035)
  792. end
  793.  
  794. if anim=="Punch1" then
  795. idlesineinc=35
  796. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(70)),.6)
  797. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(-3)),.6)
  798. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.6)
  799. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.6)
  800. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,math.rad(-70),0),.6)
  801. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(70),math.rad(0)),.6)
  802. phit1()
  803. end
  804.  
  805. if anim == "Punch2" then
  806. rarm.Weld.C0=clerp(rarm.Weld.C0,CFrame.new(1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(0,0,math.rad(3)),.6)
  807. larm.Weld.C0=clerp(larm.Weld.C0,CFrame.new(-1.5,.525+math.cos(syne/idlesineinc)/25,0)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(-70)),.6)
  808. lleg.Weld.C0=clerp(lleg.Weld.C0,CFrame.new(-.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(-2.5)),.6)
  809. rleg.Weld.C0=clerp(rleg.Weld.C0,CFrame.new(.55,-1.9-math.cos(syne/idlesineinc)/20,(math.cos(syne/idlesineinc)/35))*CFrame.Angles(-(math.cos(syne/idlesineinc)/35),0,math.rad(2.5)),.6)
  810. hed.Weld.C0=clerp(hed.Weld.C0,CFrame.new(0,1.5+math.cos(syne/idlesineinc)/50,0)*CFrame.Angles(math.cos(syne/idlesineinc)/40,math.rad(70),0),.6)
  811. rutprt.Weld.C0=clerp(rutprt.Weld.C0,CFrame.new(0,-.1+math.cos(syne/idlesineinc)/20,0)*CFrame.Angles(math.cos(syne/idlesineinc)/35+math.rad(0),math.rad(-70),math.rad(0)),.6)
  812. phit2()
  813. end
  814.  
  815. if runnin and not otheranims and not swimming then
  816. chr.Humanoid.WalkSpeed=RunSpeed
  817. elseif not runnin and not otheranims and not swimming then
  818. chr.Humanoid.WalkSpeed=WlkSpeed
  819. end
  820. end)
Add Comment
Please, Sign In to add comment