Advertisement
StarzoZero

Roblox NON FE Sans Script 2

Jan 9th, 2019
938
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.99 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.") ;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3. script.Parent = owner.Character
  4. local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5. local function NewFakeEvent()
  6. local Bind = Instance.new("BindableEvent")
  7. local Fake;Fake = {Connections = {},
  8. fakeEvent=true;
  9. Connect=function(self,Func)
  10. Bind.Event:connect(Func)
  11. self.Connections[Bind] = true
  12. return setmetatable({Connected = true},{
  13. __index = function (self,Index)
  14. if Index:lower() == "disconnect" then
  15. return function() Fake.Connections[Bind] = false;self.Connected = false
  16.  
  17. return Fake[Index]
  18. ;
  19. __tostring = function() return "Connection" ;
  20. })
  21. }
  22. Fake.connect = Fake.Connect;return Fake;
  23.  
  24. local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25. local UserInputService = {InputBegan=NewFakeEvent(),Input ed=NewFakeEvent()}
  26. local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27. self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28. };ContextActionService.UnBindAction = ContextActionService.BindAction
  29. local function TriggerEvent(self,Event,...)
  30. local Trigger = Mouse[Event]
  31. if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32. for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...)
  33.  
  34.  
  35. Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36. Event.OnServerEvent:Connect(function(FiredBy,Input)
  37. if FiredBy.Name ~= owner.Name then return
  38. if Input.MouseEvent then
  39. Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40. else
  41. local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42. if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
  43. for _,Action in pairs(ContextActionService.Actions) do
  44. for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input)
  45.  
  46. Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47. UserInputService:TrigEvent(Begin and "InputBegan" or "Input ed",Input,false)
  48.  
  49.  
  50. InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51. Event.Parent = NLS([[
  52. local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53. local Input = function(Input,gameProcessedEvent)
  54. if gameProcessedEvent then return
  55. Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56.  
  57. UserInputService.InputBegan:Connect(Input);UserInputService.Input ed:Connect(Input)
  58. local Hit,Target
  59. while wait(1/30) do
  60. if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61. Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62.  
  63.  
  64. ]],owner.Character)
  65.  
  66. RealGame = game;game = setmetatable({},{
  67. __index = function (self,Index)
  68. local Sandbox = function (Thing)
  69. if Thing:IsA("Player") then
  70. local RealPlayer = Thing
  71. return setmetatable({},{
  72. __index = function (self,Index)
  73. local Type = type(RealPlayer[Index])
  74. if Type == "function" then
  75. if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76. return function (self)return InternalData["Mouse"]
  77.  
  78. return function (self,...)return RealPlayer[Index](RealPlayer,...)
  79.  
  80. return RealPlayer[Index]
  81. ;
  82. __tostring = function(self) return RealPlayer.Name
  83. })
  84.  
  85.  
  86. if RealGame[Index] then
  87. local Type = type(RealGame[Index])
  88. if Type == "function" then
  89. if Index:lower() == "getservice" or Index:lower() == "service" then
  90. return function (self,Service)
  91. local FakeServices = {
  92. ["players"] = function()
  93. return setmetatable({},{
  94. __index = function (self2,Index2)
  95. local RealService = RealGame:GetService(Service)
  96. local Type2 = type(Index2)
  97. if Type2 == "function" then
  98. return function (self,...) return RealService[Index2](RealService,...)
  99. else
  100. if Index2:lower() == "localplayer" then return Sandbox(owner)
  101. return RealService[Index2]
  102.  
  103. ;
  104. __tostring = function(self) return RealGame:GetService(Service).Name
  105. })
  106. ;
  107. ["contextactionservice"] = function() return InternalData["ContextActionService"] ;
  108. ["userinputservice"] = function() return InternalData["UserInputService"] ;
  109. ["runservice"] = function()
  110. return setmetatable({},{
  111. __index = function(self2,Index2)
  112. local RealService = RealGame:GetService(Service)
  113. local Type2 = type(Index2)
  114. if Type2 == "function" then
  115. return function (self,...) return RealService[Index2](RealService,...)
  116. else
  117. local RunServices = {
  118. ["bindtor erstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) ;
  119. ["r erstepped"] = function() return RealService["Stepped"]
  120. }
  121. if RunServices[Index2:lower()] then return RunServices[Index2:lower()]()
  122. return RealService[Index2]
  123.  
  124.  
  125. })
  126.  
  127. }
  128. if FakeServices[Service:lower()] then return FakeServices[Service:lower()]()
  129. return RealGame:GetService(Service)
  130.  
  131.  
  132. return function (self,...) return RealGame[Index](RealGame,...)
  133. else
  134. if game:GetService(Index) then return game:GetService(Index)
  135. return RealGame[Index]
  136.  
  137.  
  138. return nil
  139.  
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. -- BurnLegion strikes again!
  143. -- wongxd, this is why you DON'T goto Voidacity's
  144. -- SLPM has been absent, so I've taken it upon myself to make something
  145.  
  146. --------------------------------------------------------
  147.  
  148. pls = game:GetService'Players'
  149. rs = game:GetService'RunService'
  150. uinps = game:GetService'UserInputService'
  151. lp = pls.LocalPlayer
  152. mouse = lp:GetMouse()
  153. c = lp.Character
  154. human = c.Humanoid
  155. human.MaxHealth = 50
  156. wait()
  157. human.Health = 50
  158.  
  159. --------------------------------------------------------
  160.  
  161. Debounces = {
  162. AnimationCycles = 0;
  163. FPS = 0;
  164. scalingDamage = false;
  165. damageLevel = 0;
  166. attackNumber = 0;
  167. isAttacking = false;
  168. isMoving = false;
  169. isSprinting = false;
  170. isBoosting = false;
  171. isPassive = false;
  172. isTyping = false;
  173. }
  174.  
  175. --------------------------------------------------------
  176.  
  177. numLerp = function(start, goal, alpha)
  178. return(((goal - start) * alpha) + start)
  179.  
  180.  
  181. CFrameZero = function()
  182. return CFrame.new(Vector3.new())
  183.  
  184.  
  185. rad = function(value)
  186. return math.rad(value)
  187.  
  188.  
  189. CFAngles = function(Vector)
  190. return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
  191.  
  192.  
  193. --------------------------------------------------------
  194.  
  195. AnimStat = {
  196. lerpSpeed = .2;
  197. lerpSpeed2 = .35;
  198. lerpTween = 0;
  199. }
  200.  
  201.  
  202. --------------------------------------------------------
  203.  
  204. BodyColors = {
  205. HeadColor = BrickColor.new("Institutional white");
  206. LeftArmColor = BrickColor.new("Institutional white");
  207. RightArmColor = BrickColor.new("Institutional white");
  208. LeftLegColor = BrickColor.new("Institutional white");
  209. RightLegColor = BrickColor.new("Institutional white");
  210. TorsoColor = BrickColor.new("Mid gray");
  211. }
  212.  
  213. Customs = {
  214. Face = "http://www.roblox.com/asset/?id=8560915";
  215. Shirt = "http://www.roblox.com/asset/?id=334781688";
  216. Pants = "http://www.roblox.com/asset/?id=335237283";
  217. }
  218.  
  219. --------------------------------------------------------
  220.  
  221. prepareCharacter = function()
  222. local transPoints = {
  223. NumberSequenceKeypoint.new(0,.819,.0375),
  224. NumberSequenceKeypoint.new(.207,.594,.0187),
  225. NumberSequenceKeypoint.new(.4,.55,.031),
  226. NumberSequenceKeypoint.new(.57,.619,.05),
  227. NumberSequenceKeypoint.new(.76,.8,.0375),
  228. NumberSequenceKeypoint.new(1,1,0),
  229. }
  230. local sizePoints = {
  231. NumberSequenceKeypoint.new(0,.687,0),
  232. NumberSequenceKeypoint.new(.111,.875,0),
  233. NumberSequenceKeypoint.new(.327,1.19,0),
  234. NumberSequenceKeypoint.new(.646,1.56,0),
  235. NumberSequenceKeypoint.new(.805,1.37,0),
  236. NumberSequenceKeypoint.new(.905,1.06,0),
  237. NumberSequenceKeypoint.new(.968,.938,0),
  238. NumberSequenceKeypoint.new(.984,1.13,0),
  239. NumberSequenceKeypoint.new(1,1.62,0),
  240. }
  241. local Size = NumberSequence.new(sizePoints)
  242. local Transparency = NumberSequence.new(transPoints)
  243. rayModel = Instance.new("Model",c)
  244. efxBlock = Instance.new("Part",c)
  245. efxBlock.BrickColor = BrickColor.new("Cyan")
  246. efxBlock.Material = "Neon"
  247. efxBlock.FormFactor = "Custom"
  248. efxBlock.Transparency = .3
  249. efxBlock.Size = Vector3.new(.3,.3,.3)
  250. local mesh = Instance.new("SpecialMesh",efxBlock)
  251. mesh.MeshType = Enum.MeshType.Sphere
  252. mesh.Scale = Vector3.new(1,1,1)
  253. light = Instance.new("PointLight",c.Head)
  254. light.Range = 10
  255. light.Color = Color3.new(0,200/255,1)
  256. light.Shadows = false
  257. local particles = Instance.new("ParticleEmitter",efxBlock)
  258. particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
  259. particles.LightEmission = .95
  260. particles.Size = Size
  261. particles.Name = "Fire"
  262. particles.Transparency = Transparency
  263. particles.LockedToPart = true
  264. particles.VelocityInheritance = .5
  265. particles.LockedToPart = true
  266. particles.Rate = 70
  267. particles.Texture = "rbxassetid://56561915"
  268. particles.Lifetime = NumberRange.new(2,2)
  269. particles.RotSpeed = NumberRange.new(100,100)
  270. particles.Speed = NumberRange.new(7,7)
  271. script.Parent = efxBlock
  272. fire = particles
  273. local offset = Vector3.new(-0.11, .23, -0.5)
  274. local weld = Instance.new("Weld",c.Head)
  275. weld.Part0 = c.Head
  276. weld.Part1 = efxBlock
  277. weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
  278. efxBlock.Parent = c
  279. local music = Instance.new("Sound",c)
  280. music.SoundId = "rbxassetid://561833161"
  281. music.Looped = true
  282. music.Volume = 1.5
  283. fight = music
  284. local music2 = Instance.new("Sound",c)
  285. music2.SoundId = "rbxassetid://561833161"
  286. music2.Looped = true
  287. music2.Volume = 0
  288. sans = music2
  289.  
  290.  
  291. for i,v in pairs (c.Head:children()) do
  292. if v.ClassName == "Sound" then
  293. v:Destroy()
  294.  
  295.  
  296. for i = 1,#Joints do
  297. Joints[i].C1 = CFrame.new(Vector3.new())
  298.  
  299. human.WalkSpeed = 0
  300. human.JumpPower = 0
  301.  
  302.  
  303. uinps.InputBegan:connect(function(InputObject)
  304. if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
  305. Debounces.isPassive = not Debounces.isPassive
  306.  
  307.  
  308.  
  309. setJointCFrames = function(table)
  310. for i = 1,#table do
  311. JointTargets[i] = table[i]
  312.  
  313. AnimationCycles = 0
  314.  
  315.  
  316. setLerp = function(speed)
  317. AnimStat.lerpSpeed = speed
  318.  
  319.  
  320. setTween = function(tween)
  321. AnimStat.lerpTween = tween
  322.  
  323.  
  324. takeDamage = function(position,damage,distance,platformStand)
  325. for i,v in pairs (pls:children()) do
  326. if v.ClassName == "Player" and v:FindFirstChild("Character") then
  327. local torso = v.Character:FindFirstChild("Torso")
  328. if torso and (torso.Position - position).magnitude < distance then
  329. v.Character.Humanoid:TakeDamage(damage)
  330. if platformStand == true then
  331. v.Character.PlatformStand = platformStand
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. --------------------------------------------------------
  339.  
  340. prepareCharacter()
  341.  
  342. --------------------------------------------------------
  343.  
  344. setLerp(.1)
  345. if Debounces.isPassive == true then
  346. setJointCFrames({
  347. CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
  348. 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));
  349. CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
  350. CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
  351. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
  352. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
  353. })
  354. else
  355. setJointCFrames({
  356. CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
  357. 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));
  358. CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
  359. 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));
  360. CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
  361. CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
  362. })
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370. human.Changed:connect(function(prop)
  371. if prop == "MoveDirection" then
  372. if human.MoveDirection.magnitude > .02 then
  373. Debounces.isMoving = true
  374. else
  375. Debounces.isMoving = false
  376.  
  377.  
  378.  
  379.  
  380. uinps.InputBegan:connect(function(InputObject)
  381. 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
  382. Debounces.isBoosting = true
  383. Debounces.damageLevel = 10
  384. Debounces.scalingDamage = true
  385. setLerp(.15)
  386. setJointCFrames({
  387. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
  388. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
  389. CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
  390. CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
  391. CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
  392. CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
  393. })
  394. local boostSpeed = 250
  395. local efx = Instance.new("Sound",c.Head)
  396. efx.SoundId = "rbxassetid://200632875"
  397. efx.Pitch = math.random(1100,1300)/1000
  398. efx.Volume = .5
  399. efx:Play()
  400. spawn(function()
  401. wait(5)
  402. efx:Destroy()
  403.  
  404.  
  405. setJointCFrames({
  406. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
  407. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
  408. CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
  409. CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
  410. CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
  411. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
  412. })
  413. wait(.2)
  414. Debounces.damageLevel = 0
  415. Debounces.scalingDamage = false
  416. Debounces.isBoosting = false
  417.  
  418.  
  419.  
  420. uinps.InputBegan:connect(function(InputObject)
  421. 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
  422. Debounces.isBoosting = true
  423. Debounces.damageLevel = 10
  424. Debounces.scalingDamage = true
  425. setJointCFrames({
  426. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
  427. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
  428. CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
  429. CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
  430. CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
  431. CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
  432. })
  433. local boostSpeed = 250
  434. local efx = Instance.new("Sound",c.Head)
  435. efx.SoundId = "rbxassetid://200632875"
  436. efx.Pitch = math.random(1100,1300)/1000
  437. efx.Volume = .5
  438. efx:Play()
  439. spawn(function()
  440. wait(5)
  441. efx:Destroy()
  442.  
  443.  
  444. setLerp(.3)
  445. setJointCFrames({
  446. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
  447. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  448. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  449. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  450. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  451. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  452. })
  453. wait(.2)
  454.  
  455.  
  456.  
  457.  
  458. uinps.InputBegan:connect(function(InputObject)
  459. 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
  460. Debounces.isBoosting = true
  461. Debounces.damageLevel = 10
  462. Debounces.scalingDamage = true
  463. setLerp(.15)
  464. setJointCFrames({
  465. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
  466. CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
  467. CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
  468. CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
  469. CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
  470. CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  471. })
  472. local boostSpeed = 250
  473. local efx = Instance.new("Sound",c.Head)
  474. efx.SoundId = "rbxassetid://200632875"
  475. efx.Pitch = math.random(1100,1300)/1000
  476. efx.Volume = .5
  477. efx:Play()
  478. spawn(function()
  479. wait(5)
  480. efx:Destroy()
  481.  
  482.  
  483. setLerp(.3)
  484. setJointCFrames({
  485. CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
  486. CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
  487. CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
  488. CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
  489. CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
  490. CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
  491. })
  492. wait(.2)
  493.  
  494.  
  495.  
  496.  
  497. uinps.InputBegan:connect(function(InputObject)
  498. 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
  499. Debounces.isBoosting = true
  500. setLerp(.15)
  501. setJointCFrames({
  502. CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
  503. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
  504. CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
  505. CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
  506. CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
  507. CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
  508. })
  509. local boostSpeed = 150
  510. local boostSpeed = 250
  511. local efx = Instance.new("Sound",c.Head)
  512. efx.SoundId = "rbxassetid://200632875"
  513. efx.Pitch = math.random(1100,1300)/1000
  514. efx.Volume = .5
  515. efx:Play()
  516. spawn(function()
  517. wait(5)
  518. efx:Destroy()
  519.  
  520.  
  521. setLerp(.3)
  522. setJointCFrames({
  523. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
  524. CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
  525. CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
  526. CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
  527. CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
  528. CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
  529. })
  530. wait(.2)
  531.  
  532.  
  533.  
  534.  
  535. uinps.InputBegan:connect(function(InputObject)
  536. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  537. local isLooping = true
  538. uinps.Input ed:connect(function(InputObject2)
  539. if InputObject2.KeyCode == Enum.KeyCode.Q then
  540. isLooping = false
  541.  
  542.  
  543. while true do
  544. if isLooping == false then
  545. break
  546.  
  547. Debounces.attackNumber = Debounces.attackNumber + 1
  548. local aimPos = mouse.Hit.p
  549. local head = Instance.new("Part",c)
  550. head.Size = Vector3.new(12,.2,12)
  551. head.CanCollide = false
  552. head.Anchored = true
  553. head.Transparency = 1
  554. for i = 1,2 do
  555. local decal = Instance.new("Decal",head)
  556. decal.Texture = "rbxassetid://323497117"
  557. if i == 1 then
  558. decal.Face = Enum.NormalId.Top
  559. else
  560. decal.Face = Enum.NormalId.Bottom
  561.  
  562.  
  563. if Debounces.attackNumber%2 == 1 then
  564. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  565. else
  566. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  567.  
  568. spawn(function()
  569. local timer = 0
  570. while rs.R erStepped:wait() do
  571. if timer >= 1.55 then
  572. break
  573.  
  574. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  575. timer = timer + 1/30/(Debounces.FPS/60)
  576.  
  577. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  578. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  579. local hit, pos = workspace:FindPartOnRay(ray,c)
  580. local dis = (head.CFrame.p - pos).magnitude
  581. local rayPart = Instance.new("Part",rayModel)
  582. rayPart.Material = "Neon"
  583. rayPart.FormFactor = "Custom"
  584. rayPart.BrickColor = BrickColor.new(1,1,1)
  585. rayPart.Anchored = true
  586. rayPart.CanCollide = false
  587. rayPart.Size = Vector3.new(7,7,dis + 400)
  588. 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)
  589. rayPart.CFrame = rayCFrame
  590.  
  591.  
  592. wait()
  593. local s = Instance.new("Sound",head)
  594. s.Volume = 1
  595. s.SoundId = "rbxassetid://332223043"
  596. s:Play()
  597. wait(.04)
  598.  
  599.  
  600.  
  601.  
  602. uinps.InputBegan:connect(function(InputObj)
  603. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
  604. Debounces.isAttacking = true
  605.  
  606. for i = 1,2 do
  607. local decal = Instance.new("Decal",head)
  608. decal.Texture = "rbxassetid://323497117"
  609. if i == 1 then
  610. decal.Face = Enum.NormalId.Top
  611. else
  612. decal.Face = Enum.NormalId.Bottom
  613.  
  614.  
  615. setLerp(.1)
  616. setJointCFrames({
  617. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  618. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  619. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  620. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  621. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  622. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  623. })
  624. spawn(function()
  625. local timer = 0
  626. while rs.R erStepped:wait() do
  627. if timer >= 1.55/.8 then
  628. break
  629.  
  630. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  631. timer = timer + 1/30/(Debounces.FPS/60)
  632.  
  633. head.CFrame = CFrame.new(head.CFrame.p,aimPos)
  634. local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
  635. local hit, pos = workspace:FindPartOnRay(ray,c)
  636. local dis = (head.CFrame.p - pos).magnitude
  637. local rayPart = Instance.new("Part",rayModel)
  638. rayPart.Material = "Neon"
  639. rayPart.FormFactor = "Custom"
  640. rayPart.Name = "Punch"
  641. rayPart.BrickColor = BrickColor.new(1,1,1)
  642. rayPart.Anchored = true
  643. rayPart.CanCollide = false
  644. rayPart.Size = Vector3.new(28,28,dis + 400)
  645. 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)
  646. rayPart.CFrame = rayCFrame
  647.  
  648.  
  649. wait()
  650. local s = Instance.new("Sound",head)
  651. s.Volume = 1
  652. s.SoundId = "rbxassetid://332223043"
  653. s.Pitch = .8
  654. s:Play()
  655. wait(.75)
  656. setLerp(.17)
  657. setJointCFrames({
  658. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  659. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  660. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  661. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  662. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  663. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  664. })
  665. wait(.5)
  666. Debounces.isAttacking = false
  667.  
  668.  
  669.  
  670. reflect = function(d,n)
  671. local i, n = -1 * d.unit, n.unit
  672. local dot = n:Dot(i)
  673. return 2*dot*n - i
  674.  
  675.  
  676. makeReflectionBeam = function(pos,look,isCrit)
  677. local ray = Ray.new(pos,look)
  678. local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
  679. local e = Instance.new("Part",rayModel)
  680. e.Anchored = true
  681. e.CanCollide = false
  682. e.BrickColor = BrickColor.new("White")
  683. e.Material = "Neon"
  684. e.FormFactor = "Custom"
  685. e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
  686. if isCrit == true then
  687. e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
  688. e.Name = "Punch"
  689.  
  690. e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
  691. local e = Instance.new("Sound",c)
  692. if isCrit == true then
  693. e.Volume = .5
  694. else
  695. e.Volume = .3
  696. e.Pitch = 1.5
  697.  
  698. e.SoundId = "rbxassetid://200632875"
  699. e:Play()
  700. spawn(function()
  701. wait(6)
  702. e:Destroy()
  703.  
  704. wait(.05)
  705. if hit ~= nil then
  706. newDir = reflect(look.unit,norm,isCrit)
  707. makeReflectionBeam(hitpos,newDir * 999,isCrit)
  708.  
  709.  
  710.  
  711. uinps.InputBegan:connect(function(InputObject)
  712. if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  713. local isLooping = true
  714. uinps.Input ed:connect(function(InputObject2)
  715. if InputObject2.KeyCode == Enum.KeyCode.Q then
  716. isLooping = false
  717.  
  718.  
  719. while true do
  720. if isLooping == false then
  721. break
  722.  
  723. Debounces.attackNumber = Debounces.attackNumber + 1
  724. local aimPos = mouse.Hit.p
  725. local head = Instance.new("Part",c)
  726. head.Size = Vector3.new(12,.2,12)
  727. head.CanCollide = false
  728. head.Anchored = true
  729. head.Transparency = 1
  730. for i = 1,2 do
  731. local decal = Instance.new("Decal",head)
  732. decal.Texture = "rbxassetid://323497117"
  733. if i == 1 then
  734. decal.Face = Enum.NormalId.Top
  735. else
  736. decal.Face = Enum.NormalId.Bottom
  737.  
  738.  
  739. if Debounces.attackNumber%2 == 1 then
  740. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
  741. else
  742. head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
  743.  
  744. spawn(function()
  745. local timer = 0
  746. while rs.R erStepped:wait() do
  747. if timer >= 1.55 then
  748. break
  749.  
  750. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  751. timer = timer + 1/30/(Debounces.FPS/60)
  752.  
  753.  
  754.  
  755.  
  756. wait()
  757. local s = Instance.new("Sound",head)
  758. s.Volume = 1
  759. s.SoundId = "rbxassetid://332223043"
  760. s.Pitch = 1.02
  761. s:Play()
  762. wait(.2)
  763.  
  764.  
  765.  
  766.  
  767. uinps.InputBegan:connect(function(InputObj)
  768. if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
  769. Debounces.isAttacking = true
  770.  
  771. for i = 1,2 do
  772. local decal = Instance.new("Decal",head)
  773. decal.Texture = "rbxassetid://323497117"
  774. if i == 1 then
  775. decal.Face = Enum.NormalId.Top
  776. else
  777. decal.Face = Enum.NormalId.Bottom
  778.  
  779.  
  780. setLerp(.1)
  781. setJointCFrames({
  782. CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
  783. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
  784. CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
  785. CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
  786. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
  787. CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
  788. })
  789. spawn(function()
  790. local timer = 0
  791. while rs.R erStepped:wait() do
  792. if timer >= 1.55/.8 then
  793. break
  794.  
  795. head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
  796. timer = timer + 1/30/(Debounces.FPS/60)
  797.  
  798.  
  799.  
  800. wait()
  801. local s = Instance.new("Sound",head)
  802. s.Volume = 2
  803. s.SoundId = "rbxassetid://332223043"
  804. s.Pitch = .8
  805. s:Play()
  806. wait(.75)
  807. setLerp(.17)
  808. setJointCFrames({
  809. CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
  810. CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
  811. CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
  812. CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
  813. CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
  814. CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
  815. })
  816. wait(.5)
  817. Debounces.isAttacking = false
  818.  
  819.  
  820.  
  821. uinps.InputBegan:connect(function(InputObj)
  822. if InputObj.KeyCode == Enum.KeyCode.Slash then
  823. local finishEvent = nil
  824. Debounces.isTyping = true
  825. finishEvent = uinps.InputBegan:connect(function(InputObj)
  826. if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
  827. Debounces.isTyping = false
  828. finishEvent:disconnect()
  829.  
  830.  
  831.  
  832.  
  833.  
  834. uinps.InputBegan:connect(function(InputObj)
  835. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  836. Debounces.isSprinting = true
  837.  
  838.  
  839.  
  840. uinps.Input ed:connect(function(InputObj)
  841. if InputObj.KeyCode == Enum.KeyCode.LeftShift then
  842. Debounces.isSprinting = false
  843.  
  844.  
  845.  
  846. rs.R erStepped:connect(function()
  847. Debounces.FPS = 1/rs.R erStepped:wait()
  848. local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
  849. if Debounces.isPassive == false then
  850. fire.Enabled = false
  851. light.Range = 0
  852. fight:Pause()
  853. sans:Resume()
  854. efxBlock.Transparency = 1
  855. else
  856. fire.Enabled = true
  857. light.Range = 10
  858. fight:Resume()
  859. sans:Pause()
  860. efxBlock.Transparency = 0
  861.  
  862. for i,v in pairs (rayModel:children()) do
  863. if v.Transparency >= 1 then
  864. v:Destroy()
  865. else
  866. v.CanCollide = true
  867. local parts = v:GetTouchingParts()
  868. v.CanCollide = false
  869. for i = 1,#parts do
  870. if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
  871. parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
  872.  
  873.  
  874.  
  875. v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
  876. v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
  877.  
  878.  
  879. for i = 1,#Joints do
  880. Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
  881.  
  882. local sineval = math.sin(tick() * 2) * 3
  883. fire.Acceleration = Vector3.new(sineval,1,sineval)
  884. light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement