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