Advertisement
Gokussjg

Untitled

Nov 15th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 64.01 KB | None | 0 0
  1. --------------------------------------------------------
  2.  
  3. pls = game:GetService'Players'
  4. rs = game:GetService'RunService'
  5. uinps = game:GetService'UserInputService'
  6. lp = pls.LocalPlayer
  7. mouse = lp:GetMouse()
  8. c = lp.Character
  9. human = c.Humanoid
  10. human.MaxHealth = 50
  11. wait()
  12. human.Health = 50
  13. c.Health:Destroy()
  14. active = true
  15. it=Instance.new
  16. vt=Vector3.new
  17. cf=CFrame.new
  18. euler=CFrame.fromEulerAnglesXYZ
  19. angles=CFrame.Angles
  20. local mode = "Neutral"
  21.  
  22. --------------------------------------------------------
  23.  
  24. Debounces = {
  25. AnimationCycles = 0;
  26. FPS = 0;
  27. scalingDamage = false;
  28. damageLevel = 0;
  29. attackNumber = 0;
  30. isAttacking = false;
  31. isMoving = false;
  32. isSprinting = false;
  33. isBoosting = false;
  34. isPassive = false;
  35. isTyping = false;
  36. isHostile = false;
  37. }
  38.  
  39. --------------------------------------------------------
  40.  
  41. Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  42. GuiFrame = Instance.new("Frame", game.Players.LocalPlayer.PlayerGui.ScreenGui)
  43.  
  44.  
  45. fightbutton = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame)
  46. fightbutton.Position = UDim2.new(0, 500, 0, 850)
  47. fightbutton.Size = UDim2.new(0, 200, 0, 50)
  48. fightbutton.Style = "RobloxRoundButton"
  49. fightbutton.Text = "Fight"
  50. fightbutton.Name = "fbt"
  51. fightbutton.Visible=true
  52.  
  53. fightdecal = Instance.new("ImageLabel",fightbutton)
  54. fightdecal.Position=UDim2.new(-0.08, 0, -0.5, 0)
  55. fightdecal.Size=UDim2.new(0, 200, 0, 50)
  56. fightdecal.Name="FightCal"
  57. fightdecal.Image="rbxassetid://311212183"
  58.  
  59.  
  60.  
  61. local gui = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  62. gui:ClearAllChildren()
  63. gui.Name = "attackchoose"
  64. local initframe = Instance.new("Frame",gui)
  65. initframe.Size = UDim2.new(0,750,0,125)
  66. initframe.Position = UDim2.new(0.5,-375,1,-140)
  67. initframe.BackgroundColor3 = Color3.new(0,0,0)
  68. initframe.BorderColor3 = Color3.new(1,1,1)
  69. initframe.Visible = false
  70. initframe.BorderSizePixel = 5
  71.  
  72. local atk = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  73. atk:ClearAllChildren()
  74. atk.Name = "attkchos"
  75. local atkf = Instance.new("Frame",atk)
  76. atkf.Size = UDim2.new(0,750,0,125)
  77. atkf.Position = UDim2.new(0.5,-375,0.5,-140)
  78. atkf.BackgroundColor3 = Color3.new(0,0,0)
  79. atkf.BorderColor3 = Color3.new(1,1,1)
  80. atkf.Visible = false
  81. atkf.BorderSizePixel = 5
  82. atklabel = Instance.new("TextLabel", atk)
  83. atklabel.Font = Enum.Font.SourceSansBold
  84. atklabel.Text = "Press E to summon a large gaster blaster"
  85. atklabel.Visible=false
  86. atklabel.Position=UDim2.new(0, 940, 0.4, 0)
  87. atklabel.FontSize = Enum.FontSize.Size36
  88. atklabel.TextColor3 = Color3.new(1,1,1)
  89. atklabel2 = Instance.new("TextLabel", atk)
  90. atklabel2.Font = Enum.Font.SourceSansBold
  91. atklabel2.Text = "Press Q to summon small gasters"
  92. atklabel2.Visible=false
  93. atklabel2.Position=UDim2.new(0, 940, 0.45, 0)
  94. atklabel2.FontSize = Enum.FontSize.Size36
  95. atklabel2.TextColor3 = Color3.new(1,1,1)
  96.  
  97.  
  98.  
  99. local actf = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  100. actf:ClearAllChildren()
  101. actf.Name = "actchoose"
  102. local actframe = Instance.new("Frame",actf)
  103. actframe.Size = UDim2.new(0,750,0,125)
  104. actframe.Position = UDim2.new(0.5,-375,1,-140)
  105. actframe.BackgroundColor3 = Color3.new(0,0,0)
  106. actframe.BorderColor3 = Color3.new(1,1,1)
  107. actframe.Visible = false
  108. actframe.BorderSizePixel = 5
  109.  
  110. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.fbt.MouseButton1Down:connect(function()
  111. fightbutton.Visible=false
  112. actbutton.Visible=false
  113. itembutton.Visible=false
  114. sparebutton.Visible=false
  115. atkf.Visible=true
  116. atklabel.Visible=true
  117. atklabel2.Visible=true
  118. wait(5)
  119. fightbutton.Visible=true
  120. actbutton.Visible=true
  121. itembutton.Visible=true
  122. sparebutton.Visible=true
  123. atkf.Visible=false
  124. atklabel.Visible=false
  125. atklabel2.Visible=false
  126. end)
  127.  
  128. itembutton = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame)
  129. itembutton.Position = UDim2.new(0, 960, 0, 850)
  130. itembutton.Size = UDim2.new(0, 200, 0, 50)
  131. itembutton.Style = "RobloxRoundButton"
  132. itembutton.Text = "Item"
  133. itembutton.Name = "ibt"
  134. itembutton.Visible=true
  135. itemdecal = Instance.new("ImageLabel",itembutton)
  136. itemdecal.Position=UDim2.new(-0.08, 0, -0.5, 0)
  137. itemdecal.Size=UDim2.new(0, 200, 0, 50)
  138. itemdecal.Name="ItemCal"
  139. itemdecal.Image="rbxassetid://311213527"
  140.  
  141. actbutton = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame)
  142. actbutton.Position = UDim2.new(0, 740, 0, 850)
  143. actbutton.Size = UDim2.new(0, 200, 0, 50)
  144. actbutton.Style = "RobloxRoundButton"
  145. actbutton.Text = "Act"
  146. actbutton.Name = "abt"
  147. actbutton.Visible=true
  148. actdecal = Instance.new("ImageLabel",actbutton)
  149. actdecal.Position=UDim2.new(-0.08, 0, -0.5, 0)
  150. actdecal.Size=UDim2.new(0, 200, 0, 50)
  151. actdecal.Name="ActCal"
  152. actdecal.Image="rbxassetid://311212230"
  153.  
  154. sparebutton = Instance.new("TextButton", game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame)
  155. sparebutton.Position = UDim2.new(0, 1200, 0, 850)
  156. sparebutton.Size = UDim2.new(0, 200, 0, 50)
  157. sparebutton.Style = "RobloxRoundButton"
  158. sparebutton.Text = "Spare"
  159. sparebutton.Name = "sbt"
  160. sparebutton.Visible=true
  161. sparedecal = Instance.new("ImageLabel",sparebutton)
  162. sparedecal.Position=UDim2.new(-0.08, 0, -0.5, 0)
  163. sparedecal.Size=UDim2.new(0, 200, 0, 50)
  164. sparedecal.Name="SpareCal"
  165. sparedecal.Image="rbxassetid://311213549"
  166.  
  167.  
  168. actcheckbutton = Instance.new("TextButton", actf)
  169. actcheckbutton.Position = UDim2.new(0, 590, 0, 850)
  170. actcheckbutton.Size = UDim2.new(0, 200, 0, 50)
  171. --actcheckbutton.Style = "RobloxRoundButton"
  172. actcheckbutton.BackgroundColor3 = Color3.new(0,0,0)
  173. actcheckbutton.BorderColor3 = Color3.new(0,0,0)
  174. actcheckbutton.Text = " "
  175. actcheckbutton.Name = "acbt"
  176. actcheckbutton.Visible=false
  177. actchecklabel = Instance.new("TextLabel", actcheckbutton)
  178. actchecklabel.Font = Enum.Font.SourceSansBold
  179. actchecklabel.Text = "CHECK"
  180. actchecklabel.Visible=false
  181. actchecklabel.Position=UDim2.new(0, 55, 0.3, 0)
  182. actchecklabel.FontSize = Enum.FontSize.Size36
  183. actchecklabel.TextColor3 = Color3.new(1,1,1)
  184.  
  185. game.Players.LocalPlayer.PlayerGui.actchoose.acbt.MouseButton1Down:connect(function()
  186. actchecklabel.Position=UDim2.new(0, 240, 0.3, 0)
  187. actchecklabel.Text="3 ATK, 1 DEFENCE, 1 HP, Easy to kill"
  188. wait(5)
  189. fightbutton.Visible=true
  190. actbutton.Visible=true
  191. itembutton.Visible=true
  192. sparebutton.Visible=true
  193. actframe.Visible=false
  194. actchecklabel.Visible=false
  195. actcheckbutton.Visible=false
  196. actchecklabel.Text="CHECK"
  197. actchecklabel.Position=UDim2.new(0, 55, 0.3, 0)
  198. end)
  199.  
  200. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.ibt.MouseButton1Down:connect(function()
  201. fightbutton.Visible=false
  202. actbutton.Visible=false
  203. itembutton.Visible=false
  204. sparebutton.Visible=false
  205. initframe.Visible=true
  206. wait(4)
  207. fightbutton.Visible=true
  208. actbutton.Visible=true
  209. itembutton.Visible=true
  210. sparebutton.Visible=true
  211. initframe.Visible=false
  212. end)
  213.  
  214. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.abt.MouseButton1Down:connect(function()
  215. fightbutton.Visible=false
  216. actbutton.Visible=false
  217. itembutton.Visible=false
  218. sparebutton.Visible=false
  219. actframe.Visible=true
  220. actchecklabel.Visible=true
  221. actcheckbutton.Visible=true
  222. end)
  223.  
  224. game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.sbt.MouseButton1Down:connect(function()
  225. fightbutton.Visible=false
  226. actbutton.Visible=false
  227. itembutton.Visible=false
  228. sparebutton.Visible=false
  229. initframe.Visible=true
  230. wait(4)
  231. fightbutton.Visible=true
  232. actbutton.Visible=true
  233. itembutton.Visible=true
  234. sparebutton.Visible=true
  235. initframe.Visible=false
  236. end)
  237.  
  238. --------------------------------------------------------
  239.  
  240. --[[if Debounces.isPassive==false then
  241. mode="Neutral"
  242. else
  243. mode="Hostile"
  244. end ]]
  245.  
  246. --------------------------------------------------------
  247.  
  248. numLerp = function(start, goal, alpha)
  249. return(((goal - start) * alpha) + start)
  250. end
  251.  
  252. CFrameZero = function()
  253. return CFrame.new(Vector3.new())
  254. end
  255.  
  256. rad = function(value)
  257. return math.rad(value)
  258. end
  259.  
  260. CFAngles = function(Vector)
  261. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  262. end
  263.  
  264. --------------------------------------------------------
  265.  
  266. AnimStat = {
  267. lerpSpeed = .2;
  268. lerpSpeed2 = .35;
  269. lerpTween = 0;
  270. }
  271.  
  272. Joints = {
  273. c.HumanoidRootPart.RootJoint;
  274. c.Torso.Neck;
  275. c.Torso['Left Shoulder'];
  276. c.Torso['Right Shoulder'];
  277. c.Torso['Left Hip'];
  278. c.Torso['Right Hip'];
  279. }
  280.  
  281. JointTargets = {
  282. CFrameZero();
  283. CFrameZero();
  284. CFrameZero();
  285. CFrameZero();
  286. CFrameZero();
  287. CFrameZero();
  288. }
  289.  
  290. --------------------------------------------------------
  291.  
  292. BodyColors = {
  293. HeadColor = BrickColor.new("Institutional white");
  294. LeftArmColor = BrickColor.new("Institutional white");
  295. RightArmColor = BrickColor.new("Institutional white");
  296. LeftLegColor = BrickColor.new("Institutional white");
  297. RightLegColor = BrickColor.new("Institutional white");
  298. TorsoColor = BrickColor.new("Mid gray");
  299. }
  300.  
  301. Customs = {
  302. Face = "http://www.roblox.com/asset/?id=8560915";
  303. Shirt = "http://www.roblox.com/asset/?id=334781688";
  304. Pants = "http://www.roblox.com/asset/?id=335237283";
  305. }
  306.  
  307. --------------------------------------------------------
  308.  
  309. prepareCharacter = function()
  310. local transPoints = {
  311. NumberSequenceKeypoint.new(0,.819,.0375),
  312. NumberSequenceKeypoint.new(.207,.594,.0187),
  313. NumberSequenceKeypoint.new(.4,.55,.031),
  314. NumberSequenceKeypoint.new(.57,.619,.05),
  315. NumberSequenceKeypoint.new(.76,.8,.0375),
  316. NumberSequenceKeypoint.new(1,1,0),
  317. }
  318. local sizePoints = {
  319. NumberSequenceKeypoint.new(0,.687,0),
  320. NumberSequenceKeypoint.new(.111,.875,0),
  321. NumberSequenceKeypoint.new(.327,1.19,0),
  322. NumberSequenceKeypoint.new(.646,1.56,0),
  323. NumberSequenceKeypoint.new(.805,1.37,0),
  324. NumberSequenceKeypoint.new(.905,1.06,0),
  325. NumberSequenceKeypoint.new(.968,.938,0),
  326. NumberSequenceKeypoint.new(.984,1.13,0),
  327. NumberSequenceKeypoint.new(1,1.62,0),
  328. }
  329. local Size = NumberSequence.new(sizePoints)
  330. local Transparency = NumberSequence.new(transPoints)
  331. rayModel = Instance.new("Model",c)
  332. boneModel = Instance.new("Model",c)
  333. efxBlock = Instance.new("Part",c)
  334. efxBlock.BrickColor = BrickColor.new("Cyan")
  335. efxBlock.Material = "Neon"
  336. efxBlock.FormFactor = "Custom"
  337. efxBlock.Transparency = .3
  338. efxBlock.Name="eyeblok"
  339. efxBlock.Size = Vector3.new(.3,.3,.3)
  340. local mesh = Instance.new("SpecialMesh",efxBlock)
  341. mesh.MeshType = Enum.MeshType.Sphere
  342. mesh.Scale = Vector3.new(1,1,1)
  343. light = Instance.new("PointLight",c.Head)
  344. light.Range = 10
  345. light.Color = Color3.new(0,200/255,1)
  346. light.Shadows = false
  347. local particles = Instance.new("ParticleEmitter",efxBlock)
  348. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  349. particles.LightEmission = .95
  350. particles.Size = Size
  351. particles.Name = "Fire"
  352. particles.Transparency = Transparency
  353. particles.LockedToPart = true
  354. particles.VelocityInheritance = .5
  355. particles.LockedToPart = true
  356. particles.Rate = 70
  357. particles.Texture = "rbxassetid://56561915"
  358. particles.Lifetime = NumberRange.new(2,2)
  359. particles.RotSpeed = NumberRange.new(100,100)
  360. particles.Speed = NumberRange.new(7,7)
  361. script.Parent = efxBlock
  362. fire = particles
  363. local offset = Vector3.new(-0.11, .23, -0.5)
  364. local weld = Instance.new("Weld",c.Head)
  365. weld.Part0 = c.Head
  366. weld.Part1 = efxBlock
  367. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  368. efxBlock.Parent = c
  369. local music = Instance.new("Sound",c)
  370. music.SoundId = "rbxassetid://316012176" --316012176
  371. music.Looped = true
  372. music.Volume = 0
  373. fight = music
  374. local music2 = Instance.new("Sound",c)
  375. music2.SoundId = "rbxassetid://316014309"
  376. music2.Looped = true
  377. music2.Volume = 0
  378. sans = music2
  379. pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
  380. pointGyro.P = 1e7
  381. pointGyro.D = 1e3
  382. pointGyro.MaxTorque = Vector3.new(0,1e7,0)
  383. animator = c.Humanoid:FindFirstChild("Animator")
  384. if animator then
  385. animator:Destroy()
  386. end
  387. c.Torso.roblox:Destroy()
  388. for i,v in pairs (c.Head:children()) do
  389. if v.ClassName == "Sound" then
  390. v:Destroy()
  391. end
  392. end
  393. for i = 1,#Joints do
  394. Joints[i].C1 = CFrame.new(Vector3.new())
  395. end
  396. human.WalkSpeed = 0
  397. human.JumpPower = 0
  398. end
  399.  
  400. uinps.InputBegan:connect(function(InputObject)
  401. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  402. Debounces.isPassive = not Debounces.isPassive
  403. update()
  404. end
  405. end)
  406.  
  407. setJointCFrames = function(table)
  408. for i = 1,#table do
  409. JointTargets[i] = table[i]
  410. end
  411. AnimationCycles = 0
  412. end
  413.  
  414. setLerp = function(speed)
  415. AnimStat.lerpSpeed = speed
  416. end
  417.  
  418. setTween = function(tween)
  419. AnimStat.lerpTween = tween
  420. end
  421.  
  422. takeDamage = function(position,damage,distance,platformStand)
  423. for i,v in pairs (pls:children()) do
  424. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  425. local torso = v.Character:FindFirstChild("Torso")
  426. if torso and (torso.Position - position).magnitude < distance then
  427. v.Character.Humanoid:TakeDamage(damage)
  428. if platformStand == true then
  429. v.Character.PlatformStand = platformStand
  430. end
  431. end
  432. end
  433. end
  434. end
  435.  
  436. --------------------------------------------------------
  437.  
  438. prepareCharacter()
  439.  
  440. --------------------------------------------------------
  441.  
  442. spawn(function()
  443. local sine = 0
  444. while wait() do
  445. pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
  446. if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
  447. setLerp(.1)
  448. if Debounces.isPassive == true then
  449. setJointCFrames({
  450. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  451. CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
  452. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  453. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  454. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  455. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  456. })
  457. else
  458. setJointCFrames({
  459. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  460. CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
  461. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  462. CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
  463. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  464. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  465. })
  466. end
  467. elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
  468. sine = sine + math.rad(12)
  469. human.WalkSpeed = 15
  470. setLerp(.15)
  471. setJointCFrames({
  472. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
  473. CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
  474. CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
  475. CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
  476. CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
  477. CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
  478. })
  479. end
  480. if Debounces.scalingDamage == true then
  481. takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
  482. end
  483. end
  484. end)
  485.  
  486. human.Changed:connect(function(prop)
  487. if prop == "MoveDirection" then
  488. if human.MoveDirection.magnitude > .02 then
  489. Debounces.isMoving = true
  490. else
  491. Debounces.isMoving = false
  492. end
  493. end
  494. end)
  495.  
  496.  
  497. ArtificialHB = Instance.new("BindableEvent", script)
  498. ArtificialHB.Name = "Heartbeat"
  499.  
  500. script:WaitForChild("Heartbeat")
  501.  
  502. function swait(num)
  503. if num == 0 or num == nil then
  504. ArtificialHB.Event:wait()
  505. else
  506. for i = 0, num do
  507. ArtificialHB.Event:wait()
  508. end
  509. end
  510. end
  511.  
  512.  
  513.  
  514. local maxEnergy = 100
  515. local Energy = 100
  516. local skill1stam = 10
  517. local skill2stam = 10
  518. local recovermana = 5
  519.  
  520. function subtractEnergy(k)
  521. if Energy>=k then
  522. Energy=Energy-k
  523. end
  524. end
  525.  
  526. local skillcolorscheme = BrickColor.new("Green").Color
  527.  
  528. local scrn = Instance.new('ScreenGui', pls.LocalPlayer.PlayerGui)
  529. local scr = Instance.new('ScreenGui', pls.LocalPlayer.PlayerGui)
  530. scr.Name="screenmode"
  531. local scre = Instance.new('ScreenGui', pls.LocalPlayer.PlayerGui)
  532. scre.Name="screb"
  533. function makeframe(par, trans, pos, size, color)
  534. local frame = Instance.new('Frame', par)
  535. frame.BackgroundTransparency = trans
  536. frame.BorderSizePixel = 0
  537. frame.Position = pos
  538. frame.Size = size
  539. frame.BackgroundColor3 = color
  540. return frame
  541. end
  542. function makelabel(par, text)
  543. local label = Instance.new('TextLabel', par)
  544. label.BackgroundTransparency = 1
  545. label.Size = UDim2.new(1, 0, 1, 0)
  546. label.Position = UDim2.new(0, 0, 0, 0)
  547. label.TextColor3 = Color3.new(255, 255, 255)
  548. label.TextStrokeTransparency = 0
  549. label.FontSize = Enum.FontSize.Size32
  550. label.Font = Enum.Font.SourceSansBold
  551. label.BorderSizePixel = 0
  552. label.TextScaled = true
  553. label.Text = text
  554. end
  555. --[[
  556. --framesk1 = makeframe(scrn, .5, UDim2.new(.23, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  557. --framesk2 = makeframe(scrn, .5, UDim2.new(.5, 0, .93, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  558. framesk3 = makeframe(scrn, .5, UDim2.new(.5, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  559. framesk4 = makeframe(scrn, .5, UDim2.new(.23, 0, .86, 0), UDim2.new(.26, 0, .06, 0), skillcolorscheme)
  560. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  561. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  562. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  563. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  564. --text1 = makelabel(framesk1, '[r] Energy Wave')
  565. --text2 = makelabel(framesk2, '[f] Energy Laser')
  566. --text3 = makelabel(framesk3, "[e] Energy Burst")
  567. --text4 = makelabel(framesk4, '[q] Energy Shots')
  568. text3 = makelabel(framesk3, "[E] Large Blast")
  569. text4 = makelabel(framesk4, '[Q] Small Blast') ]]
  570. Modebar = makeframe(scr, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  571. Modecover = makeframe(Modebar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("New Yeller").Color)
  572. Modetext = makelabel(Modebar, 'Mode: '..mode..' ')
  573. --pls.LocalPlayer.PlayerGui.Modetext.Text="Mode: "..mode.." "
  574. --Energybar = makeframe(scrn, .5, UDim2.new(.23, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  575. --Energycover = makeframe(Energybar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("New Yeller").Color)
  576. --Energytext = makelabel(Energybar, 'Energy')
  577. healthbar = makeframe(scrn, .5, UDim2.new(.5, 0, .82, 0), UDim2.new(.26, 0, .03, 0), BrickColor.new("Really black").Color)
  578. healthcover = makeframe(healthbar, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), BrickColor.new("Cyan").Color)
  579. healthtext = makelabel(healthbar, 'Health')
  580.  
  581. function update()
  582. if Debounces.isPassive==false then
  583. mode="Passive"
  584. --mode="Neutral"
  585. elseif Debounces.isPassive==true then
  586. --mode="Hostile"
  587. mode="Bad Time"
  588. end
  589. game.Players.LocalPlayer.PlayerGui.screenmode.Frame.TextLabel.Text='Mode: '..mode..' '
  590. end
  591.  
  592. uinps.InputBegan:connect(function(InputObject)
  593. if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  594. Debounces.isBoosting = true
  595. Debounces.damageLevel = 10
  596. Debounces.scalingDamage = true
  597. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  598. setLerp(.15)
  599. setJointCFrames({
  600. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  601. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  602. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  603. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  604. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  605. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  606. })
  607. local boostSpeed = 250
  608. local efx = Instance.new("Sound",c.Head)
  609. efx.SoundId = "rbxassetid://200632875"
  610. efx.Pitch = math.random(1100,1300)/1000
  611. efx.Volume = .5
  612. efx:Play()
  613. spawn(function()
  614. wait(5)
  615. efx:Destroy()
  616. end)
  617. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
  618. vel.P = 1e3
  619. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  620. wait(.15)
  621. vel.P = 1000
  622. vel.MaxForce = Vector3.new(3000,0,3000)
  623. vel.Velocity = Vector3.new()
  624. wait(.3)
  625. setLerp(.3)
  626. setJointCFrames({
  627. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  628. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  629. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  630. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  631. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  632. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  633. })
  634. wait(.2)
  635. vel:Destroy()
  636. Debounces.damageLevel = 0
  637. Debounces.scalingDamage = false
  638. Debounces.isBoosting = false
  639. end
  640. end)
  641.  
  642. uinps.InputBegan:connect(function(InputObject)
  643. if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  644. Debounces.isBoosting = true
  645. Debounces.damageLevel = 10
  646. Debounces.scalingDamage = true
  647. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  648. setLerp(.15)
  649. setJointCFrames({
  650. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  651. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  652. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  653. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  654. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  655. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  656. })
  657. local boostSpeed = 250
  658. local efx = Instance.new("Sound",c.Head)
  659. efx.SoundId = "rbxassetid://200632875"
  660. efx.Pitch = math.random(1100,1300)/1000
  661. efx.Volume = .5
  662. efx:Play()
  663. spawn(function()
  664. wait(5)
  665. efx:Destroy()
  666. end)
  667. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
  668. vel.P = 1e3
  669. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  670. wait(.15)
  671. vel.P = 1000
  672. vel.MaxForce = Vector3.new(3000,0,3000)
  673. vel.Velocity = Vector3.new()
  674. wait(.3)
  675. setLerp(.3)
  676. setJointCFrames({
  677. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  678. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  679. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  680. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  681. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  682. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  683. })
  684. wait(.2)
  685. vel:Destroy()
  686. Debounces.damageLevel = 0
  687. Debounces.scalingDamage = false
  688. Debounces.isBoosting = false
  689. end
  690. end)
  691.  
  692. uinps.InputBegan:connect(function(InputObject)
  693. if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  694. Debounces.isBoosting = true
  695. Debounces.damageLevel = 10
  696. Debounces.scalingDamage = true
  697. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  698. setLerp(.15)
  699. setJointCFrames({
  700. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  701. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  702. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  703. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  704. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  705. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  706. })
  707. local boostSpeed = 250
  708. local efx = Instance.new("Sound",c.Head)
  709. efx.SoundId = "rbxassetid://200632875"
  710. efx.Pitch = math.random(1100,1300)/1000
  711. efx.Volume = .5
  712. efx:Play()
  713. spawn(function()
  714. wait(5)
  715. efx:Destroy()
  716. end)
  717. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
  718. vel.P = 1e3
  719. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  720. wait(.15)
  721. vel.P = 1000
  722. vel.MaxForce = Vector3.new(3000,0,3000)
  723. vel.Velocity = Vector3.new()
  724. wait(.3)
  725. setLerp(.3)
  726. setJointCFrames({
  727. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  728. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  729. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  730. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  731. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  732. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  733. })
  734. wait(.2)
  735. vel:Destroy()
  736. Debounces.damageLevel = 0
  737. Debounces.scalingDamage = false
  738. Debounces.isBoosting = false
  739. end
  740. end)
  741.  
  742. uinps.InputBegan:connect(function(InputObject)
  743. if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  744. Debounces.isBoosting = true
  745. Debounces.damageLevel = 10
  746. Debounces.scalingDamage = true
  747. local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
  748. setLerp(.15)
  749. setJointCFrames({
  750. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  751. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  752. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  753. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  754. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  755. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  756. })
  757. local boostSpeed = 150
  758. local boostSpeed = 250
  759. local efx = Instance.new("Sound",c.Head)
  760. efx.SoundId = "rbxassetid://200632875"
  761. efx.Pitch = math.random(1100,1300)/1000
  762. efx.Volume = .5
  763. efx:Play()
  764. spawn(function()
  765. wait(5)
  766. efx:Destroy()
  767. end)
  768. vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
  769. vel.P = 1e3
  770. vel.MaxForce = Vector3.new(math.huge,0,math.huge)
  771. wait(.15)
  772. vel.P = 1000
  773. vel.MaxForce = Vector3.new(3000,0,3000)
  774. vel.Velocity = Vector3.new()
  775. wait(.3)
  776. setLerp(.3)
  777. setJointCFrames({
  778. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  779. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  780. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  781. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  782. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  783. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  784. })
  785. wait(.2)
  786. vel:Destroy()
  787. Debounces.damageLevel = 0
  788. Debounces.scalingDamage = false
  789. Debounces.isBoosting = false
  790. end
  791. end)
  792.  
  793. uinps.InputBegan:connect(function(InputObject)
  794. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  795. local isLooping = true
  796. uinps.InputEnded:connect(function(InputObject2)
  797. if InputObject2.KeyCode == Enum.KeyCode.Q then
  798. isLooping = false
  799. end
  800. end)
  801. while true do
  802. if isLooping == false then
  803. break
  804. end
  805. Debounces.attackNumber = Debounces.attackNumber + 1
  806. local aimPos = mouse.Hit.p
  807. local head = Instance.new("Part",c)
  808. head.Size = Vector3.new(12,.2,12)
  809. head.CanCollide = false
  810. head.Anchored = true
  811. head.Transparency = 1
  812. for i = 1,2 do
  813. local decal = Instance.new("Decal",head)
  814. decal.Texture = "rbxassetid://323497117"
  815. if i == 1 then
  816. decal.Face = Enum.NormalId.Top
  817. else
  818. decal.Face = Enum.NormalId.Bottom
  819. end
  820. end
  821. if Debounces.attackNumber%2 == 1 then
  822. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  823. else
  824. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  825. end
  826. spawn(function()
  827. local timer = 0
  828. while rs.RenderStepped:wait() do
  829. if timer >= 1.55 then
  830. break
  831. end
  832. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  833. timer = timer + 1/30/(Debounces.FPS/60)
  834. end
  835. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  836. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  837. local hit, pos = workspace:FindPartOnRay(ray,c)
  838. local dis = (head.CFrame.p - pos).magnitude
  839. local rayPart = Instance.new("Part",rayModel)
  840. rayPart.Material = "Neon"
  841. rayPart.FormFactor = "Custom"
  842. rayPart.BrickColor = BrickColor.new(1,1,1)
  843. rayPart.Anchored = true
  844. rayPart.CanCollide = false
  845. rayPart.Size = Vector3.new(7,7,dis + 400)
  846. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  847. rayPart.CFrame = rayCFrame
  848. head:Destroy()
  849. end)
  850. wait()
  851. local s = Instance.new("Sound",head)
  852. s.Volume = 1
  853. s.SoundId = "rbxassetid://332223043"
  854. wait(0.01)
  855. s:Play()
  856. wait(.04)
  857. end
  858. end
  859. end)
  860.  
  861. local RbxUtility = LoadLibrary("RbxUtility")
  862. local Create = RbxUtility.Create
  863.  
  864. function RemoveOutlines(part)
  865. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  866. end
  867.  
  868. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BC, Name, Size)
  869. local Part = Create("Part"){
  870. formFactor = FormFactor,
  871. Parent = Parent,
  872. Reflectance = Reflectance,
  873. Transparency = Transparency,
  874. CanCollide = false,
  875. Locked = true,
  876. BrickColor = BrickColor.new(tostring(BC)),
  877. Name = Name,
  878. Size = Size,
  879. Material = Material,
  880. }
  881. RemoveOutlines(Part)
  882. return Part
  883. end
  884.  
  885. function CreateWeld(Parent, P0, P1, c0, c1)
  886. local W = Create("Weld"){
  887. Parent = Parent,
  888. Part0 = P0,
  889. Part1 = P1,
  890. C0 = c0,
  891. C1 = c1,
  892. }
  893. return W
  894. end
  895.  
  896.  
  897. --For Fennybunny
  898. uinps.InputBegan:connect(function(InputObj)
  899. if InputObj.KeyCode == Enum.KeyCode.Z and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  900. Debounces.isAttacking = true
  901. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  902. local head = Instance.new("Part",c)
  903. head.Size = Vector3.new(18,.2,18)
  904. head.CanCollide = false
  905. head.Anchored = true
  906. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  907. head.Transparency = 1
  908. setLerp(.1)
  909. setJointCFrames({
  910. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  911. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  912. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  913. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  914. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  915. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  916. })
  917. wait(0.03)
  918. sb=Instance.new("Sound",c)
  919. sb.SoundId = "rbxassetid://367453005"
  920. sb.Looped = false
  921. sb.Volume = 1.1
  922. sb.Pitch=1
  923. wait(0.01)
  924. sb:Play()
  925. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  926. local bone = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  927. local hit, pos = workspace:FindPartOnRay(bone,c)
  928. local dis = (head.CFrame.p - pos).magnitude
  929. local bonepart = Instance.new("Part",boneModel)
  930. bonepart.Name="Punch"
  931. local bonecframe = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  932. bonepart.CFrame = bonecframe
  933. wait(0.01)
  934. head:Remove()
  935. wait()
  936. wait(.75)
  937. setLerp(.17)
  938. setJointCFrames({
  939. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  940. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  941. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  942. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  943. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  944. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  945. })
  946. wait(.5)
  947. Debounces.isAttacking = false
  948. end
  949. end)
  950.  
  951. uinps.InputBegan:connect(function(InputObj)
  952. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  953. Debounces.isAttacking = true
  954. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  955. local head = Instance.new("Part",c)
  956. head.Size = Vector3.new(18,.2,18)
  957. head.CanCollide = false
  958. head.Anchored = true
  959. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  960. head.Transparency = 1
  961. for i = 1,2 do
  962. local decal = Instance.new("Decal",head)
  963. decal.Texture = "rbxassetid://323497117"
  964. if i == 1 then
  965. decal.Face = Enum.NormalId.Top
  966. else
  967. decal.Face = Enum.NormalId.Bottom
  968. end
  969. end
  970. setLerp(.1)
  971. setJointCFrames({
  972. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  973. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  974. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  975. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  976. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  977. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  978. })
  979. spawn(function()
  980. local timer = 0
  981. while rs.RenderStepped:wait() do
  982. if timer >= 1.55/.8 then
  983. break
  984. end
  985. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  986. timer = timer + 1/30/(Debounces.FPS/60)
  987. end
  988. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  989. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  990. local hit, pos = workspace:FindPartOnRay(ray,c)
  991. local dis = (head.CFrame.p - pos).magnitude
  992. local rayPart = Instance.new("Part",rayModel)
  993. rayPart.Material = "Neon"
  994. rayPart.FormFactor = "Custom"
  995. rayPart.Name = "Punch"
  996. rayPart.BrickColor = BrickColor.new(1,1,1)
  997. rayPart.Anchored = true
  998. rayPart.CanCollide = false
  999. rayPart.Size = Vector3.new(28,28,dis + 400)
  1000. local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
  1001. rayPart.CFrame = rayCFrame
  1002. head:Destroy()
  1003. end)
  1004. wait()
  1005. local s = Instance.new("Sound",head)
  1006. s.Volume = 1
  1007. s.SoundId = "rbxassetid://332223043"
  1008. s.Pitch = .8
  1009. wait(0.01)
  1010. s:Play()
  1011. wait(.75)
  1012. setLerp(.17)
  1013. setJointCFrames({
  1014. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1015. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1016. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1017. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1018. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1019. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1020. })
  1021. wait(.5)
  1022. Debounces.isAttacking = false
  1023. end
  1024. end)
  1025.  
  1026. reflect = function(d,n)
  1027. local i, n = -1 * d.unit, n.unit
  1028. local dot = n:Dot(i)
  1029. return 2*dot*n - i
  1030. end
  1031.  
  1032. makeReflectionBeam = function(pos,look,isCrit)
  1033. local ray = Ray.new(pos,look)
  1034. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  1035. local e = Instance.new("Part",rayModel)
  1036. e.Anchored = true
  1037. e.CanCollide = false
  1038. e.BrickColor = BrickColor.new("White")
  1039. e.Material = "Neon"
  1040. e.FormFactor = "Custom"
  1041. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  1042. if isCrit == true then
  1043. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  1044. e.Name = "Punch"
  1045. end
  1046. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  1047. local e = Instance.new("Sound",c)
  1048. if isCrit == true then
  1049. e.Volume = .5
  1050. else
  1051. e.Volume = .3
  1052. e.Pitch = 1.5
  1053. end
  1054. e.SoundId = "rbxassetid://200632875"
  1055. e:Play()
  1056. spawn(function()
  1057. wait(6)
  1058. e:Destroy()
  1059. end)
  1060. wait(.05)
  1061. if hit ~= nil then
  1062. newDir = reflect(look.unit,norm,isCrit)
  1063. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  1064. end
  1065. end
  1066.  
  1067. uinps.InputBegan:connect(function(InputObject)
  1068. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  1069. local isLooping = true
  1070. uinps.InputEnded:connect(function(InputObject2)
  1071. if InputObject2.KeyCode == Enum.KeyCode.Q then
  1072. isLooping = false
  1073. end
  1074. end)
  1075. while true do
  1076. if isLooping == false then
  1077. break
  1078. end
  1079. Debounces.attackNumber = Debounces.attackNumber + 1
  1080. local aimPos = mouse.Hit.p
  1081. local head = Instance.new("Part",c)
  1082. head.Size = Vector3.new(12,.2,12)
  1083. head.CanCollide = false
  1084. head.Anchored = true
  1085. head.Transparency = 1
  1086. for i = 1,2 do
  1087. local decal = Instance.new("Decal",head)
  1088. decal.Texture = "rbxassetid://323497117"
  1089. if i == 1 then
  1090. decal.Face = Enum.NormalId.Top
  1091. else
  1092. decal.Face = Enum.NormalId.Bottom
  1093. end
  1094. end
  1095. if Debounces.attackNumber%2 == 1 then
  1096. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  1097. else
  1098. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  1099. end
  1100. spawn(function()
  1101. local timer = 0
  1102. while rs.RenderStepped:wait() do
  1103. if timer >= 1.55 then
  1104. break
  1105. end
  1106. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1107. timer = timer + 1/30/(Debounces.FPS/60)
  1108. end
  1109. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1110. head:Destroy()
  1111. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
  1112. end)
  1113.  
  1114. wait()
  1115. local s = Instance.new("Sound",head)
  1116. s.Volume = 1
  1117. s.SoundId = "rbxassetid://332223043"
  1118. s.Pitch = 1.02
  1119. s:Play()
  1120. wait(.2)
  1121. end
  1122. end
  1123. end)
  1124.  
  1125.  
  1126. uinps.InputBegan:connect(function(InputObj)
  1127. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  1128. Debounces.isAttacking = true
  1129. local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
  1130. local head = Instance.new("Part",c)
  1131. head.Size = Vector3.new(18,.2,18)
  1132. head.CanCollide = false
  1133. head.Anchored = true
  1134. head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
  1135. head.Transparency = 1
  1136. for i = 1,2 do
  1137. local decal = Instance.new("Decal",head)
  1138. decal.Texture = "rbxassetid://323497117"
  1139. if i == 1 then
  1140. decal.Face = Enum.NormalId.Top
  1141. else
  1142. decal.Face = Enum.NormalId.Bottom
  1143. end
  1144. end
  1145. setLerp(.1)
  1146. setJointCFrames({
  1147. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  1148. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  1149. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  1150. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  1151. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  1152. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  1153. })
  1154. spawn(function()
  1155. local timer = 0
  1156. while rs.RenderStepped:wait() do
  1157. if timer >= 1.55/.8 then
  1158. break
  1159. end
  1160. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  1161. timer = timer + 1/30/(Debounces.FPS/60)
  1162. end
  1163. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  1164. head:Destroy()
  1165. makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
  1166. end)
  1167. wait()
  1168. local s = Instance.new("Sound",head)
  1169. s.Volume = 2
  1170. s.SoundId = "rbxassetid://332223043"
  1171. s.Pitch = .8
  1172. s:Play()
  1173. wait(.75)
  1174. setLerp(.17)
  1175. setJointCFrames({
  1176. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  1177. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  1178. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  1179. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  1180. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  1181. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  1182. })
  1183. wait(.5)
  1184. Debounces.isAttacking = false
  1185. end
  1186. end)
  1187.  
  1188. uinps.InputBegan:connect(function(InputObj)
  1189. if InputObj.KeyCode == Enum.KeyCode.Slash then
  1190. local finishEvent = nil
  1191. Debounces.isTyping = true
  1192. finishEvent = uinps.InputBegan:connect(function(InputObj)
  1193. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  1194. Debounces.isTyping = false
  1195. finishEvent:disconnect()
  1196. end
  1197. end)
  1198. end
  1199. end)
  1200.  
  1201. uinps.InputBegan:connect(function(InputObj)
  1202. if InputObj.KeyCode == Enum.KeyCode.R then --LeftShift then
  1203. Debounces.isSprinting = true
  1204. end
  1205. end)
  1206.  
  1207. uinps.InputEnded:connect(function(InputObj)
  1208. if InputObj.KeyCode == Enum.KeyCode.R then --LeftShift then
  1209. Debounces.isSprinting = false
  1210. end
  1211. end)
  1212.  
  1213. rs.RenderStepped:connect(function()
  1214. Debounces.FPS = 1/rs.RenderStepped:wait()
  1215. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  1216. if Debounces.isPassive == false then
  1217. Debounces.isPassive = false
  1218. fire.Enabled = false
  1219. light.Range = 0
  1220. fight:Pause()
  1221. --fight:Stop()
  1222. sans:Resume()
  1223. efxBlock.Transparency = 1
  1224. else
  1225. fire.Enabled = true
  1226. light.Range = 10
  1227. fight:Resume()
  1228. Debounces.isPassive = true
  1229. --[[fight:Play()
  1230. wait(1)
  1231. fight:Stop() ]]
  1232. sans:Pause()
  1233. efxBlock.Transparency = 0
  1234. end
  1235. for i,v in pairs (rayModel:children()) do
  1236. if v.Transparency >= 1 then
  1237. v:Destroy()
  1238. else
  1239. v.CanCollide = true
  1240. local parts = v:GetTouchingParts()
  1241. v.CanCollide = false
  1242. for i = 1,#parts do
  1243. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  1244. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  1245. elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
  1246. parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
  1247. end
  1248. end
  1249. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  1250. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  1251. end
  1252. end
  1253. for i = 1,#Joints do
  1254. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  1255. end
  1256. local sineval = math.sin(tick() * 2) * 3
  1257. fire.Acceleration = Vector3.new(sineval,1,sineval)
  1258. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
  1259. end)
  1260. if Debounces.isPassive==true then
  1261. bso = Instance.new("Sound",c)
  1262. bso.Name="bso"
  1263. c.bso.SoundId = "rbxassetid://429205230"
  1264. c.bso.Looped = true
  1265. c.bso.Volume = 100
  1266. wait(0.01)
  1267. c.bso:Play()
  1268. wait(1.26)
  1269. c.bso:Stop()
  1270. wait(0.02)
  1271. c.bso:Remove()
  1272. end
  1273.  
  1274. --[[if Debounces.isPassive==false then
  1275. c.bso:Stop()
  1276. c.bso:Remove()
  1277. end ]]
  1278.  
  1279. efxBlock=c.eyeblok
  1280. while true do
  1281. wait(0.15)
  1282. if active==true then
  1283. if efxBlock.BrickColor ~= BrickColor.new("New Yeller") then
  1284. efxBlock.BrickColor = BrickColor.new("New Yeller")
  1285. else
  1286. efxBlock.BrickColor = BrickColor.new("Cyan")
  1287. end
  1288. end
  1289. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement