Advertisement
StrawberryMemester

altadsans

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