SHOW:
|
|
- or go back to the newest paste.
1 | --[[ | |
2 | req list | |
3 | ||
4 | heart control (the force) | |
5 | ||
6 | teleport | |
7 | ||
8 | bone zone | |
9 | ||
10 | throw bones | |
11 | --]] | |
12 | ||
13 | local Level=1 | |
14 | local function RiseLevel(hum,dmg) | |
15 | if tonumber(Level)then | |
16 | if hum.Health>0 and hum.Health-dmg<=0 then Level=Level+1 | |
17 | local s=Instance.new("Sound")end--s. end | |
18 | else warn'String is not able to level up , or having issure to level.'end | |
19 | end | |
20 | ||
21 | local Tired={n=0,m=10000,d=false}local DefAble=true | |
22 | --https://github.com/Mokiros/roblox-FE-compatibility | |
23 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
24 | local Player,game,owner = owner,game | |
25 | local RealPlayer = Player | |
26 | do | |
27 | print("FE Compatibility code by Mokiros") | |
28 | local rp = RealPlayer | |
29 | script.Parent = rp.Character | |
30 | ||
31 | --RemoteEvent for communicating | |
32 | local Event = Instance.new("RemoteEvent") | |
33 | Event.Name = "UserInput_Event" | |
34 | ||
35 | --Fake event to make stuff like Mouse.KeyDown work | |
36 | local function fakeEvent() | |
37 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
38 | t.connect = t.Connect | |
39 | return t | |
40 | end | |
41 | ||
42 | --Creating fake input objects with fake variables | |
43 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
44 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
45 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
46 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
47 | end} | |
48 | --Merged 2 functions into one by checking amount of arguments | |
49 | CAS.UnbindAction = CAS.BindAction | |
50 | ||
51 | --This function will trigger the events that have been :Connect()'ed | |
52 | local function te(self,ev,...) | |
53 | local t = m[ev] | |
54 | if t and t._fakeEvent then | |
55 | for _,f in pairs(t.Functions) do | |
56 | f(...) | |
57 | end | |
58 | end | |
59 | end | |
60 | m.TrigEvent = te | |
61 | UIS.TrigEvent = te | |
62 | ||
63 | Event.OnServerEvent:Connect(function(plr,io) | |
64 | if plr~=rp then return end | |
65 | m.Target = io.Target | |
66 | m.Hit = io.Hit | |
67 | if not io.isMouse then | |
68 | local b = io.UserInputState == Enum.UserInputState.Begin | |
69 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
70 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
71 | end | |
72 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
73 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
74 | end | |
75 | for _,t in pairs(CAS.Actions) do | |
76 | for _,k in pairs(t.Keys) do | |
77 | if k==io.KeyCode then | |
78 | t.Function(t.Name,io.UserInputState,io) | |
79 | end | |
80 | end | |
81 | end | |
82 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
83 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
84 | end | |
85 | end) | |
86 | Event.Parent = NLS([==[ | |
87 | local Player = game:GetService("Players").LocalPlayer | |
88 | local Event = script:WaitForChild("UserInput_Event") | |
89 | ||
90 | local Mouse = Player:GetMouse() | |
91 | local UIS = game:GetService("UserInputService") | |
92 | local input = function(io,a) | |
93 | if a then return end | |
94 | --Since InputObject is a client-side instance, we create and pass table instead | |
95 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
96 | end | |
97 | UIS.InputBegan:Connect(input) | |
98 | UIS.InputEnded:Connect(input) | |
99 | ||
100 | local h,t | |
101 | --Give the server mouse data 30 times every second, but only if the values changed | |
102 | --If player is not moving their mouse, client won't fire events | |
103 | while wait(1/30) do | |
104 | if h~=Mouse.Hit or t~=Mouse.Target then | |
105 | h,t=Mouse.Hit,Mouse.Target | |
106 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
107 | end | |
108 | end]==],Player.Character) | |
109 | ||
110 | ----Sandboxed game object that allows the usage of client-side methods and services | |
111 | --Real game object | |
112 | local _rg = game | |
113 | ||
114 | --Metatable for fake service | |
115 | local fsmt = { | |
116 | __index = function(self,k) | |
117 | local s = rawget(self,"_RealService") | |
118 | if s then | |
119 | return typeof(s[k])=="function" | |
120 | and function(_,...)return s[k](s,...)end or s[k] | |
121 | end | |
122 | end, | |
123 | __newindex = function(self,k,v) | |
124 | local s = rawget(self,"_RealService") | |
125 | if s then s[k]=v end | |
126 | end | |
127 | } | |
128 | local function FakeService(t,RealService) | |
129 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
130 | return setmetatable(t,fsmt) | |
131 | end | |
132 | ||
133 | --Fake game object | |
134 | local g = { | |
135 | GetService = function(self,s) | |
136 | return rawget(self,s) or _rg:GetService(s) | |
137 | end, | |
138 | Players = FakeService({ | |
139 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
140 | },"Players"), | |
141 | UserInputService = FakeService(UIS,"UserInputService"), | |
142 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
143 | RunService = FakeService({ | |
144 | _btrs = {}, | |
145 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
146 | BindToRenderStep = function(self,name,_,fun) | |
147 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
148 | end, | |
149 | UnbindFromRenderStep = function(self,name) | |
150 | self._btrs[name]:Disconnect() | |
151 | end, | |
152 | },"RunService") | |
153 | } | |
154 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
155 | g.service = g.GetService | |
156 | FakeService(g,game) | |
157 | --Changing owner to fake player object to support owner:GetMouse() | |
158 | game,owner = g,g.Players.LocalPlayer | |
159 | end | |
160 | ||
161 | local p = owner | |
162 | local char = p.Character | |
163 | - | local mouse = plr:GetMouse() |
163 | + | |
164 | local rarm = char["Right Arm"] | |
165 | local lleg = char["Left Leg"] | |
166 | local rleg = char["Right Leg"] | |
167 | local hed = char.Head | |
168 | local Torso = char.Torso | |
169 | local hum = char.Humanoid | |
170 | local cam = workspace.CurrentCamera | |
171 | local root = char.HumanoidRootPart | |
172 | local deb = false | |
173 | local shot = 0 | |
174 | local potential = false | |
175 | local debris=game:service"Debris" | |
176 | local l = game:GetService("Lighting") | |
177 | local rs = game:GetService("RunService").RenderStepped | |
178 | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1} | |
179 | math.randomseed(os.time()) | |
180 | for i,v in pairs(char:children()) do | |
181 | if v:IsA("Accessory") then | |
182 | v:Destroy() | |
183 | end | |
184 | end | |
185 | for i,v in pairs (hed:GetChildren()) do | |
186 | if v:IsA("Sound") then | |
187 | v:Destroy() | |
188 | end | |
189 | end | |
190 | music = Instance.new("Sound",c) | |
191 | music2 = Instance.new("Sound",c) | |
192 | local pl = game:service'Players'.LocalPlayer | |
193 | local chara = pl.Character | |
194 | local hum = chara:FindFirstChildOfClass("Humanoid") | |
195 | hum.MaxHealth = 10000000000000000000 | |
196 | hum.Health = 10000000000000000000 | |
197 | maincol = "White" | |
198 | increment = 20 | |
199 | if 1 then | |
200 | local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui")) | |
201 | local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0 | |
202 | Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0) | |
203 | local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0) | |
204 | idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new() | |
205 | idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1) | |
206 | idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end) | |
207 | local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0 | |
208 | normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1) | |
209 | normal.TextXAlignment="Left"normal.TextYAlignment="Top" | |
210 | normal.Text=[[* Able to hold | |
211 | ! It changes function when sprint | |
212 | ---------------------------------- | |
213 | K: Ink Time | |
214 | !*Q :Ink Gaster Blaster (quick) | |
215 | ! E :Ink Gaster Blaster (high damage) | |
216 | T :Teleport | |
217 | F :Ink Bone Zone | |
218 | *G :Ink Bone Throw | |
219 | *C :Heart Control | |
220 | Shift : Run | |
221 | Ink Sans Script | |
222 | Made By PowerSans1234 | |
223 | Script By progr1717 | |
224 | ]] | |
225 | spawn(function() | |
226 | while game:service'RunService'.RenderStepped:wait()do | |
227 | Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1) | |
228 | end end) | |
229 | end | |
230 | -------------------------------------------------------- | |
231 | hed.face.Texture = "rbxassetid://589766751" | |
232 | chara:WaitForChild"Body Colors" | |
233 | char["Body Colors"].HeadColor = BrickColor.new("Institutional white") | |
234 | char["Body Colors"].LeftArmColor = BrickColor.new("Institutional white") | |
235 | char["Body Colors"].RightArmColor = BrickColor.new("Institutional white") | |
236 | char["Body Colors"].TorsoColor = BrickColor.new("Institutional white") | |
237 | char["Body Colors"].RightLegColor = BrickColor.new("Institutional white") | |
238 | char["Body Colors"].LeftLegColor = BrickColor.new("Institutional white") | |
239 | --------------------------------------- | |
240 | ypcall(function() | |
241 | shirt = Instance.new("Shirt", char) | |
242 | shirt.Name = "Shirt" | |
243 | pants = Instance.new("Pants", char) | |
244 | pants.Name = "Pants" | |
245 | char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=429776330" | |
246 | char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=482364735" | |
247 | end) | |
248 | -------------------------------------------------------- | |
249 | KG = Instance.new("Sound", game.Players.LocalPlayer.Character) | |
250 | KG.Volume = 3 | |
251 | KG.SoundId = "rbxassetid://928385983" | |
252 | KG.Looped = true | |
253 | KG:Play() | |
254 | ||
255 | -------------------------------------------------------- | |
256 | CV="Eggplant" | |
257 | p = game.Players.LocalPlayer | |
258 | char = p.Character | |
259 | local txt = Instance.new("BillboardGui", char) | |
260 | txt.Adornee = char .Head | |
261 | txt.Name = "_status" | |
262 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
263 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
264 | local text = Instance.new("TextLabel", txt) | |
265 | text.Size = UDim2.new(10, 0, 7, 0) | |
266 | text.FontSize = "Size24" | |
267 | text.TextScaled = true | |
268 | text.TextTransparency = 0 | |
269 | text.BackgroundTransparency = 1 | |
270 | text.TextTransparency = 0 | |
271 | text.TextStrokeTransparency = 0 | |
272 | text.Font = "Arcade" | |
273 | text.TextStrokeColor3 = Color3.new(255,255,255) | |
274 | ||
275 | v=Instance.new("Part") | |
276 | v.Name = "ColorBrick" | |
277 | v.Parent=p.Character | |
278 | v.FormFactor="Symmetric" | |
279 | v.Anchored=true | |
280 | v.CanCollide=false | |
281 | v.BottomSurface="Smooth" | |
282 | v.TopSurface="Smooth" | |
283 | v.Size=Vector3.new(10,5,3) | |
284 | v.Transparency=1 | |
285 | v.CFrame=char.Torso.CFrame | |
286 | v.BrickColor=BrickColor.new(CV) | |
287 | v.Transparency=1 | |
288 | text.TextColor3 = Color3.new(0,0,0) | |
289 | v.Shape="Block" | |
290 | wait() | |
291 | text.Text = "Im Ink!Sans and If you ERROR SANS let's fight" | |
292 | wait(2) | |
293 | text.Text = "wait you are error sans? HAHAHAHAHAHAHA okay start fight NOW"; | |
294 | wait(3) | |
295 | text.TextColor3 = Color3.new(0,0,0) | |
296 | spawn(function()while wait()do text.Text = "Ink Sans LV"..tostring(Level)end end) | |
297 | hed.face.Texture = "rbxassetid://589766751" | |
298 | -------------------------------------------------------- | |
299 | pls = game:GetService'Players' | |
300 | rs = game:GetService'RunService' | |
301 | uinps = game:GetService'UserInputService' | |
302 | lp = pls.LocalPlayer | |
303 | mouse = lp:GetMouse() | |
304 | c = lp.Character | |
305 | human = c.Humanoid | |
306 | human.MaxHealth = 1/0 | |
307 | wait() | |
308 | human.Health = 0/0 | |
309 | c.Health:Destroy() | |
310 | ------------------------------------------------------ | |
311 | Debounces = { | |
312 | AnimationCycles = 0; | |
313 | FPS = 0; | |
314 | scalingDamage = false; | |
315 | damageLevel = 0; | |
316 | attackNumber = 0; | |
317 | isAttacking = false; | |
318 | isMoving = false; | |
319 | isSprinting = false; | |
320 | isBoosting = false; | |
321 | isPassive = false; | |
322 | isTyping = false; | |
323 | } | |
324 | ||
325 | -------------------------------------------------------- | |
326 | ||
327 | numLerp = function(start, goal, alpha) | |
328 | return(((goal - start) * alpha) + start) | |
329 | end | |
330 | ||
331 | CFrameZero = function() | |
332 | return CFrame.new(Vector3.new()) | |
333 | end | |
334 | ||
335 | rad = function(value) | |
336 | return math.rad(value) | |
337 | end | |
338 | ||
339 | CFAngles = function(Vector) | |
340 | return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z)) | |
341 | end | |
342 | ||
343 | -------------------------------------------------------- | |
344 | ||
345 | AnimStat = { | |
346 | lerpSpeed = .2; | |
347 | lerpSpeed2 = .35; | |
348 | lerpTween = 0; | |
349 | } | |
350 | ||
351 | Joints = { | |
352 | c.HumanoidRootPart.RootJoint; | |
353 | c.Torso.Neck; | |
354 | c.Torso['Left Shoulder']; | |
355 | c.Torso['Right Shoulder']; | |
356 | c.Torso['Left Hip']; | |
357 | c.Torso['Right Hip']; | |
358 | } | |
359 | ||
360 | JointTargets = { | |
361 | CFrameZero(); | |
362 | CFrameZero(); | |
363 | CFrameZero(); | |
364 | CFrameZero(); | |
365 | CFrameZero(); | |
366 | CFrameZero(); | |
367 | } | |
368 | ||
369 | -------------------------------------------------------- | |
370 | ||
371 | BodyColors = { | |
372 | HeadColor = BrickColor.new("Institutional white"); | |
373 | LeftArmColor = BrickColor.new("Institutional white"); | |
374 | RightArmColor = BrickColor.new("Institutional white"); | |
375 | LeftLegColor = BrickColor.new("Institutional white"); | |
376 | RightLegColor = BrickColor.new("Institutional white"); | |
377 | TorsoColor = BrickColor.new("Mid gray"); | |
378 | } | |
379 | ||
380 | Customs = { | |
381 | Face = "http://www.roblox.com/asset/?id=871052201"; | |
382 | Shirt = "http://www.roblox.com/asset/?id=357134155"; | |
383 | Pants = "http://www.roblox.com/asset/?id=343128366"; | |
384 | } | |
385 | ||
386 | -------------------------------------------------------- | |
387 | ||
388 | prepareCharacter = function() | |
389 | local transPoints = { | |
390 | NumberSequenceKeypoint.new(0,.819,.0375), | |
391 | NumberSequenceKeypoint.new(.207,.594,.0187), | |
392 | NumberSequenceKeypoint.new(.4,.55,.031), | |
393 | NumberSequenceKeypoint.new(.57,.619,.05), | |
394 | NumberSequenceKeypoint.new(.76,.8,.0375), | |
395 | NumberSequenceKeypoint.new(1,1,0), | |
396 | } | |
397 | local sizePoints = { | |
398 | NumberSequenceKeypoint.new(0,.687,0), | |
399 | NumberSequenceKeypoint.new(.111,.875,0), | |
400 | NumberSequenceKeypoint.new(.327,1.19,0), | |
401 | NumberSequenceKeypoint.new(.646,1.56,0), | |
402 | NumberSequenceKeypoint.new(.805,1.37,0), | |
403 | NumberSequenceKeypoint.new(.905,1.06,0), | |
404 | NumberSequenceKeypoint.new(.968,.938,0), | |
405 | NumberSequenceKeypoint.new(.984,1.13,0), | |
406 | NumberSequenceKeypoint.new(1,1.62,0), | |
407 | } | |
408 | local Size = NumberSequence.new(sizePoints) | |
409 | local Transparency = NumberSequence.new(transPoints) | |
410 | rayModel = Instance.new("Model",c) | |
411 | efcModel = Instance.new("Model",c) | |
412 | efxBlock = Instance.new("Part",c) | |
413 | efxBlock.BrickColor = BrickColor.new("Bright violet") | |
414 | efxBlock.Material = "Neon" | |
415 | efxBlock.FormFactor = "Custom" | |
416 | efxBlock.Transparency = .3 | |
417 | efxBlock.Size = Vector3.new(.3,.3,.3) | |
418 | local mesh = Instance.new("SpecialMesh",efxBlock) | |
419 | mesh.MeshType = Enum.MeshType.Sphere | |
420 | mesh.Scale = Vector3.new(1,1,1) | |
421 | light = Instance.new("PointLight",c.Head) | |
422 | light.Range = 10 | |
423 | light.Color = Color3.new(0,200/255,1) | |
424 | light.Shadows = false | |
425 | local particles = Instance.new("ParticleEmitter",efxBlock) | |
426 | particles.Color = ColorSequence.new(Color3.fromRGB(48,17,109)) | |
427 | particles.LightEmission = .5 | |
428 | particles.Size = Size | |
429 | particles.Name = "Fire" | |
430 | particles.Transparency = Transparency | |
431 | particles.LockedToPart = true | |
432 | particles.VelocityInheritance = .5 | |
433 | particles.LockedToPart = true | |
434 | particles.Rate = 70 | |
435 | particles.Texture = "rbxassetid://170478388" | |
436 | particles.Lifetime = NumberRange.new(2,2) | |
437 | particles.RotSpeed = NumberRange.new(100,100) | |
438 | particles.Speed = NumberRange.new(7,7) | |
439 | script.Parent = efxBlock | |
440 | fire = particles | |
441 | local offset = Vector3.new(-0.11, .23, -0.5) | |
442 | local weld = Instance.new("Weld",c.Head) | |
443 | weld.Part0 = c.Head | |
444 | weld.Part1 = efxBlock | |
445 | weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40)) | |
446 | efxBlock.Parent = c | |
447 | music.SoundId = "rbxassetid://316012176" | |
448 | music.Looped = true | |
449 | music.Volume = 0 | |
450 | fight = music | |
451 | music2.SoundId = "rbxassetid://316014309" | |
452 | music2.Looped = true | |
453 | music2.Volume = 0 | |
454 | sans = music2 | |
455 | pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart) | |
456 | pointGyro.P = 1e7 | |
457 | pointGyro.D = 1e3 | |
458 | pointGyro.MaxTorque = Vector3.new(0,1e7,0) | |
459 | animator = c.Humanoid:FindFirstChild("Animator") | |
460 | if animator then | |
461 | animator:Destroy() | |
462 | end | |
463 | c.Torso.roblox:Destroy() | |
464 | for i,v in pairs (c.Head:children()) do | |
465 | if v.ClassName == "Sound" then | |
466 | v:Destroy() | |
467 | end | |
468 | end | |
469 | for i = 1,#Joints do | |
470 | Joints[i].C1 = CFrame.new(Vector3.new()) | |
471 | end | |
472 | human.WalkSpeed = 0 | |
473 | human.JumpPower = 0 | |
474 | end | |
475 | ||
476 | uinps.InputBegan:connect(function(InputObject) | |
477 | if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then | |
478 | Debounces.isPassive = not Debounces.isPassive | |
479 | end | |
480 | end) | |
481 | ||
482 | setJointCFrames = function(table) | |
483 | for i = 1,#table do | |
484 | JointTargets[i] = table[i] | |
485 | end | |
486 | AnimationCycles = 0 | |
487 | end | |
488 | ||
489 | setLerp = function(speed) | |
490 | AnimStat.lerpSpeed = speed | |
491 | end | |
492 | ||
493 | setTween = function(tween) | |
494 | AnimStat.lerpTween = tween | |
495 | end | |
496 | ||
497 | takeDamage = function(position,damage,distance,platformStand) | |
498 | for i,v in pairs (pls:children()) do | |
499 | if v.ClassName == "Player" and v:FindFirstChild("Character") then | |
500 | local torso = v.Character:FindFirstChild("Torso") | |
501 | if torso and (torso.Position - position).magnitude < distance then | |
502 | RiseLevel(v.Character.Humanoid,damage) | |
503 | v.Character.Humanoid:TakeDamage(damage) | |
504 | if platformStand == true then | |
505 | v.Character.PlatformStand = platformStand | |
506 | end | |
507 | end | |
508 | end | |
509 | end | |
510 | end | |
511 | ||
512 | -------------------------------------------------------- | |
513 | ||
514 | prepareCharacter() | |
515 | ||
516 | -------------------------------------------------------- | |
517 | hldng={}Player=p | |
518 | function chatfunc(text) | |
519 | spawn(function()local function lerp(a,b,t)return a*(1-t)+(b*t)end | |
520 | local rs=game:service'RunService'.RenderStepped | |
521 | local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end | |
522 | local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart | |
523 | local se=Instance.new("Sound",root)se.Volume=5 se.SoundId="rbxassetid://417445954" | |
524 | if Character:FindFirstChild("cht")then Character.cht:Destroy()end | |
525 | local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffsetWorldSpace=Vector3.new(0,4,0)b.Name="cht" | |
526 | local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0) | |
527 | local texts={} | |
528 | for i=1,snum do | |
529 | texts[i]=Instance.new("TextButton",b) | |
530 | texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30 | |
531 | texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0) | |
532 | texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(1) | |
533 | texts[i].TextStrokeTransparency=1 texts[i].Font="Cartoon"texts[i].TextScaled=1 texts[i].TextTransparency=1 | |
534 | end | |
535 | local DoOpt=function(Set,Val,LerpB)for i=1,#texts do if texts[i].Parent and b.Parent then if LerpB~=nil then | |
536 | if typeof(texts[i][Set])=="UDim2"then texts[i][Set]=texts[i][Set]:lerp(Val,LerpB)else texts[i][Set]=lerp(texts[i][Set],Val,LerpB)end | |
537 | else texts[i][Set]=Val end end end end | |
538 | for i=1,#texts do | |
539 | if texts[i].Parent then | |
540 | texts[i].TextTransparency=0 texts[i].TextStrokeTransparency=0 | |
541 | end | |
542 | if texts[i].Text~=" "then se.TimePosition=.06 se:Play()end | |
543 | sw(3) | |
544 | end | |
545 | sw(180) | |
546 | for i=1,0,-.025 do | |
547 | DoOpt("TextTransparency",1-i)--DoOpt("TextStrokeTransparency",1-i) | |
548 | sw() | |
549 | end | |
550 | b:Destroy() | |
551 | end) | |
552 | end Player.Chatted:connect(function(m)chatfunc(game:service'Chat':FilterStringAsync(m,Player,Player))end) | |
553 | mouse.KeyUp:connect(function(k) | |
554 | hldng[k]=nil | |
555 | end) | |
556 | ||
557 | local function doit() | |
558 | if DefAble then | |
559 | return | |
560 | else | |
561 | if human.Health~=human.MaxHealth then | |
562 | DefAble=false | |
563 | human:Destroy() | |
564 | human=Instance.new("Humanoid",chara)Instance.new("Model",human).Name="Status" | |
565 | human.MaxHealth=1 human.Health=1 | |
566 | human.HealthChanged:connect(doit) | |
567 | root.CFrame=root.CFrame*CFrame.new(0,0,10) | |
568 | hldng.r=nil warn"Dodged" | |
569 | Tired.n=Tired.n+10 | |
570 | end | |
571 | end | |
572 | end | |
573 | dodge=human.HealthChanged:connect(doit) | |
574 | local sw=function(n)if n then for i=1,n do rs.RenderStepped:wait()end else rs.RenderStepped:wait()end end | |
575 | spawn(function() | |
576 | local sine = 0 | |
577 | local idk=Instance.new("ScreenGui",p:FindFirstChildOfClass'PlayerGui') | |
578 | local frm=Instance.new("Frame",idk)frm.BorderSizePixel=0 | |
579 | frm.BackgroundTransparency=.5 frm.Size=UDim2.new(.4,0,.03,0) | |
580 | frm.Position=UDim2.new(.3,0,.7,0) | |
581 | ||
582 | local t=Instance.new("TextLabel",frm)t.Text="wait"t.BorderSizePixel=0 | |
583 | t.TextColor3=Color3.new(1,1,1)t.TextStrokeTransparency=0-- t.TextScaled=1 | |
584 | t.BackgroundTransparency=0 t.TextXAlignment="Left" t.BackgroundColor3=Color3.new(1) | |
585 | while wait()do | |
586 | t.Size=UDim2.new(Tired.n/Tired.m,0,1,0) | |
587 | if Tired.n>=Tired.m then | |
588 | Tired.n=Tired.m | |
589 | Tired.d=true | |
590 | end | |
591 | if Tired.d then | |
592 | Tired.n=Tired.n-5 DefAble=true hldng.r=nil | |
593 | end t.Text=tostring(math.floor(Tired.n*10)/10).."/"..tostring(Tired.m) | |
594 | if Tired.n<=0 then Tired.n=0 Tired.d=false end | |
595 | if DefAble then human.MaxHealth=1 human.Health=1 human.Name="Humanoid"else | |
596 | dodge:disconnect()human.MaxHealth=1 human.Health=1 dodge=human.HealthChanged:connect(doit) | |
597 | ||
598 | end | |
599 | ||
600 | if hldng.r then DefAble=false else DefAble=1 end | |
601 | ||
602 | pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100) | |
603 | if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then | |
604 | setLerp(.1) | |
605 | if Debounces.isPassive == true then --walk | |
606 | setJointCFrames({ | |
607 | CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0)); | |
608 | 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)); | |
609 | CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0)); | |
610 | CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15)); | |
611 | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489)); | |
612 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001)); | |
613 | }) | |
614 | else | |
615 | setJointCFrames({ | |
616 | CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
617 | 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)); | |
618 | CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51)); | |
619 | 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)); | |
620 | CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0)); | |
621 | CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0)); | |
622 | }) | |
623 | end | |
624 | elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then | |
625 | sine = sine + math.rad(12) --else jump | |
626 | human.WalkSpeed = 15 | |
627 | setLerp(.15) | |
628 | setJointCFrames({ | |
629 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0)); | |
630 | CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001)); | |
631 | 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)); | |
632 | 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)); | |
633 | 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)); | |
634 | 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)); | |
635 | }) | |
636 | end | |
637 | if Debounces.scalingDamage == true then | |
638 | takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true) | |
639 | end | |
640 | end | |
641 | end) | |
642 | human.Changed:connect(function(prop) | |
643 | if prop == "MoveDirection" then | |
644 | if human.MoveDirection.magnitude > .02 then | |
645 | Debounces.isMoving = true | |
646 | else | |
647 | Debounces.isMoving = false | |
648 | end | |
649 | end | |
650 | end) | |
651 | local dunkedon=false | |
652 | mouse.KeyDown:connect(function(k) | |
653 | hldng[k]=true | |
654 | if not Debounces.isAttacking then | |
655 | if k=="c"and not Tired.d and Debounces.isPassive then | |
656 | local GrabObj=mouse.Target | |
657 | local hum=nil | |
658 | if GrabObj then | |
659 | if not GrabObj.Anchored then | |
660 | if GrabObj.Parent then | |
661 | if GrabObj.Parent:FindFirstChild'Humanoid'then | |
662 | hum=GrabObj.Parent.Humanoid | |
663 | end | |
664 | end | |
665 | local jet=Instance.new("BodyPosition",GrabObj) | |
666 | if not hum then jet.D=2000 jet.P=2000 end | |
667 | while hldng.c and not Tired.d do | |
668 | jet.MaxForce=Vector3.new(10,10,10)*10000000 | |
669 | jet.Position=mouse.Target~=nil and mouse.Hit.p or jet.Position | |
670 | Tired.n=Tired.n+((not hum or hum.Health==0) and 1 or 2) | |
671 | local vel=GrabObj.Velocity.x+GrabObj.Velocity.y+GrabObj.Velocity.z | |
672 | if hum and vel>20 then RiseLevel(hum,vel/400)hum.Health=hum.Health-vel/400 end | |
673 | sw() | |
674 | end | |
675 | jet:Destroy() | |
676 | else | |
677 | warn'The object is anchored!' | |
678 | end | |
679 | end | |
680 | end | |
681 | if k=="t"and not Tired.d then -- TELEPORT | |
682 | if mouse.Target then Debounces.isAttacking=true | |
683 | local pos=mouse.Hit KG:Pause() | |
684 | root.Anchored=1 root.CFrame=CFrame.new(9999,9999,109999) | |
685 | local jam=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui")) | |
686 | jam.DisplayOrder=12 local j=Instance.new("Frame",jam)j.BackgroundColor3=Color3.new() | |
687 | j.BorderSizePixel=0 j.Size=UDim2.new(1,0,1,0) | |
688 | wait(1)Debounces.isAttacking=false KG:Resume() | |
689 | root.CFrame=pos+Vector3.new(0,3,0) | |
690 | jam:Destroy()root.Anchored=false | |
691 | end | |
692 | Tired.n=Tired.n+50 | |
693 | end | |
694 | if k=="f"and not Tired.d and not dunkedon and Debounces.isPassive then | |
695 | dunkedon=true local pos=mouse.Hit.p | |
696 | Tired.n=Tired.n+100 | |
697 | local idk=Instance.new("Part",efcModel) | |
698 | idk.Size=Vector3.new(2,80,80)local sp=Instance.new("SpecialMesh",idk)idk.Anchored=1 idk.CanCollide=nil | |
699 | sp.Scale=idk.Size*20 idk.Size=Vector3.new()idk.Color=Color3.new(1,.1,.1)sp.MeshType="Cylinder" | |
700 | idk.Transparency=.5 idk.CFrame=CFrame.new(pos)*CFrame.Angles(0,0,math.rad(90)) | |
701 | idk.Material="SmoothPlastic" | |
702 | idk.Transparency=.5 sw(20)idk:Destroy() | |
703 | spawn(function()for i=1,300 do | |
704 | local pos=CFrame.new(pos)*CFrame.Angles(0,math.rad(math.random(360)),0)*CFrame.new(0,0,math.random(380)/10)*CFrame.Angles(0,math.rad(math.random(180)),0)+Vector3.new(0,-6,0) | |
705 | spawn(function() | |
706 | local p=Instance.new("Part",efcModel) | |
707 | p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end) | |
708 | p.Color=Color3.new(1,1,1)p.Size=Vector3.new(10,1,10)p.CFrame=pos | |
709 | local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil | |
710 | local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937" | |
711 | m.Scale=Vector3.new(.05,.08,.05)/1.2 | |
712 | spawn(function() | |
713 | for i=0,1,.05 do p.CFrame=p.CFrame+Vector3.new(0,.6,0)sw()end | |
714 | sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy() | |
715 | end) | |
716 | end) | |
717 | sw() | |
718 | end | |
719 | end) | |
720 | wait(5) | |
721 | ||
722 | dunkedon=false | |
723 | end | |
724 | end | |
725 | if Debounces.isPassive and k=="g"then | |
726 | while hldng.g and not Tired.d do | |
727 | sw(10) | |
728 | Tired.n=Tired.n+1 | |
729 | local pos=CFrame.new((root.CFrame+Vector3.new(0,4,0))*CFrame.new(math.random(-70,70)/10,math.random(-10,10)/10,math.random(-70,70)/10).p,mouse.Hit.p) | |
730 | spawn(function() | |
731 | local p=Instance.new("Part",efcModel) | |
732 | p.Touched:connect(function(p)if p.Parent:FindFirstChild("Humanoid")then if p.Parent.Humanoid~=human then RiseLevel(p.Parent.Humanoid,1)p.Parent.Humanoid.Health=p.Parent.Humanoid.Health-1 end end end) | |
733 | p.Color=Color3.new(1,1,1)p.Size=Vector3.new(4,4,4)p.CFrame=pos | |
734 | local j=Instance.new("BodyVelocity",p)j.MaxForce=Vector3.new(1,1,1)/0 j.Velocity=Vector3.new()p.CanCollide=nil | |
735 | local m=Instance.new("SpecialMesh",p)m.MeshId="rbxassetid://465130937" | |
736 | m.Scale=Vector3.new(.05,.08,.05)/2.5 | |
737 | spawn(function() | |
738 | for i=0,1,.005 do p.CFrame=pos*CFrame.new(0,0,-i*300)*CFrame.Angles(math.rad(90),0,0)sw()end | |
739 | sw(10)for i=0,1,.05 do p.Transparency=i sw()end p:Destroy() | |
740 | end) | |
741 | end) | |
742 | end | |
743 | end | |
744 | ||
745 | end) | |
746 | uinps.InputBegan:connect(function(InputObject) | |
747 | 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 | |
748 | Debounces.isBoosting = true | |
749 | Debounces.damageLevel = 10 | |
750 | Debounces.scalingDamage = true | |
751 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
752 | setLerp(.15) | |
753 | setJointCFrames({ | |
754 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20)); | |
755 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837)); | |
756 | CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45)); | |
757 | CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45)); | |
758 | CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495)); | |
759 | CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999)); | |
760 | }) | |
761 | local boostSpeed = 250 | |
762 | local efx = Instance.new("Sound",c.Head) | |
763 | efx.SoundId = "rbxassetid://200632875" | |
764 | efx.Pitch = math.random(1100,1300)/1000 | |
765 | efx.Volume = .5 | |
766 | efx:Play() | |
767 | spawn(function() | |
768 | wait(5) | |
769 | efx:Destroy() | |
770 | end) | |
771 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed | |
772 | vel.P = 1e3 | |
773 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
774 | wait(.15) | |
775 | vel.P = 1000 | |
776 | vel.MaxForce = Vector3.new(3000,0,3000) | |
777 | vel.Velocity = Vector3.new() | |
778 | wait(.3) | |
779 | setLerp(.3) | |
780 | setJointCFrames({ | |
781 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13)); | |
782 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879)); | |
783 | CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45)); | |
784 | CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383)); | |
785 | CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457)); | |
786 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968)); | |
787 | }) | |
788 | wait(.2) | |
789 | vel:Destroy() | |
790 | Debounces.damageLevel = 0 | |
791 | Debounces.scalingDamage = false | |
792 | Debounces.isBoosting = false | |
793 | end | |
794 | end) | |
795 | ||
796 | uinps.InputBegan:connect(function(InputObject) | |
797 | 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 | |
798 | Debounces.isBoosting = true | |
799 | Debounces.damageLevel = 10 | |
800 | Debounces.scalingDamage = true | |
801 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
802 | setLerp(.15) | |
803 | setJointCFrames({ | |
804 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15)); | |
805 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645)); | |
806 | CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853)); | |
807 | CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102)); | |
808 | CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566)); | |
809 | CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528)); | |
810 | }) | |
811 | local boostSpeed = 250 | |
812 | local efx = Instance.new("Sound",c.Head) | |
813 | efx.SoundId = "rbxassetid://200632875" | |
814 | efx.Pitch = math.random(1100,1300)/1000 | |
815 | efx.Volume = .5 | |
816 | efx:Play() | |
817 | spawn(function() | |
818 | wait(5) | |
819 | efx:Destroy() | |
820 | end) | |
821 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed | |
822 | vel.P = 1e3 | |
823 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
824 | wait(.15) | |
825 | vel.P = 1000 | |
826 | vel.MaxForce = Vector3.new(3000,0,3000) | |
827 | vel.Velocity = Vector3.new() | |
828 | wait(.3) | |
829 | setLerp(.3) | |
830 | setJointCFrames({ | |
831 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13)); | |
832 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); | |
833 | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); | |
834 | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); | |
835 | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); | |
836 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); | |
837 | }) | |
838 | wait(.2) | |
839 | vel:Destroy() | |
840 | Debounces.damageLevel = 0 | |
841 | Debounces.scalingDamage = false | |
842 | Debounces.isBoosting = false | |
843 | end | |
844 | end) | |
845 | ||
846 | uinps.InputBegan:connect(function(InputObject) | |
847 | 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 | |
848 | Debounces.isBoosting = true | |
849 | Debounces.damageLevel = 10 | |
850 | Debounces.scalingDamage = true | |
851 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
852 | setLerp(.15) | |
853 | setJointCFrames({ | |
854 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5)); | |
855 | CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878)); | |
856 | CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0)); | |
857 | CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087)); | |
858 | CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5)); | |
859 | CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); | |
860 | }) | |
861 | local boostSpeed = 250 | |
862 | local efx = Instance.new("Sound",c.Head) | |
863 | efx.SoundId = "rbxassetid://200632875" | |
864 | efx.Pitch = math.random(1100,1300)/1000 | |
865 | efx.Volume = .5 | |
866 | efx:Play() | |
867 | spawn(function() | |
868 | wait(5) | |
869 | efx:Destroy() | |
870 | end) | |
871 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed | |
872 | vel.P = 1e3 | |
873 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
874 | wait(.15) | |
875 | vel.P = 1000 | |
876 | vel.MaxForce = Vector3.new(3000,0,3000) | |
877 | vel.Velocity = Vector3.new() | |
878 | wait(.3) | |
879 | setLerp(.3) | |
880 | setJointCFrames({ | |
881 | CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13)); | |
882 | CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327)); | |
883 | CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60)); | |
884 | CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342)); | |
885 | CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729)); | |
886 | CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999)); | |
887 | }) | |
888 | wait(.2) | |
889 | vel:Destroy() | |
890 | Debounces.damageLevel = 0 | |
891 | Debounces.scalingDamage = false | |
892 | Debounces.isBoosting = false | |
893 | end | |
894 | end) | |
895 | ||
896 | uinps.InputBegan:connect(function(InputObject) | |
897 | 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 | |
898 | Debounces.isBoosting = true | |
899 | Debounces.damageLevel = 10 | |
900 | Debounces.scalingDamage = true | |
901 | local vel = Instance.new("BodyVelocity",c.HumanoidRootPart) | |
902 | setLerp(.15) | |
903 | setJointCFrames({ | |
904 | CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0)); | |
905 | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093)); | |
906 | CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939)); | |
907 | CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465)); | |
908 | CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373)); | |
909 | CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968)); | |
910 | }) | |
911 | local boostSpeed = 150 | |
912 | local boostSpeed = 250 | |
913 | local efx = Instance.new("Sound",c.Head) | |
914 | efx.SoundId = "rbxassetid://200632875" | |
915 | efx.Pitch = math.random(1100,1300)/1000 | |
916 | efx.Volume = .5 | |
917 | efx:Play() | |
918 | spawn(function() | |
919 | wait(5) | |
920 | efx:Destroy() | |
921 | end) | |
922 | vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed | |
923 | vel.P = 1e3 | |
924 | vel.MaxForce = Vector3.new(math.huge,0,math.huge) | |
925 | wait(.15) | |
926 | vel.P = 1000 | |
927 | vel.MaxForce = Vector3.new(3000,0,3000) | |
928 | vel.Velocity = Vector3.new() | |
929 | wait(.3) | |
930 | setLerp(.3) | |
931 | setJointCFrames({ | |
932 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0)); | |
933 | CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598)); | |
934 | CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511)); | |
935 | CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887)); | |
936 | CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524)); | |
937 | CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631)); | |
938 | }) | |
939 | wait(.2) | |
940 | vel:Destroy() | |
941 | Debounces.damageLevel = 0 | |
942 | Debounces.scalingDamage = false | |
943 | Debounces.isBoosting = false | |
944 | end | |
945 | end) | |
946 | ||
947 | uinps.InputBegan:connect(function(InputObject) | |
948 | if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false and not Tired.d then | |
949 | local isLooping = true | |
950 | uinps.InputEnded:connect(function(InputObject2) | |
951 | if InputObject2.KeyCode == Enum.KeyCode.Q then | |
952 | isLooping = false | |
953 | end | |
954 | end) | |
955 | while not Tired.d do | |
956 | if isLooping == false then | |
957 | break | |
958 | end | |
959 | Debounces.attackNumber = Debounces.attackNumber + 1 | |
960 | local aimPos = mouse.Hit.p | |
961 | local head = Instance.new("Part",c) | |
962 | head.Size = Vector3.new(12,.2,12) | |
963 | head.CanCollide = false | |
964 | head.Anchored = true | |
965 | head.Transparency = 1 | |
966 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
967 | mesh.Scale=Vector3.new(.05,.05,.05) | |
968 | local decal = Instance.new("Decal",head) | |
969 | decal.Texture = "rbxassetid://441975828" | |
970 | if Debounces.attackNumber%2 == 1 then | |
971 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) | |
972 | else | |
973 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) | |
974 | end head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
975 | spawn(function() | |
976 | local timer = 0 | |
977 | while rs.RenderStepped:wait() do | |
978 | if timer >= 1.55 then | |
979 | break | |
980 | end | |
981 | head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10) | |
982 | timer = timer + 1/30/(Debounces.FPS/60) | |
983 | end | |
984 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
985 | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) | |
986 | local hit, pos = workspace:FindPartOnRay(ray,c) | |
987 | local dis = (head.CFrame.p - pos).magnitude | |
988 | local rayPart = Instance.new("Part",rayModel) | |
989 | rayPart.Material = "Neon" | |
990 | rayPart.FormFactor = "Custom" | |
991 | rayPart.BrickColor = BrickColor.new"Royal purple" | |
992 | rayPart.Anchored = true | |
993 | rayPart.CanCollide = false | |
994 | rayPart.Size = Vector3.new(7,7,dis + 400) | |
995 | 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) | |
996 | rayPart.CFrame = rayCFrame | |
997 | head:Destroy() | |
998 | end) | |
999 | wait() | |
1000 | local s = Instance.new("Sound",head) | |
1001 | s.Volume = 1 | |
1002 | s.SoundId = "rbxassetid://332223043" | |
1003 | s:Play() | |
1004 | wait(.04) | |
1005 | Tired.n=Tired.n+2 | |
1006 | end | |
1007 | end | |
1008 | end) | |
1009 | ||
1010 | uinps.InputBegan:connect(function(InputObj) | |
1011 | if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and not Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then | |
1012 | Debounces.isAttacking = true | |
1013 | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p | |
1014 | local head = Instance.new("Part",c) | |
1015 | head.Size = Vector3.new(18,.2,18) | |
1016 | head.CanCollide = false | |
1017 | head.Anchored = true | |
1018 | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) | |
1019 | head.Transparency = 1 head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
1020 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
1021 | mesh.Scale=Vector3.new(.1,.1,.1) | |
1022 | local decal = Instance.new("Decal",head) | |
1023 | decal.Texture = "rbxassetid://441975828" | |
1024 | setLerp(.1) | |
1025 | setJointCFrames({ | |
1026 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1027 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); | |
1028 | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); | |
1029 | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); | |
1030 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); | |
1031 | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); | |
1032 | }) | |
1033 | spawn(function() | |
1034 | local timer = 0 | |
1035 | while rs.RenderStepped:wait() do | |
1036 | if timer >= 1.55/.8 then | |
1037 | break | |
1038 | end | |
1039 | head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10) | |
1040 | timer = timer + 1/30/(Debounces.FPS/60) | |
1041 | end | |
1042 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1043 | local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999) | |
1044 | local hit, pos = workspace:FindPartOnRay(ray,c) | |
1045 | local dis = (head.CFrame.p - pos).magnitude | |
1046 | local rayPart = Instance.new("Part",rayModel) | |
1047 | rayPart.Material = "Neon" | |
1048 | rayPart.FormFactor = "Custom" | |
1049 | rayPart.Name = "Punch" | |
1050 | rayPart.BrickColor = BrickColor.new"Royal purple" | |
1051 | rayPart.Anchored = true | |
1052 | rayPart.CanCollide = false | |
1053 | rayPart.Size = Vector3.new(28,28,dis + 400) | |
1054 | 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) | |
1055 | rayPart.CFrame = rayCFrame | |
1056 | head:Destroy() | |
1057 | end) | |
1058 | wait() | |
1059 | local s = Instance.new("Sound",head) | |
1060 | s.Volume = 1 | |
1061 | s.SoundId = "rbxassetid://332223043" | |
1062 | s.Pitch = .8 | |
1063 | s:Play() | |
1064 | wait(.75) | |
1065 | setLerp(.17) | |
1066 | setJointCFrames({ | |
1067 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); | |
1068 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); | |
1069 | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); | |
1070 | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); | |
1071 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); | |
1072 | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); | |
1073 | }) | |
1074 | Tired.n=Tired.n+15 | |
1075 | wait(.5) | |
1076 | Debounces.isAttacking = false | |
1077 | end | |
1078 | end) | |
1079 | ||
1080 | reflect = function(d,n) | |
1081 | local i, n = -1 * d.unit, n.unit | |
1082 | local dot = n:Dot(i) | |
1083 | return 2*dot*n - i | |
1084 | end | |
1085 | ||
1086 | makeReflectionBeam = function(pos,look,isCrit) | |
1087 | local ray = Ray.new(pos,look) | |
1088 | local hit,hitpos,norm = workspace:FindPartOnRay(ray,c) | |
1089 | local e = Instance.new("Part",rayModel) | |
1090 | e.Anchored = true | |
1091 | e.CanCollide = false | |
1092 | e.BrickColor = BrickColor.new("Bright violet") | |
1093 | e.Material = "Neon" | |
1094 | e.FormFactor = "Custom" | |
1095 | e.Size = Vector3.new(6,6,(pos - hitpos).magnitude) | |
1096 | if isCrit == true then | |
1097 | e.Size = Vector3.new(16,16,(pos - hitpos).magnitude) | |
1098 | e.Name = "Punch" | |
1099 | end | |
1100 | e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos) | |
1101 | local e = Instance.new("Sound",c) | |
1102 | if isCrit == true then | |
1103 | e.Volume = .5 | |
1104 | else | |
1105 | e.Volume = .3 | |
1106 | e.Pitch = 1.5 | |
1107 | end | |
1108 | e.SoundId = "rbxassetid://200632875" | |
1109 | e:Play() | |
1110 | spawn(function() | |
1111 | wait(6) | |
1112 | e:Destroy() | |
1113 | end) | |
1114 | wait(.05) | |
1115 | if hit ~= nil then | |
1116 | newDir = reflect(look.unit,norm,isCrit) | |
1117 | makeReflectionBeam(hitpos,newDir * 999,isCrit) | |
1118 | end | |
1119 | end | |
1120 | ||
1121 | uinps.InputBegan:connect(function(InputObject) | |
1122 | if InputObject.KeyCode == Enum.KeyCode.Q and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then | |
1123 | local isLooping = true | |
1124 | uinps.InputEnded:connect(function(InputObject2) | |
1125 | if InputObject2.KeyCode == Enum.KeyCode.Q then | |
1126 | isLooping = false | |
1127 | end | |
1128 | end) | |
1129 | while not Tired.d do | |
1130 | if isLooping == false then | |
1131 | break | |
1132 | end | |
1133 | Debounces.attackNumber = Debounces.attackNumber + 1 | |
1134 | local aimPos = mouse.Hit.p | |
1135 | local head = Instance.new("Part",c) | |
1136 | head.Size = Vector3.new(12,.2,12) | |
1137 | head.CanCollide = false | |
1138 | head.Anchored = true | |
1139 | head.Transparency=1 | |
1140 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
1141 | mesh.Scale=Vector3.new(.05,.05,.05) | |
1142 | local decal = Instance.new("Decal",head) | |
1143 | decal.Texture = "rbxassetid://441975828" | |
1144 | ||
1145 | if Debounces.attackNumber%2 == 1 then | |
1146 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos) | |
1147 | else | |
1148 | head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos) | |
1149 | end | |
1150 | head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
1151 | spawn(function() | |
1152 | local timer = 0 | |
1153 | while rs.RenderStepped:wait() do | |
1154 | if timer >= 1.55 then | |
1155 | break | |
1156 | end | |
1157 | head.CFrame = head.CFrame * CFrame.new(0,0,-timer/10) | |
1158 | timer = timer + 1/30/(Debounces.FPS/60) | |
1159 | end | |
1160 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1161 | head:Destroy() | |
1162 | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false) | |
1163 | end) | |
1164 | ||
1165 | wait() | |
1166 | local s = Instance.new("Sound",head) | |
1167 | s.Volume = 1 | |
1168 | s.SoundId = "rbxassetid://332223043" | |
1169 | s.Pitch = 1.02 | |
1170 | s:Play() | |
1171 | Tired.n=Tired.n+15 | |
1172 | wait(.2) | |
1173 | end | |
1174 | end | |
1175 | end) | |
1176 | ||
1177 | uinps.InputBegan:connect(function(InputObj) | |
1178 | if InputObj.KeyCode == Enum.KeyCode.E and not Debounces.isAttacking and Debounces.isSprinting and Debounces.isPassive and not Debounces.isTyping and not Tired.d then | |
1179 | Debounces.isAttacking = true | |
1180 | local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p | |
1181 | local head = Instance.new("Part",c) | |
1182 | head.Size = Vector3.new(18,.2,18) | |
1183 | head.CanCollide = false | |
1184 | head.Anchored = true | |
1185 | head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos) | |
1186 | head.Transparency = 1 | |
1187 | local mesh=Instance.new("SpecialMesh",head)mesh.MeshType="FileMesh"mesh.MeshId="rbxassetid://431908407" | |
1188 | mesh.Scale=Vector3.new(.1,.1,.1) | |
1189 | local decal = Instance.new("Decal",head) | |
1190 | decal.Texture = "rbxassetid://441975828" | |
1191 | head.CFrame=head.CFrame*CFrame.Angles(0,math.rad(180),0) | |
1192 | setLerp(.1) | |
1193 | setJointCFrames({ | |
1194 | CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0)); | |
1195 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001)); | |
1196 | CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502)); | |
1197 | CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928)); | |
1198 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001)); | |
1199 | CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0)); | |
1200 | }) | |
1201 | spawn(function() | |
1202 | local timer = 0 | |
1203 | while rs.RenderStepped:wait() do | |
1204 | if timer >= 1.55/.8 then | |
1205 | break | |
1206 | end | |
1207 | head.CFrame = head.CFrame --* CFrame.new(0,0,-timer/10) | |
1208 | timer = timer + 1/30/(Debounces.FPS/60) | |
1209 | end | |
1210 | head.CFrame = CFrame.new(head.CFrame.p,aimPos) | |
1211 | head:Destroy() | |
1212 | makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true) | |
1213 | end) | |
1214 | wait() | |
1215 | local s = Instance.new("Sound",head) | |
1216 | s.Volume = 2 | |
1217 | s.SoundId = "rbxassetid://332223043" | |
1218 | s.Pitch = .8 | |
1219 | s:Play() | |
1220 | wait(.75) | |
1221 | setLerp(.17) | |
1222 | setJointCFrames({ | |
1223 | CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0)); | |
1224 | CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001)); | |
1225 | CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76)); | |
1226 | CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155)); | |
1227 | CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001)); | |
1228 | CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0)); | |
1229 | }) | |
1230 | Tired.n=Tired.n+30 | |
1231 | wait(.5) | |
1232 | Debounces.isAttacking = false | |
1233 | end | |
1234 | end) | |
1235 | ||
1236 | uinps.InputBegan:connect(function(InputObj) | |
1237 | if InputObj.KeyCode == Enum.KeyCode.Slash then | |
1238 | local finishEvent = nil | |
1239 | Debounces.isTyping = true | |
1240 | finishEvent = uinps.InputBegan:connect(function(InputObj) | |
1241 | if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then | |
1242 | Debounces.isTyping = false | |
1243 | finishEvent:disconnect() | |
1244 | end | |
1245 | end) | |
1246 | end | |
1247 | end) | |
1248 | ||
1249 | uinps.InputBegan:connect(function(InputObj) | |
1250 | if InputObj.KeyCode == Enum.KeyCode.LeftShift then | |
1251 | Debounces.isSprinting = true | |
1252 | end | |
1253 | end) | |
1254 | ||
1255 | uinps.InputEnded:connect(function(InputObj) | |
1256 | if InputObj.KeyCode == Enum.KeyCode.LeftShift then | |
1257 | Debounces.isSprinting = false | |
1258 | end | |
1259 | end) | |
1260 | uinps.InputBegan:connect(function(InputObj) | |
1261 | ||
1262 | end) | |
1263 | ||
1264 | rs.RenderStepped:connect(function() | |
1265 | Debounces.FPS = 1/rs.RenderStepped:wait() | |
1266 | local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60) | |
1267 | if Debounces.isPassive == false then | |
1268 | fire.Enabled = false | |
1269 | light.Range = 0 | |
1270 | fight:Pause() | |
1271 | sans:Resume() | |
1272 | efxBlock.Transparency = 1 | |
1273 | else | |
1274 | fire.Enabled = true | |
1275 | light.Range = 10 | |
1276 | fight:Resume() | |
1277 | sans:Pause() | |
1278 | efxBlock.Transparency = 0 | |
1279 | end local tD=3 | |
1280 | for i,v in pairs (rayModel:children()) do | |
1281 | if v.Transparency >= 1 then | |
1282 | v:Destroy() | |
1283 | else | |
1284 | v.CanCollide = true | |
1285 | local parts = v:GetTouchingParts() | |
1286 | v.CanCollide = false | |
1287 | for i = 1,#parts do | |
1288 | if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then | |
1289 | RiseLevel(parts[i].Parent.Humanoid,.5/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60)) | |
1290 | elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then | |
1291 | RiseLevel(parts[i].Parent.Humanoid,3.1/(Debounces.FPS/60))parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60)) | |
1292 | end | |
1293 | end | |
1294 | v.Size = v.Size / Vector3.new(1+(v.Transparency/tD),1+(v.Transparency/tD),1)--- Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0) | |
1295 | v.Transparency = v.Transparency + .05/(Debounces.FPS/60) | |
1296 | end | |
1297 | end | |
1298 | for i = 1,#Joints do | |
1299 | Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp) | |
1300 | end | |
1301 | local sineval = math.sin(tick() * 2) * 3 | |
1302 | fire.Acceleration = Vector3.new(sineval,1,sineval) | |
1303 | light.Brightness = math.sin(math.cos(tick() * 2) * 1.5) | |
1304 | end) |