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