Advertisement
Lolsux

Untitled

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