Advertisement
memberhero

Meme Guy script

Dec 9th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.56 KB | None | 0 0
  1. wait(1)
  2. local Character = game.Players.localPlayer.Character
  3. local Humanoid=Character.Humanoid
  4. local Animate = Character.Animate:Remove()
  5. script.Parent=nil
  6. wait()
  7. if Character:FindFirstChild"Animate" then
  8. Character.Animate:Destroy()
  9. end
  10. Meshes = {
  11. Blast = '20329976',
  12. Crown = '1323306',
  13. Ring = '3270017',
  14. Claw = '10681506',
  15. Crystal = '9756362',
  16. Coil = '9753878',
  17. Cloud = '1095708',
  18. }
  19. clangsounds = {
  20. '199149119',
  21. '199149109',
  22. '199149072',
  23. '199149025',
  24. '199148971'
  25. }
  26. hitsounds = {
  27. '199149137',
  28. '199149186',
  29. '199149221',
  30. '199149235',
  31. '199149269',
  32. '199149297'
  33. }
  34. blocksounds = {
  35. '199148933',
  36. '199148947'
  37. }
  38. armorsounds = {
  39. '199149321',
  40. '199149338',
  41. '199149367',
  42. '199149409',
  43. '199149452'
  44. }
  45. woosh = {
  46. Heavy1 = '320557353',
  47. Heavy2 = '320557382',
  48. Heavy3 = '320557453',
  49. Heavy4 = '199144226',
  50. Heavy5 = '203691447',
  51. Heavy6 = '203691467',
  52. Heavy7 = '203691492',
  53. Light1 = '320557413',
  54. Light2 = '320557487',
  55. Light3 = '199145095',
  56. Light4 = '199145146',
  57. Light5 = '199145887',
  58. Light6 = '199145913',
  59. Light7 = '199145841',
  60. Medium1 = '320557518',
  61. Medium2 = '320557537',
  62. Medium3 = '320557563',
  63. Medium4 = '199145204'
  64. }
  65. music = {--i like music a lot
  66. Breaking = '179281636',
  67. FinalReckoning = '357375770',
  68. NotDeadYet = '346175829',
  69. Intense = '151514610',
  70. JumpP1 = '160536628',
  71. JumpP2 = '60536666',
  72. SonsOfWar = '158929777',
  73. WrathOfSea = '165520893',
  74. ProtectorsOfEarth = '160542922',
  75. SkyTitans = '179282324',
  76. ArchAngel = '144043274',
  77. Anticipation = '168614529',
  78. TheMartyred = '186849544',
  79. AwakeP1 = '335631255',
  80. AwakeP2 = '335631297',
  81. ReadyAimFireP1 = '342455387',
  82. ReadyAimFireP2 = '342455399',
  83. DarkLordP1 = '209567483',
  84. DarkLordP2 = '209567529',
  85. BloodDrainP1 = '162914123',
  86. BloodDrainP2 = '162914203',
  87. DanceOfSwords = '320473062',
  88. Opal = '286415112',
  89. Calamity = '190454307',
  90. Hypnotica = '155968128',
  91. Nemisis = '160453802',
  92. Breathe = '276963903',
  93. GateToTheRift = '270655227',
  94. InfernalBeserking = '244143404',
  95. Trust = '246184492',
  96. AwakeningTheProject = '245121821',
  97. BloodPain = '242545577',
  98. Chaos = '247241693',
  99. NightmareFictionHighStake = '248062278',
  100. TheWhiteWeapon = '247236446',
  101. Gale = '256851659',
  102. ImperialCode = '256848383',
  103. Blitzkrieg = '306431437',
  104. RhapsodyRage = '348690251',
  105. TheGodFist = '348541501',
  106. BattleForSoul = '321185592',
  107. TheDarkColossus = '305976780',
  108. EmpireOfAngels = '302580452',
  109. Kronos = '302205297',
  110. Exorcist = '299796054',
  111. CrimsonFlames = '297799220',
  112. UltimatePower = '295753229',
  113. DrivingInTheDark = '295753229',
  114. AscendToPower = '293860654',
  115. GodOfTheSun = '293612495',
  116. DarkRider = '293861765',
  117. Vengeance = '293375555',
  118. SoundOfWar = '293376196',
  119. HellsCrusaders = '293012202',
  120. Legend = '293011823',
  121. RisingSouls = '290524959'
  122. }
  123. misc = {
  124. GroundSlam = '199145477',
  125. LaserSlash = '199145497',
  126. RailGunFire = '199145534',
  127. Charge1 = '199145659',
  128. Charge2 = '169380469',
  129. Charge3 = '169380479',
  130. EmptyGun = '203691822',
  131. GunShoot = '203691837',
  132. Stomp1 = '200632875',
  133. Stomp2 = '200632561',
  134. TelsaCannonCharge = '169445572',
  135. TelsaCannonShoot = '169445602',
  136. AncientHymm = '245313442'
  137. }
  138. images={
  139.  
  140. }
  141. wait(1 / 60)
  142. equipc0,equipc1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.891719818, 0.132347107, -0.00518798828, -9.51243521e-007, -0.999978423, 0.00654914416, -9.64104856e-006, -0.00654914323, -0.999978542, 1, -1.01436058e-006, -9.63461207e-006)
  143. unequipc0,unequipc1=CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.25107574, 1.33599854, -1.09490967, 9.51232153e-007, -0.946276546, -0.323358774, 9.64105402e-006, -0.323358744, 0.946276486, -1, -4.01764737e-006, 8.81551296e-006)
  144. local rs = game:GetService'RunService'
  145. local player = game.Players.localPlayer
  146. local char = player.Character
  147. local mouse = player:GetMouse()
  148. local m = Instance.new('Model', char)
  149. local larm = char["Left Arm"]
  150. local rarm = char["Right Arm"]
  151. local lleg = char["Left Leg"]
  152. local rleg = char["Right Leg"]
  153. local hed = char.Head
  154. local torso = char.Torso
  155. local cam = game.Workspace.CurrentCamera
  156. local RootPart = char.HumanoidRootPart
  157. local equipped = false
  158. local attack = false
  159. local Anim = 'Idle'
  160. local idle = 0
  161. local sprint = false
  162. local battlestance = false
  163. local attacktype = 1
  164. local state = 'none'
  165. local torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  166. local velocity = RootPart.Velocity.y
  167. local sine = 0
  168. local change = 1
  169. local on = false
  170. local grabbed = false
  171. local skill1 = false
  172. local skill2 = false
  173. local skill3 = false
  174. local skill4 = false
  175. local cooldown1 = 0
  176. local cooldown2 = 0
  177. local cooldown3 = 0
  178. local cooldown4 = 0
  179. local co1 = 8--how long it will take for skill to cooldown
  180. local co2 = 12
  181. local co3 = 17
  182. local co4 = 20
  183. local inputserv = game:GetService('UserInputService')
  184. local hasgamepad = inputserv.GamepadEnabled --mash likes multiplatforming, start of block, after inputserv
  185. local gamepadcheck = false
  186. local padbuttons = {} --end of block, don't miss the other part
  187. local typing = false
  188. local crit = false
  189. local critchance = 1--critical chance percentage
  190. local critdamageaddmin = 8--minimum amount of critical damage being added to regular damage
  191. local critdamageaddmax = 23--maximum amount
  192. local maxstamina = 100--max amount of stamina
  193. local stamina = 20--stamina you start out with
  194. local skill1stam = 25--how much stamina is needed for a skill
  195. local skill2stam = 50
  196. local skill3stam = 75
  197. local skill4stam = 80
  198. local recovermana = 10--how much mana per second
  199. local defensevalue = 1.5--how much defense this character has
  200. local speedvalue = 1--how much speed this character has
  201. --speed is 16*speedvalue
  202. local mindamage = 3--self explanatory
  203. local maxdamage = 5--self explanatory
  204. local damagevalue = 1--how much damage this character has
  205. --damage is math.random(mindamage,maxdamage)*damagevalue
  206. --damage(hit, mindamage, maxdamage, 1, 1, RootPart)
  207. local maramistcutterchance=25
  208. --asd
  209. local cn = CFrame.new-- make things easier :)
  210. local mr = math.rad
  211. local angles = CFrame.Angles
  212. local ud = UDim2.new
  213. local c3 = Color3.new
  214. local skillcolorscheme = c3(1,1,1)--color scheme for skills lol
  215. --asd
  216. --[[idk how to explain skills
  217. skills:
  218. Manifest: creates a ball of blood in front of the left arm then blows you back creating an explosion
  219. Strike: draw your blade back then strike the enemy causing massive knockback
  220. Teeth: manifest blood into left arm then create a spike of blood coming out of the ground
  221. Decimation: charge up the power then do the basic attack combo 2 times while a hit does an instant crit
  222. ]]
  223.  
  224. function weld(part0, part1, c0)
  225. local wld = Instance.new("Motor", part1)
  226. wld.Part0 = part0
  227. wld.Part1 = part1
  228. wld.Name = "Weld"
  229. wld.C0 = c0
  230. return wld
  231. end
  232.  
  233. weld(torso, larm, cn(-1.5, 0.5, 0))
  234. larm.Weld.C1 = cn(0, 0.65, 0)
  235. weld(torso, rarm, cn(1.5, 0.5, 0))
  236. rarm.Weld.C1 = cn(0, 0.65, 0)
  237. weld(torso, hed, cn(0, 1.5, 0))
  238. weld(torso, lleg, cn(-0.5, -1, 0))
  239. lleg.Weld.C1 = cn(0, 1, 0)
  240. weld(torso, rleg, cn(0.5, -1, 0))
  241. rleg.Weld.C1 = cn(0, 1, 0)
  242. weld(RootPart, torso, cn(0, -1, 0))
  243. torso.Weld.C1 = cn(0, -1, 0)
  244. ---Animate = game.Players.LocalPlayer.Character.Animate:Remove()
  245. ---game.
  246. ---char.Humanoid.Animator:Destroy()
  247.  
  248. local scrn = Instance.new('ScreenGui', player.PlayerGui)
  249. function makeframe(par, trans, pos, size, color)
  250. local frame = Instance.new('Frame', par)
  251. frame.BackgroundTransparency = trans
  252. frame.BorderSizePixel = 0
  253. frame.Position = pos
  254. frame.Size = size
  255. frame.BackgroundColor3 = color
  256. return frame
  257. end
  258. function makelabel(par, text)
  259. local label = Instance.new('TextLabel', par)
  260. label.BackgroundTransparency = 1
  261. label.Size = ud(1, 0, 1, 0)
  262. label.Position = ud(0, 0, 0, 0)
  263. label.TextColor3 = c3(255, 255, 255)
  264. label.TextStrokeTransparency = 0
  265. label.FontSize = Enum.FontSize.Size32
  266. label.Font = Enum.Font.SourceSansBold
  267. label.BorderSizePixel = 0
  268. label.TextScaled = true
  269. label.Text = text
  270. end
  271. framesk1 = makeframe(scrn, .5, ud(.23, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  272. framesk2 = makeframe(scrn, .5, ud(.5, 0, .93, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  273. framesk3 = makeframe(scrn, .5, ud(.5, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  274. framesk4 = makeframe(scrn, .5, ud(.23, 0, .86, 0), ud(.26, 0, .06, 0), skillcolorscheme)
  275. bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  276. bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  277. bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  278. bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), skillcolorscheme)
  279. text1 = makelabel(framesk1, 'Attack [3]')
  280. text2 = makelabel(framesk2, 'Attack [4]')
  281. text3 = makelabel(framesk3, 'Pepe Song [2]')
  282. text4 = makelabel(framesk4, 'Meme Machine [1]')
  283. staminabar = makeframe(scrn, .5, ud(.23, 0, .82, 0), ud(.26, 0, .03, 0), c3(0, 0, 0))
  284. staminacover = makeframe(staminabar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(60/255, 60/255, 225/255))
  285. staminatext = makelabel(staminabar, 'Stamina')
  286. healthbar = makeframe(scrn, .5, ud(.5, 0, .82, 0), ud(.26, 0, .03, 0), c3(1, 1, 0))
  287. healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(1, 0, 1, 0), c3(1, 46 / 255, 49 / 255))
  288. healthtext = makelabel(healthbar, 'Health')
  289.  
  290. function gamepadgui() --mash likes functions and multiplaforming, insert this function after the guis are generated
  291. print(gamepadcheck)
  292. if gamepadcheck == true then --if detection is so
  293. local gamepadbuttons = {
  294. {"R1",367028190};
  295. {"L1",367028158};
  296. {"X",366788889};
  297. {"Y",366789115};
  298. }
  299. for i = 1,#gamepadbuttons do
  300. local currentlabel = gamepadbuttons[i]
  301. local isleft = (i%2 == 1)
  302. local x = Instance.new("ImageLabel",scrn)
  303. if math.ceil(i/2)%2 == 1 then
  304. x.Size = UDim2.new(0,40,0,40)
  305. else
  306. x.Size = UDim2.new(0,30,0,30)
  307. end
  308. x.Image = "rbxassetid://"..currentlabel[2]
  309. x.BorderSizePixel = 0
  310. x.BackgroundTransparency = 1
  311. padbuttons[i] = x
  312. if isleft == true then
  313. x.Position = UDim2.new(0,-35,.93 - ((math.ceil(i/2)%2 - 1) * .07) - .03,-x.Size.X.Offset)
  314. x:TweenPosition(UDim2.new(.23,-45,.93 - ((math.ceil(i/2)%2 - 1) * .07) - .03,-x.Size.X.Offset),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,.7)
  315. else
  316. x.Position = UDim2.new(1,0,.93 - ((math.ceil(i/2)%2 - 1) * .07) - .03,-x.Size.X.Offset)
  317. x:TweenPosition(UDim2.new(.76,15,.93 - ((math.ceil(i/2)%2 - 1) * .07) - .03,-x.Size.X.Offset),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,.7)
  318. end
  319. end
  320. local z = Instance.new("Frame",scrn)
  321. z.BackgroundTransparency = 1
  322. z.BorderSizePixel = 0
  323. z.Position = UDim2.new(0,-200,1,-120)
  324. z.Size = UDim2.new(0,100,0,100)
  325. local x = Instance.new("ImageLabel",z)
  326. x.BackgroundTransparency = 1
  327. x.Position = UDim2.new(0,-10,.5,0)
  328. x.Size = UDim2.new(.5,0,.5,0)
  329. x.Image = "rbxassetid://367028231"
  330. local t = Instance.new("TextLabel",x)
  331. t.BackgroundTransparency = 1
  332. t.Size = UDim2.new(0,200,0,50)
  333. t.Font = "SourceSans"
  334. t.Text = "Equip"
  335. t.TextColor3 = Color3.new(0,0,0)
  336. t.TextStrokeColor3 = Color3.new(.5,.5,.5)
  337. t.TextStrokeTransparency = .5
  338. t.Position = UDim2.new(0,5,0,0)
  339. t.FontSize = "Size36"
  340. local x2 = x:Clone()
  341. x2.Parent = z
  342. x2.Position = UDim2.new(0,0,0,0)
  343. x2.Image = "rbxassetid://367028263"
  344. x2.TextLabel.Position = UDim2.new(0,0,0,0)
  345. x2.TextLabel.Text = "Attack"
  346. local x3 = x:Clone()
  347. x3.Parent = z
  348. x3.Position = UDim2.new(0,5,1,5)
  349. x3.Size = UDim2.new(.35,0,.35,0)
  350. x3.Image = "rbxassetid://366788662"
  351. x3.TextLabel.Position = UDim2.new(0,-5,0,-5)
  352. x3.TextLabel.Text = "Sprint"
  353. z:TweenPosition(UDim2.new(0,20,1,-170),Enum.EasingDirection.InOut,Enum.EasingStyle.Sine,.7)
  354. padbuttons[5] = z
  355. else --if not detected
  356. for i = 1,#padbuttons do
  357. local x = padbuttons[i]
  358. x:TweenPosition(UDim2.new(x.Position.X.Scale,x.Position.X.Offset,1,30),Enum.EasingDirection.In,Enum.EasingStyle.Sine,.2)
  359. spawn(function()
  360. wait(.21)
  361. x:Destroy()
  362. end)
  363. table.remove(padbuttons[i])
  364. end
  365. end
  366. end --end of block
  367.  
  368. local stats=Instance.new('Folder',char)
  369. stats.Name='Stats'
  370. local block=Instance.new('BoolValue',stats)
  371. block.Name='Block'
  372. block.Value=false
  373. local stun=Instance.new('BoolValue',stats)
  374. stun.Name='Stun'
  375. stun.Value=false
  376. local defense=Instance.new('NumberValue',stats)
  377. defense.Name='Defence'
  378. defense.Value=defensevalue
  379. local speed=Instance.new('NumberValue',stats)
  380. speed.Name='Speed'
  381. speed.Value=speedvalue
  382. local damagea=Instance.new('NumberValue',stats)
  383. damagea.Name='Damage'
  384. damagea.Value=damagevalue
  385.  
  386. function atktype(s, e)
  387. coroutine.resume(coroutine.create(function()
  388. attacktype = e
  389. wait(1.5)
  390. attacktype = s
  391. end))
  392. end
  393.  
  394. function turncrit()
  395. coroutine.resume(coroutine.create(function()
  396. print'CRITICAL!'
  397. crit = true
  398. wait(1)
  399. crit = false
  400. end))
  401. end
  402.  
  403. function subtractstamina(k)
  404. if stamina>=k then
  405. stamina=stamina-k
  406. end
  407. end
  408.  
  409. function swait(num)
  410. if num == 0 or num == nil then
  411. game:service'RunService'.Heartbeat:wait(0)
  412. else
  413. for i = 0, num do
  414. game:service'RunService'.Heartbeat:wait(0)
  415. end
  416. end
  417. end
  418.  
  419. function Lerp(a, b, i)
  420. local com1 = {
  421. a.X,
  422. a.Y,
  423. a.Z,
  424. a:toEulerAnglesXYZ()
  425. }
  426. local com2 = {
  427. b.X,
  428. b.Y,
  429. b.Z,
  430. b:toEulerAnglesXYZ()
  431. }
  432. local calx = com1[1] + (com2[1] - com1[1]) * i
  433. local caly = com1[2] + (com2[2] - com1[2]) * i
  434. local calz = com1[3] + (com2[3] - com1[3]) * i
  435. local cala = com1[4] + (com2[4] - com1[4]) * i
  436. local calb = com1[5] + (com2[5] - com1[5]) * i
  437. local calc = com1[6] + (com2[6] - com1[6]) * i
  438. return CFrame.new(calx, caly, calz) * CFrame.Angles(cala, calb, calc)
  439. end
  440.  
  441. function randomizer(percent)
  442. local randomized = math.random(0, 100)
  443. if randomized <= percent then
  444. return true
  445. elseif randomized >= percent then
  446. return false
  447. end
  448. end
  449.  
  450. function begoneoutlines(part)
  451. part.BottomSurface, part.TopSurface, part.FrontSurface, part.BackSurface, part.RightSurface, part.LeftSurface = 10, 10, 10, 10, 10, 10
  452. end
  453.  
  454. function rayCast(pos, dir, maxl, ignore)
  455. return game:service("Workspace"):FindPartOnRay(Ray.new(pos, dir.unit * (maxl or 999.999)), ignore)
  456. end
  457. --Effects
  458. function makeeffect(par, size, pos1, trans, trans1, howmuch, delay1, id, type)
  459. local p = Instance.new('Part', par or workspace)
  460. p.CFrame = pos1
  461. p.Anchored = true
  462. p.Material = 'Plastic'
  463. p.CanCollide = false
  464. p.TopSurface = 0
  465. p.Size = Vector3.new(1, 1, 1)
  466. p.BottomSurface = 0
  467. p.Transparency = trans
  468. p.FormFactor = 'Custom'
  469. begoneoutlines(p)
  470. local mesh = Instance.new('SpecialMesh', p)
  471. mesh.Scale = size
  472. if id ~= nil and type == nil then
  473. mesh.MeshId = 'rbxassetid://'..id
  474. elseif id == nil and type ~= nil then
  475. mesh.MeshType = type
  476. elseif id == nil and type == nil then
  477. mesh.MeshType = 'Brick'
  478. end
  479. coroutine.wrap(function()
  480. for i = 0, delay1, .1 do
  481. wait(1 / 60)
  482. p.CFrame = p.CFrame
  483. mesh.Scale = mesh.Scale + howmuch
  484. p.Transparency = p.Transparency + trans1
  485. end
  486. p:Destroy()
  487. end)()
  488. return p
  489. end
  490. function clangy(cframe)
  491. wait(1 / 60)
  492. local clang = {}
  493. local dis = 0
  494. local part = Instance.new('Part', nil)
  495. part.CFrame = cframe
  496. part.Anchored = true
  497. part.CanCollide = false
  498. part.BrickColor = BrickColor.new('New Yeller')
  499. part.FormFactor = 'Custom'
  500. part.Name='clanger'
  501. part.Size = Vector3.new(.2, .2, .2)
  502. part.TopSurface = 10
  503. part.BottomSurface = 10
  504. part.RightSurface = 10
  505. part.LeftSurface = 10
  506. part.BackSurface = 10
  507. part.FrontSurface = 10
  508. --part.Material='Neon'
  509. part:BreakJoints()
  510. local mesh=Instance.new('BlockMesh',part)
  511. coroutine.wrap(function()
  512. for i = 1, 7 do
  513. wait(1 / 60)
  514. dis = dis + .2
  515. local partc = part:clone()
  516. partc.Parent = workspace
  517. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  518. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  519. table.insert(clang, partc)
  520. end
  521. for i, v in pairs(clang) do
  522. coroutine.wrap(function()
  523. for i = 1, 10 do
  524. wait(.01)
  525. v.Transparency = v.Transparency + .1
  526. end
  527. v:destroy()
  528. end)()
  529. end
  530. end)()
  531. end
  532. --damage effects
  533. function circle(color, pos1)
  534. local p = Instance.new('Part', m)
  535. p.BrickColor = BrickColor.new(color)
  536. p.CFrame = pos1
  537. p.Anchored = true
  538. p.Material = 'Plastic'
  539. p.CanCollide = false
  540. p.TopSurface = 0
  541. p.Size = Vector3.new(1, 1, 1)
  542. p.BottomSurface = 0
  543. p.Transparency = 0.35
  544. p.FormFactor = 'Custom'
  545. local mesh = Instance.new('CylinderMesh', p)
  546. mesh.Scale = Vector3.new(0, 0, 0)
  547. coroutine.wrap(function()
  548. for i = 0, 5, .1 do
  549. wait(1 / 60)
  550. p.CFrame = p.CFrame
  551. mesh.Scale = mesh.Scale + Vector3.new(.5, 0, .5)
  552. p.Transparency = p.Transparency + .025
  553. end
  554. p:Destroy()
  555. end)()
  556. end
  557. function firespaz1(color, pos1)
  558. local p = Instance.new('Part', m)
  559. p.BrickColor = BrickColor.new(color)
  560. p.CFrame = pos1
  561. p.Anchored = true
  562. p.Material = 'Plastic'
  563. p.CanCollide = false
  564. p.TopSurface = 0
  565. p.Size = Vector3.new(1, 1, 1)
  566. p.BottomSurface = 0
  567. p.Transparency = 0.5
  568. p.FormFactor = 'Custom'
  569. local mesh = Instance.new('BlockMesh', p)
  570. mesh.Scale = Vector3.new(1, 1, 1)
  571. coroutine.wrap(function()
  572. for i = 0, 15, .1 do
  573. wait(1 / 30)
  574. p.CFrame = p.CFrame * CFrame.new(0, .1, 0)
  575. mesh.Scale = mesh.Scale - Vector3.new(.1, .1, .1)
  576. p.Transparency = p.Transparency + .025
  577. end
  578. p:Destroy()
  579. end)()
  580. end
  581.  
  582. function pickrandom(tablesa)
  583. local randomized=tablesa[math.random(1,#tablesa)]
  584. return randomized
  585. end
  586. function sound(id,pitch,volume,par,last)
  587. local s=Instance.new('Sound',par or torso)
  588. s.SoundId='rbxassetid://'..id
  589. s.Pitch=pitch or 1
  590. s.Volume=volume or 1
  591. s.PlayOnRemove=false
  592. if last then
  593. game.Debris:AddItem(s,last)
  594. end
  595. return s
  596. end
  597. local lol=sound('263970261',1,1,workspace)
  598. lol.Looped=true
  599. lol:Stop()
  600. function clangy(cframe)
  601. wait(1 / 60)
  602. local clang = {}
  603. local dis = 0
  604. local part = Instance.new('Part', nil)
  605. part.CFrame = cframe
  606. part.Anchored = true
  607. part.CanCollide = false
  608. part.BrickColor = BrickColor.new('New Yeller')
  609. part.FormFactor = 'Custom'
  610. part.Name='clanger'
  611. part.Size = Vector3.new(.2, .2, .2)
  612. part.TopSurface = 10
  613. part.BottomSurface = 10
  614. part.RightSurface = 10
  615. part.LeftSurface = 10
  616. part.BackSurface = 10
  617. part.FrontSurface = 10
  618. --part.Material='Neon'
  619. part:BreakJoints()
  620. local mesh=Instance.new('BlockMesh',part)
  621. coroutine.wrap(function()
  622. for i = 1, 7 do
  623. wait(1 / 60)
  624. dis = dis + .2
  625. local partc = part:clone()
  626. partc.Parent = workspace
  627. partc.CFrame = part.CFrame * CFrame.fromEulerAnglesXYZ(dis, 0, 0)
  628. partc.CFrame = partc.CFrame * CFrame.new(0, dis, 0)
  629. table.insert(clang, partc)
  630. end
  631. for i, v in pairs(clang) do
  632. coroutine.wrap(function()
  633. for i = 1, 10 do
  634. wait(.01)
  635. v.Transparency = v.Transparency + .1
  636. end
  637. v:destroy()
  638. end)()
  639. end
  640. end)()
  641. end
  642. --damage effects
  643. --Effects
  644. so = function(id, par, vol, pit)
  645. coroutine.resume(coroutine.create(function()
  646. local sou = Instance.new("Sound", par or workspace)
  647. sou.Volume = vol
  648. sou.Pitch = pit or 1
  649. sou.SoundId = id
  650. wait()
  651. sou:play()
  652. game:GetService("Debris"):AddItem(sou, 6)
  653. end))
  654. end
  655.  
  656. function getclosest(obj,dis, player)
  657. if player then
  658. return (player.Torso.CFrame.p - obj).magnitude < dis
  659. end
  660. local list = {}
  661. for i, v in pairs(workspace:GetChildren()) do
  662. if v:IsA("Model") then
  663. if v:findFirstChild("Torso") then
  664. if v ~= char then
  665. if (v.Torso.Position - obj).magnitude <= dis then
  666. table.insert(list, v)
  667. end
  668. end
  669. end
  670. end
  671. end
  672. return list
  673. end
  674.  
  675. function makegui(cframe, text)
  676. local a = math.random(-10, 10) / 100
  677. local c = Instance.new("Part")
  678. c.Transparency = 1
  679. Instance.new("BodyGyro").Parent = c
  680. c.Parent = m
  681. c.CFrame = CFrame.new(cframe.p + Vector3.new(0, 1.5, 0))
  682. local f = Instance.new("BodyPosition")
  683. f.P = 2000
  684. f.D = 100
  685. f.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  686. f.position = c.Position + Vector3.new(0, 3, 0)
  687. f.Parent = c
  688. game:GetService("Debris"):AddItem(c, .5 + 6)
  689. c.CanCollide = false
  690. m.Parent = workspace
  691. c.CanCollide = false
  692. local bg = Instance.new('BillboardGui', m)
  693. bg.Adornee = c
  694. bg.Size = UDim2.new(1, 0, 1, 0)
  695. bg.StudsOffset = Vector3.new(0, 0, 0)
  696. bg.AlwaysOnTop = false
  697. local tl = Instance.new('TextLabel', bg)
  698. tl.BackgroundTransparency = 1
  699. tl.Size = UDim2.new(1, 0, 1, 0)
  700. tl.Text = text
  701. tl.Font = 'SourceSansBold'
  702. tl.FontSize = 'Size42'
  703. if crit == true then
  704. tl.TextColor3 = Color3.new(180 / 255, 0, 0)
  705. else
  706. tl.TextColor3 = Color3.new(255, 180 / 255, 51 / 255)
  707. end
  708. tl.TextStrokeTransparency = 0
  709. tl.TextScaled = true
  710. tl.TextWrapped = true
  711. coroutine.wrap(function()
  712. wait(2)
  713. for i = 1, 10 do
  714. swait()
  715. tl.TextTransparency = tl.TextTransparency + .1
  716. end
  717. end)()
  718. end
  719.  
  720. function tag(hum, player)
  721. local creator = Instance.new('ObjectValue', hum)
  722. creator.Value = player
  723. creator.Name = 'creator'
  724. end
  725. function untag(hum)
  726. if hum ~= nil then
  727. local tag = hum:findFirstChild("creator")
  728. if tag ~= nil then
  729. tag.Parent = nil
  730. end
  731. end
  732. end
  733.  
  734. function tagplayer(h)
  735. coroutine.wrap(function()
  736. tag(h, player)
  737. wait(1)
  738. untag(h)
  739. end)()
  740. end
  741. function damage(hit, mind, maxd, knock, type, prop)
  742. --[[
  743. to apply it to a player directly, make the first arg go to the players torso
  744. 1 - normal type(damage and knockback)
  745. 2 - drain type(damage no knockback)
  746. 3 - lifesteal(absorbs hp) crit does not have an effect on how much life is absorbed
  747. 4 - heal(heals target)
  748. 5 - subtracts enemies defense
  749. 6 - subtracts enemies speed
  750. 7 -
  751. ]]
  752. if hit.Name:lower()=='hitbox' then
  753. local pos = CFrame.new(0, 0, -1)
  754. sound(pickrandom(clangsounds),math.random(100,150)/100,.25,torso,6)
  755. coroutine.wrap(function()
  756. for i = 1, 4 do
  757. clangy(torso.CFrame * pos * CFrame.Angles(0, math.rad(math.random(0, 360)), 0))
  758. end
  759. end)()
  760. end
  761. if hit.Parent == nil then
  762. return
  763. end
  764. local h = hit.Parent:FindFirstChild("Humanoid")
  765. for i, v in pairs(hit.Parent:children()) do
  766. if v:IsA("Humanoid") then
  767. h = v
  768. end
  769. end
  770. if hit.Parent.Parent:FindFirstChild('Torso') ~= nil then
  771. h = hit.Parent.Parent:FindFirstChild('Humanoid')
  772. end
  773. if hit.Parent:IsA('Hat') then
  774. hit = hit.Parent.Parent:findFirstChild('Head')
  775. end
  776. local D = math.random(mind, maxd)*damagea.Value
  777. if h then
  778. if h.Parent:FindFirstChild('Stats') then
  779. D=D/h.Parent:FindFirstChild('Stats').Defence.Value
  780. elseif not h.Parent:FindFirstChild('Stats') then
  781. D=D
  782. end
  783. end
  784. if h then
  785. makegui(h.Parent.Head.CFrame, tostring(math.floor(D+.5)))
  786. end
  787. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  788. if type == 1 then
  789. tagplayer(h)
  790. local asd = randomizer(critchance)
  791. if asd == true then
  792. turncrit()
  793. end
  794. if crit == false then
  795. h.Health = h.Health - D
  796. else
  797. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  798. end
  799. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  800. local vp = Instance.new('BodyVelocity')
  801. vp.P = 500
  802. vp.maxForce = Vector3.new(math.huge, 0, math.huge)
  803. vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05
  804. if knock > 0 then
  805. vp.Parent = hit.Parent.Torso
  806. end
  807. game:GetService("Debris"):AddItem(vp, .5)
  808. elseif type == 2 then
  809. so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
  810. local asd = randomizer(critchance)
  811. if asd == true then
  812. turncrit()
  813. end
  814. if crit == false then
  815. h.Health = h.Health - D
  816. else
  817. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  818. end
  819. tagplayer(h)
  820. elseif type == 3 then
  821. tagplayer(h)
  822. local asd = randomizer(critchance)
  823. if asd == true then
  824. turncrit()
  825. end
  826. if crit == false then
  827. h.Health = h.Health - D
  828. else
  829. h.Health = h.Health - (D + math.random(critdamageaddmin, critdamageaddmax))
  830. end
  831. char.Humanoid.Health = char.Humanoid.Health + D / 2
  832. so("http://www.roblox.com/asset/?id=206083232", hit, 1, 1.5)
  833. for i = 1, 10 do
  834. firespaz1('Bright red', hit.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)))
  835. end
  836. elseif type == 4 then
  837. h.Health = h.Health + D
  838. so("http://www.roblox.com/asset/?id=186883084", hit, 1, 1)
  839. circle('Dark green', h.Parent.Torso.CFrame * CFrame.new(0, -2.5, 0))
  840. end
  841. end
  842. end
  843.  
  844. function subtrackstamina(k)
  845. if stamina>=k then
  846. stamina=stamina-k
  847. end
  848. end
  849.  
  850. function mouseattack() --USE THIS FUNCTION FOR MULTIPLATFORMING TO WORK
  851.  
  852. end
  853.  
  854. mouse.Button1Down:connect(function()
  855. if attack==false and equipped==true then
  856. mouseattack() --DO NOT WRITE CODE HERE, GO TO mouseattack() ^
  857. end
  858. end)
  859.  
  860. inputserv.InputBegan:connect(function(k)
  861. if k.KeyCode==Enum.KeyCode.ButtonR2 and attack==false and equipped==true then
  862. mouseattack() --DO NOT WRITE CODE HERE, GO TO mouseattack() ^
  863. end
  864. end)
  865.  
  866. function equipfunction() --USE THIS FUNCTION FOR MULTIPLATFORMING TO WORK
  867. if equipped==false then
  868. equipped=true
  869. wait()
  870. elseif equipped then
  871. equipped=false
  872. wait()
  873. end
  874. end
  875.  
  876. function staminafunction()
  877. print(cooldown1)
  878. if cooldown1>=co1 and stamina>=skill1stam then
  879. subtractstamina(skill1stam)--subtracts stamina
  880. cooldown1=0 -- resets skill back to zero if the skill reached or reached over the max
  881. end
  882. end
  883.  
  884. inputserv.InputBegan:connect(function(k)
  885. if k.KeyCode==Enum.KeyCode.ButtonL2 and typing==false then
  886. equipfunction() --DO NOT WRITE CODE HERE, GO TO equipfunction() ^
  887. end
  888. end)
  889.  
  890. mouse.KeyDown:connect(function(k)
  891. k = k:lower()
  892. if k=='f' then
  893. equipfunction()--DO NOT WRITE CODE HERE, GO TO equipfunction() ^
  894. end
  895. --[[if k=='e' then
  896. staminafunction()--DO NOT WRITE CODE HERE, GO TO staminafunction() ^
  897. end]]
  898. end)
  899.  
  900. function attack1() --starting here (1)
  901. subtractstamina(skill1stam)
  902. cooldown1=0
  903. sound = Instance.new("Sound")
  904. sound.SoundId = "rbxassetid://263970261"
  905. sound.Parent = game.Players.LocalPlayer.Character
  906. sound:Play()
  907. end
  908.  
  909. function attack2() --here (2)
  910. subtractstamina(skill2stam)
  911. cooldown2=0
  912. sound = Instance.new("Sound")
  913. sound.SoundId = "rbxassetid://264246827"
  914. sound.Parent = game.Players.LocalPlayer.Character
  915. sound:Play()
  916. end
  917.  
  918. function attack3() --here (3)
  919. subtractstamina(skill3stam)
  920. cooldown3=0
  921. end
  922.  
  923. function attack4() --and here (4)
  924. subtractstamina(skill4stam)
  925. cooldown4=0
  926. end
  927.  
  928. inputserv.InputBegan:connect(function(k) --DO NOT WRITE CODE HERE, WRITE AT THE ATTACK FUNCTIONS!
  929. if (k.KeyCode == Enum.KeyCode.One or k.KeyCode == Enum.KeyCode.ButtonL1) and equipped==true and attack==false and typing == false and cooldown1 >= co1 and stamina>=skill1stam then
  930. attack1()
  931. elseif (k.KeyCode == Enum.KeyCode.Two or k.KeyCode == Enum.KeyCode.ButtonR1) and equipped==true and attack==false and typing == false and cooldown2 >= co2 and stamina>=skill2stam then
  932. attack2()
  933. elseif (k.KeyCode == Enum.KeyCode.Three or k.KeyCode == Enum.KeyCode.ButtonX) and equipped==true and attack==false and typing == false and cooldown3 >= co3 and stamina>=skill3stam then
  934. attack3()
  935. elseif (k.KeyCode == Enum.KeyCode.Four or k.KeyCode == Enum.KeyCode.ButtonY) and equipped==true and attack==false and typing == false and cooldown4 >= co4 and stamina>=skill4stam then
  936. attack4()
  937. end
  938. end)
  939.  
  940. inputserv.InputBegan:connect(function(k)
  941. if k.KeyCode == Enum.KeyCode.Slash then
  942. local fin = nil
  943. typing = true
  944. fin = inputserv.InputBegan:connect(function(k)
  945. if k.KeyCode == Enum.KeyCode.Return or k.UserInputType == Enum.UserInputType.MouseButton1 then
  946. typing = false
  947. fin:disconnect()
  948. end
  949. end)
  950. end
  951. end)
  952.  
  953. function updateskills()
  954. if cooldown1 <= co1 then
  955. cooldown1 = cooldown1 + 1 / 30
  956. end
  957. if cooldown2 <= co2 then
  958. cooldown2 = cooldown2 + 1 / 30
  959. end
  960. if cooldown3 <= co3 then
  961. cooldown3 = cooldown3 + 1 / 30
  962. end
  963. if cooldown4 <= co4 then
  964. cooldown4 = cooldown4 + 1 / 30
  965. end
  966. if stamina <= maxstamina then
  967. stamina = stamina + recovermana / 30
  968. end
  969. end
  970.  
  971. rs.Heartbeat:connect(function()
  972. updateskills()
  973. healthcover:TweenSize(ud(1 * (char.Humanoid.Health / char.Humanoid.MaxHealth), 0, 1, 0), 'Out', 'Quad', .5)
  974. staminacover:TweenSize(ud(1 * (stamina / maxstamina), 0, 1, 0), 'Out', 'Quad', .5)
  975. bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), 'Out', 'Quad', .5)
  976. bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), 'Out', 'Quad', .5)
  977. bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), 'Out', 'Quad', .5)
  978. bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), 'Out', 'Quad', .5)
  979. torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  980. velocity = RootPart.Velocity.y
  981. sine = tick()*30*change
  982. hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, char)
  983. char.Humanoid.WalkSpeed=16*speed.Value
  984. if equipped == true or equipped == false then
  985. if RootPart.Velocity.y > 1 and hit == nil and stun.Value~=true then
  986. Anim = "Jump"
  987. if attack == false then
  988. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(.3, 0, 0), 0.2)
  989. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(.3, 0, 0), 0.2)
  990. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(-.4, 0, .3), 0.2)
  991. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(-.4, 0, -.3), 0.2)
  992. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.5, -1, 0) * angles(-.4, 0, -.3), 0.2)
  993. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.5, -1, 0) * angles(-.4, 0, .3), 0.2)
  994. end
  995. elseif RootPart.Velocity.y < -1 and hit == nil and stun.Value~=true then
  996. Anim = "Fall"
  997. if attack == false then
  998. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(-.1, 0, 0), 0.2)
  999. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(-.1, 0, 0), 0.2)
  1000. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, .7), 0.2)
  1001. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, -.7), 0.2)
  1002. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.5, -1, 0) * angles(0, 0, -.1), 0.2)
  1003. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.5, -1, 0) * angles(0, 0, .1), 0.2)
  1004. end
  1005. elseif torsovelocity < 1 and hit ~= nil and stun.Value~=true then
  1006. Anim = "Idle"
  1007. if attack == false then
  1008. if equipped==true then
  1009. change = 1
  1010. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-.25+0.1*math.cos(sine/22), 0, 0), 0.2)
  1011. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(.25-0.1*math.cos(sine/22), 0, 0), 0.2)
  1012. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(1.55-0.1*math.cos(sine/22), 0, .8+0.1*math.cos(sine/22)), 0.2)
  1013. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(1.55-0.1*math.cos(sine/22), 0, -.8-0.1*math.cos(sine/22)), 0.2)
  1014. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.55, -.5, -.25) * angles(.25-0.1*math.cos(sine/22),.25,-.1), 0.2)
  1015. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.55, -.5,-.25) * angles(.25-0.1*math.cos(sine/22),-.25,.1), 0.2)
  1016. elseif equipped==false then
  1017. change=1
  1018. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2)
  1019. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(5*math.cos(sine/25)), math.rad(0), 0), 0.2)
  1020. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.65,0)*CFrame.Angles(math.rad(10)+math.sin(sine/22)/5,0,0), 0.2)
  1021. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.65,0)*CFrame.Angles(math.rad(10)+math.sin(sine/22)/5,0,0), 0.2)
  1022. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1023. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  1024. end
  1025. end
  1026. elseif torsovelocity > 2 and torsovelocity < 18 and hit ~= nil and stun.Value~=true then
  1027. Anim = "Walk"
  1028. if attack == false then
  1029. if equipped==true then
  1030. change = 1
  1031. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1.5, 0) * angles(-.25,.25*math.cos(sine/3), 0), 0.2)
  1032. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(.25-0.1*math.cos(sine/22), 0, 0), 0.2)
  1033. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.25, 0.5, 0) * angles(1.55, 0, .9-1.4*math.cos(sine/3)), 0.2)
  1034. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.25, 0.5, 0) * angles(1.55, 0, -.9-1.4*math.cos(sine/3)), 0.2)
  1035. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.55, -.5, -.25) * angles(1*math.cos(sine/3),-.25*math.cos(sine/3),0), 0.2)
  1036. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.55, -.5,-.25) * angles(-1*math.cos(sine/3),-.25*math.cos(sine/3),0), 0.2)
  1037. elseif equipped==false then
  1038. change=2
  1039. torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.2)
  1040. hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), 0), 0.2)
  1041. rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.65, 0) * CFrame.Angles(math.rad(85 * math.cos(sine / 5)), math.rad(0), 0), 0.2)
  1042. larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.65, 0) * CFrame.Angles(math.rad(-85 * math.cos(sine / 5)), math.rad(0), 0), 0.2)
  1043. lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, -0) * CFrame.Angles(math.rad(85 * math.cos(sine / 5)), 0, 0), .2)
  1044. rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0) * CFrame.Angles(math.rad(-85 * math.cos(sine / 5)), 0, 0), .2)
  1045. end
  1046. end
  1047. elseif torsovelocity >= 18 and hit ~= nil and stun.Value~=true then
  1048. Anim = "Run"
  1049. if attack == false then
  1050. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -1, 0) * angles(0, 0, 0), 0.2)
  1051. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(0, 0, 0), 0.2)
  1052. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
  1053. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.65, 0) * angles(0, 0, 0), 0.2)
  1054. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-0.5, -1, -0) * angles(0, 0, 0), .2)
  1055. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(0.5, -1, -0) * angles(0, 0, 0), .2)
  1056. end
  1057. elseif stun.Value == true then
  1058. if attack == false then
  1059. char.Humanoid.WalkSpeed = 0
  1060. torso.Weld.C0 = Lerp(torso.Weld.C0, cn(0, -3, 0) * angles(mr(40), 0, 0), 0.2)
  1061. hed.Weld.C0 = Lerp(hed.Weld.C0, cn(0, 1.5, 0) * angles(mr(-20), 0, 0), 0.2)
  1062. rarm.Weld.C0 = Lerp(rarm.Weld.C0, cn(1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
  1063. larm.Weld.C0 = Lerp(larm.Weld.C0, cn(-1.5, 0.5, 0) * angles(mr(-50), 0, 0), 0.2)
  1064. lleg.Weld.C0 = Lerp(lleg.Weld.C0, cn(-.5, -.3, -.7) * angles(mr(-10), 0, 0), 0.2)
  1065. rleg.Weld.C0 = Lerp(rleg.Weld.C0, cn(.5, -1, 0) * angles(mr(50), 0, 0), 0.2)
  1066. end
  1067. end
  1068. end
  1069. if sprint == true and stun.Value~=true and equipped == false and on == false then
  1070. char.Humanoid.WalkSpeed = 20
  1071. elseif sprint == false and stun.Value~=true and attack~=true then
  1072. char.Humanoid.WalkSpeed = 16*speed.Value
  1073. end
  1074. hasgamepad = inputserv.GamepadEnabled --mash likes multiplatforming, start of block, after sprint
  1075. if hasgamepad ~= gamepadcheck then
  1076. gamepadcheck = hasgamepad
  1077. gamepadgui()
  1078. end --end of block
  1079. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement