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