SHOW:
|
|
- or go back to the newest paste.
1 | function clerp(c1,c2,al) | |
2 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()} | |
3 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()} | |
4 | for i,v in pairs(com1) do | |
5 | com1[i] = v+(com2[i]-v)*al | |
6 | end | |
7 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
8 | end | |
9 | ||
10 | function weld(p0,p1,c0,c1,par) | |
11 | local w = Instance.new("Weld", par) | |
12 | w.Part0 = p0 | |
13 | w.Part1 = p1 | |
14 | w.C0 = c0 or CFrame.new() | |
15 | w.C1 = c1 or CFrame.new() | |
16 | return w | |
17 | end | |
18 | ||
19 | xmathrandom = math.random(-10,10) | |
20 | ymathrandom = math.random(2,10) | |
21 | zmathrandom = math.random(-10,10) | |
22 | ||
23 | ||
24 | player = game:service("Players").LocalPlayer | |
25 | char = player.Character | |
26 | local beat = true | |
27 | local beattime = 0.6 | |
28 | suit = Instance.new("Model", char) | |
29 | suit.Name = "Gaster" | |
30 | local vDebounce = false | |
31 | Torso = char.Torso | |
32 | cf=CFrame.new | |
33 | euler=CFrame.fromEulerAnglesXYZ | |
34 | local SHOT_SPEED = 100 | |
35 | local SHOT_TIME = 1 | |
36 | local NOZZLE_OFFSET = Vector3.new(0, 0, 0) | |
37 | mouse = player:GetMouse() | |
38 | ||
39 | shieldparent1 = nil | |
40 | shieldparent2 = nil | |
41 | shieldparent3 = nil | |
42 | shieldparent4 = nil | |
43 | shieldparent5 = nil | |
44 | shieldparent6 = nil | |
45 | ||
46 | switchvalue = 0 | |
47 | RandomGasterRotaion = 0 | |
48 | RandomPerseverance = 0 | |
49 | ||
50 | ShieldValueToGaster = false | |
51 | ShieldValueToGasterDebounce = false | |
52 | ||
53 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
54 | ||
55 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
56 | ||
57 | ||
58 | RSH, LSH = nil, nil | |
59 | ||
60 | LS = Torso["Left Shoulder"] | |
61 | ||
62 | LH = Torso["Left Hip"] | |
63 | ||
64 | RS = Torso["Right Shoulder"] | |
65 | ||
66 | RH = Torso["Right Hip"] | |
67 | RSH = char.Torso["Right Shoulder"] | |
68 | ||
69 | LSH = char.Torso["Left Shoulder"] | |
70 | ||
71 | ||
72 | ||
73 | function startup() | |
74 | ||
75 | RW.Part0 = char.Torso | |
76 | ||
77 | RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
78 | ||
79 | RW.C1 = CFrame.new(0, 0.5, 0) | |
80 | ||
81 | RW.Part1 = char["Right Arm"] | |
82 | ||
83 | RW.Parent = char.Torso | |
84 | ||
85 | ||
86 | ||
87 | LW.Part0 = char.Torso | |
88 | ||
89 | LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
90 | ||
91 | LW.C1 = CFrame.new(0, 0.5, 0) | |
92 | ||
93 | LW.Part1 = char["Left Arm"] | |
94 | ||
95 | LW.Parent = char.Torso | |
96 | ||
97 | for i = 1,5 do wait() | |
98 | RW.C1= clerp(RW.C1*CFrame.new(-.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-8),0),RW.C0,0.1) | |
99 | LW.C1= clerp(LW.C1*CFrame.new(.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(8),0),LW.C0,0.1) | |
100 | ||
101 | ||
102 | end | |
103 | coroutine.resume(coroutine.create(function() | |
104 | wait(1) | |
105 | for i = 1,20 do wait() | |
106 | RW.C1= clerp(RW.C1*CFrame.new(-.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(-math.rad(-.1),-math.rad(-.1),-math.rad(3)),RW.C0,0.1) | |
107 | LW.C1= clerp(LW.C1*CFrame.new(.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(math.rad(.1),math.rad(.1),-math.rad(-3)),LW.C0,0.1) | |
108 | ||
109 | ||
110 | end | |
111 | ||
112 | for i = 1,20 do wait() | |
113 | RW.C1= clerp(RW.C1*CFrame.new(-.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(-math.rad(-4),-math.rad(-4),-math.rad(-4)),RW.C0,0.1) | |
114 | LW.C1= clerp(LW.C1*CFrame.new(.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(math.rad(4),math.rad(-4),-math.rad(4)),LW.C0,0.1) | |
115 | ||
116 | ||
117 | end | |
118 | ||
119 | ||
120 | end)) | |
121 | end | |
122 | ||
123 | ||
124 | ||
125 | local Sounds = { | |
126 | Gaster = Instance.new("Sound"), | |
127 | Gun = Instance.new("Sound"), | |
128 | Switch = Instance.new("Sound"), | |
129 | Explode = Instance.new("Sound"), | |
130 | GasterTheme = Instance.new("Sound") | |
131 | } | |
132 | ||
133 | Sounds["Gaster"].SoundId = "rbxassetid://345052019" | |
134 | Sounds["Gaster"].Volume = 1 | |
135 | Sounds["Gun"].SoundId = "http://www.roblox.com/asset?id=406913243" | |
136 | Sounds["Gun"].Volume = 1 | |
137 | Sounds["Switch"].SoundId = "http://www.roblox.com/asset?id=388205678" | |
138 | Sounds["Switch"].Volume = 1 | |
139 | Sounds["Explode"].SoundId = "rbxasset://sounds/collide.wav" | |
140 | Sounds["Explode"].Volume = .1 | |
141 | Sounds["GasterTheme"].SoundId = "rbxassetid://323177357" | |
142 | Sounds["GasterTheme"].Volume = 99 | |
143 | ||
144 | function PlaySound(soundname, pitch, where, looped) | |
145 | Sounds[soundname].Parent = where | |
146 | Sounds[soundname].Pitch = pitch | |
147 | Sounds[soundname].Looped= looped | |
148 | Sounds[soundname]:Play() | |
149 | local oldsound = Sounds[soundname] | |
150 | coroutine.resume(coroutine.create(function() | |
151 | ||
152 | wait(4) | |
153 | for i = 1,1 do | |
154 | if oldsound.Looped == true then return end | |
155 | oldsound:Destroy() | |
156 | end | |
157 | end)) | |
158 | Sounds[soundname] = Sounds[soundname]:clone() | |
159 | end | |
160 | ||
161 | firstuse = true | |
162 | InUse = false | |
163 | ||
164 | JusticeAttack = false | |
165 | JusticeAttackDebounce = false | |
166 | ||
167 | IntegrityAttack = false | |
168 | IntegrityAttackDebounce = false | |
169 | ||
170 | PerseveranceAttack = false | |
171 | PerseveranceAttackDebounce = false | |
172 | ||
173 | KindnessAttack = false | |
174 | KindnessAttackDebounce = false | |
175 | ||
176 | DeterminationAttack = false | |
177 | DetermiantionAttackDebounce = false | |
178 | ||
179 | PatienceAttack = false | |
180 | PatienceAttackDebounce = false | |
181 | ||
182 | BraveryAttack = false | |
183 | BraveryAttackDebounce = false | |
184 | ||
185 | ||
186 | hand1DeterminationhealthDown = false | |
187 | hand2PerseverancehealthDown = false | |
188 | hand3PatiencehealthDown = false | |
189 | hand4IntegrityhealthDown = false | |
190 | hand5BraveryhealthDown = false | |
191 | hand6JusticehealthDown = false | |
192 | hand7KindnesshealthDown = false | |
193 | ||
194 | hand1Determination = Instance.new("Model", char) | |
195 | hand1Determination.Name ="Red" | |
196 | hand2Perseverance = Instance.new("Model", char) | |
197 | hand2Perseverance.Name ="Purple" | |
198 | hand3Patience = Instance.new("Model", char) | |
199 | hand3Patience.Name = "Cyan" | |
200 | hand4Integrity = Instance.new("Model", char) | |
201 | hand4Integrity.Name = "Blue" | |
202 | hand5Bravery = Instance.new("Model", char) | |
203 | hand5Bravery.Name = "Orange" | |
204 | hand6Justice = Instance.new("Model", char) | |
205 | hand6Justice.Name = "Yellow" | |
206 | hand7Kindness = Instance.new("Model", char) | |
207 | hand7Kindness.Name = "Green" | |
208 | ||
209 | function teleportPlayer(pos) | |
210 | ||
211 | if player == nil or player.Character == nil then return end | |
212 | ||
213 | char["Left Leg"].CFrame = CFrame.new(Vector3.new(pos.x, pos.y , pos.z)) | |
214 | coroutine.resume(coroutine.create(function() | |
215 | ||
216 | TeleportPart = Instance.new("Part",workspace) | |
217 | ||
218 | TeleportPart.FormFactor="Custom" | |
219 | ||
220 | TeleportPart.Size=Vector3.new(0.8,0.8,0.8) | |
221 | ||
222 | TeleportPart.TopSurface = 0 | |
223 | ||
224 | TeleportPart.BottomSurface = 0 | |
225 | ||
226 | local colorc = {"Black"} | |
227 | ||
228 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
229 | ||
230 | TeleportPart.BrickColor = Fire | |
231 | ||
232 | TeleportPart.CanCollide=false | |
233 | ||
234 | TeleportPart.Anchored=true | |
235 | ||
236 | TeleportPart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
237 | ||
238 | TeleportPartmesh = Instance.new("BlockMesh",TeleportPart) | |
239 | ||
240 | ||
241 | game.Debris:AddItem(TeleportPart,1.5) | |
242 | ||
243 | for i = 1,5 do wait() | |
244 | Torso.Transparency = Torso.Transparency - 0.2 | |
245 | char["Left Arm"].Transparency = char["Left Arm"].Transparency - 0.2 | |
246 | char["Left Leg"].Transparency = char["Left Leg"].Transparency - 0.2 | |
247 | char["Right Arm"].Transparency = char["Right Arm"].Transparency - 0.2 | |
248 | char["Right Leg"].Transparency = char["Right Leg"].Transparency - 0.2 | |
249 | char.Head.Transparency = char.Head.Transparency - 0.2 | |
250 | Crack1.Transparency = Crack1.Transparency - 0.2 | |
251 | Crack2.Transparency = Crack2.Transparency - 0.2 | |
252 | mouth.Transparency = mouth.Transparency - 0.2 | |
253 | Eye1.Transparency = Eye1.Transparency - 0.2 | |
254 | Eye2.Transparency = Eye2.Transparency - 0.2 | |
255 | MEye1.Transparency = MEye1.Transparency - 0.2 | |
256 | MEye2.Transparency = MEye2.Transparency - 0.2 | |
257 | end | |
258 | ||
259 | ||
260 | Torso.Transparency = 0 | |
261 | char["Left Arm"].Transparency = 0 | |
262 | char["Left Leg"].Transparency = 0 | |
263 | char["Right Arm"].Transparency = 0 | |
264 | char["Right Leg"].Transparency = 0 | |
265 | char.Head.Transparency = 0 | |
266 | Crack1.Transparency = 0 | |
267 | Crack2.Transparency = 0 | |
268 | mouth.Transparency = 0 | |
269 | Eye1.Transparency = 0 | |
270 | Eye2.Transparency = 0 | |
271 | MEye1.Transparency = 0 | |
272 | MEye2.Transparency = 0 | |
273 | ||
274 | end)) | |
275 | ||
276 | for i = 1,7 do | |
277 | local parti = Instance.new("Part",Torso) | |
278 | parti.Anchored = true | |
279 | parti.TopSurface = 0 | |
280 | parti.BottomSurface = 0 | |
281 | parti.CanCollide = false | |
282 | parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1)) | |
283 | parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
284 | parti.Transparency = 0 | |
285 | parti.BrickColor = BrickColor.new("Black") | |
286 | game.Debris:AddItem(parti,1.5) | |
287 | ||
288 | ||
289 | ||
290 | ||
291 | ||
292 | ||
293 | ||
294 | local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
295 | game:service("RunService").Stepped:connect(function() | |
296 | parti.Transparency = parti.Transparency + 0.05 | |
297 | parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad | |
298 | end) | |
299 | ||
300 | ||
301 | ||
302 | end | |
303 | for i = 1,10 do wait() | |
304 | ||
305 | TeleportPartmesh.Scale=Vector3.new(2*i,2*i,2*i) | |
306 | TeleportPart.CFrame = clerp(TeleportPart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),TeleportPart.CFrame,0.1) | |
307 | TeleportPart.Transparency = TeleportPart.Transparency + 0.1 | |
308 | end | |
309 | end | |
310 | ||
311 | for _,v in pairs(char.Head:GetChildren()) do if v.ClassName=="Decal" then v:remove() end end | |
312 | for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end | |
313 | for _,v in pairs(char:GetChildren()) do if v.ClassName=="Shirt" or v.ClassName=="Pants" or v.ClassName=="T-Shirt" or v.ClassName=="ShirtGraphic" or v.ClassName=="CharacterMesh" then v:remove() end end | |
314 | shirt=Instance.new("Shirt", char) | |
315 | pants=Instance.new("Pants", char) | |
316 | - | char.Head.BrickColor = BrickColor.new("Institutional white") |
316 | + | char.Head.BrickColor = BrickColor.new("Really black") |
317 | ||
318 | ||
319 | - | shirt.ShirtTemplate="rbxassetid://535199088" |
319 | + | shirt.ShirtTemplate="rbxassetid://5571021" |
320 | - | pants.PantsTemplate="rbxassetid://532840011" |
320 | + | pants.PantsTemplate="rbxassetid://5571021" |
321 | ||
322 | --------Gaster's head | |
323 | ||
324 | ||
325 | ||
326 | mouth = Instance.new("Part",suit) | |
327 | mouth.Size = Vector3.new(0.2,.7,0.4) | |
328 | mouth.Transparency = 0 | |
329 | mouth.BrickColor = BrickColor.new("Really black") | |
330 | mouth.CanCollide = false | |
331 | mouthMesh = Instance.new("SpecialMesh",mouth) | |
332 | mouthMesh.MeshType = "Sphere" | |
333 | mouthMesh.Scale = Vector3.new(2.5,0.1,0.8) | |
334 | ||
335 | weld(char.Head,mouth,CFrame.new(0,0,0),CFrame.new(0, .3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
336 | ||
337 | ||
338 | Crack2 = Instance.new("Part",suit) | |
339 | Crack2.Size = Vector3.new(0.2,.7,0.4) | |
340 | Crack2.Transparency = 0 | |
341 | Crack2.BrickColor = BrickColor.new("Really black") | |
342 | Crack2.CanCollide = false | |
343 | Crack2Mesh = Instance.new("SpecialMesh",Crack2) | |
344 | Crack2Mesh.MeshType = "Sphere" | |
345 | Crack2Mesh.Scale = Vector3.new(0.3,0.7,0.8) | |
346 | ||
347 | weld(char.Head,Crack2,CFrame.new(0,0,0),CFrame.new(.2, .15, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, -.2),char) | |
348 | ||
349 | ||
350 | Crack1 = Instance.new("Part",suit) | |
351 | Crack1.Size = Vector3.new(0.2,.7,0.4) | |
352 | Crack1.Transparency = 0 | |
353 | - | Crack1.BrickColor = BrickColor.new("Really black") |
353 | + | Crack1.BrickColor = BrickColor.new("Crimson") |
354 | Crack1.CanCollide = false | |
355 | Crack1Mesh = Instance.new("SpecialMesh",Crack1) | |
356 | Crack1Mesh.MeshType = "Sphere" | |
357 | Crack1Mesh.Scale = Vector3.new(0.3,0.7,0.65) | |
358 | ||
359 | weld(char.Head,Crack1,CFrame.new(0,0,0),CFrame.new(-.2, -.3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, .2),char) | |
360 | ||
361 | ||
362 | Eye1 = Instance.new("Part",suit) | |
363 | Eye1.Size = Vector3.new(0.4,0.4,0.4) | |
364 | Eye1.Transparency = 0 | |
365 | - | Eye1.BrickColor = BrickColor.new("Really black") |
365 | + | Eye1.BrickColor = BrickColor.new("Crimson") |
366 | Eye1.CanCollide = false | |
367 | Eye1Mesh = Instance.new("SpecialMesh",Eye1) | |
368 | Eye1Mesh.MeshType = "Sphere" | |
369 | Eye1Mesh.Scale = Vector3.new(1,1,0.6) | |
370 | ||
371 | weld(char.Head,Eye1,CFrame.new(0,0,0),CFrame.new(-.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
372 | ||
373 | ||
374 | Eye2 = Instance.new("Part",suit) | |
375 | Eye2.Size = Vector3.new(0.4,0.4,0.4) | |
376 | Eye2.Transparency = 0 | |
377 | Eye2.CanCollide = false | |
378 | Eye2.BrickColor = BrickColor.new("Really black") | |
379 | Eye2Mesh = Instance.new("SpecialMesh",Eye2) | |
380 | Eye2Mesh.MeshType = "Sphere" | |
381 | Eye2Mesh.Scale = Vector3.new(1,1,0.6) | |
382 | ||
383 | weld(char.Head,Eye2,CFrame.new(0,0,0),CFrame.new(.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
384 | ||
385 | MEye1 = Instance.new("Part",suit) | |
386 | MEye1.Size = Vector3.new(0.3,0.3,0.3) | |
387 | MEye1.Transparency = 0 | |
388 | MEye1.Material= "Neon" | |
389 | MEye1.BrickColor = BrickColor.new("Institutional white") | |
390 | MEye1.CanCollide = false | |
391 | MEye1Mesh = Instance.new("SpecialMesh",MEye1) | |
392 | MEye1Mesh.MeshType = "Sphere" | |
393 | MEye1Mesh.Scale = Vector3.new(.2,.5,.2) | |
394 | ||
395 | weld(Eye1,MEye1,CFrame.new(0,0,0),CFrame.new(-.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
396 | ||
397 | MEye2 = Instance.new("Part",suit) | |
398 | MEye2.Size = Vector3.new(0.3,0.3,0.3) | |
399 | MEye2.Transparency = 0 | |
400 | MEye2.Material= "Neon" | |
401 | MEye2.BrickColor = BrickColor.new("Institutional white") | |
402 | MEye2.CanCollide = false | |
403 | MEye2Mesh = Instance.new("SpecialMesh",MEye2) | |
404 | MEye2Mesh.MeshType = "Sphere" | |
405 | MEye2Mesh.Scale = Vector3.new(.2,.5,.2) | |
406 | ||
407 | weld(Eye2,MEye2,CFrame.new(0,0,0),CFrame.new(.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
408 | ||
409 | ||
410 | --------Gaster's hand | |
411 | ||
412 | startup() | |
413 | ||
414 | hand1DeterminationPosition = Instance.new("Part",suit) | |
415 | hand1DeterminationPosition.Size = Vector3.new(1,1,1) | |
416 | hand1DeterminationPosition.Transparency = 1 | |
417 | hand1DeterminationPosition.CanCollide = false | |
418 | ||
419 | weld(Torso,hand1DeterminationPosition,CFrame.new(0,0,0),CFrame.new(-2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
420 | ||
421 | hand2PerseverancePosition = Instance.new("Part",suit) | |
422 | hand2PerseverancePosition.Size = Vector3.new(1,1,1) | |
423 | hand2PerseverancePosition.Transparency = 1 | |
424 | hand2PerseverancePosition.CanCollide = false | |
425 | ||
426 | weld(Torso,hand2PerseverancePosition,CFrame.new(0,0,0),CFrame.new(2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
427 | ||
428 | hand3PatiencePosition = Instance.new("Part",suit) | |
429 | hand3PatiencePosition.Size = Vector3.new(1,1,1) | |
430 | hand3PatiencePosition.Transparency = 1 | |
431 | hand3PatiencePosition.CanCollide = false | |
432 | ||
433 | weld(Torso,hand3PatiencePosition,CFrame.new(0,0,0),CFrame.new(-4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
434 | ||
435 | hand4IntegrityPosition = Instance.new("Part",suit) | |
436 | hand4IntegrityPosition.Size = Vector3.new(1,1,1) | |
437 | hand4IntegrityPosition.Transparency = 1 | |
438 | hand4IntegrityPosition.CanCollide = false | |
439 | ||
440 | weld(Torso,hand4IntegrityPosition,CFrame.new(0,0,0),CFrame.new(4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
441 | ||
442 | hand5BraveryPosition = Instance.new("Part",suit) | |
443 | hand5BraveryPosition.Size = Vector3.new(1,1,1) | |
444 | hand5BraveryPosition.Transparency = 1 | |
445 | hand5BraveryPosition.CanCollide = false | |
446 | ||
447 | weld(Torso,hand5BraveryPosition,CFrame.new(0,0,0),CFrame.new(-6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
448 | ||
449 | hand6JusticePosition = Instance.new("Part",suit) | |
450 | hand6JusticePosition.Size = Vector3.new(1,1,1) | |
451 | hand6JusticePosition.Transparency = 1 | |
452 | hand6JusticePosition.CanCollide = false | |
453 | ||
454 | weld(Torso,hand6JusticePosition,CFrame.new(0,0,0),CFrame.new(6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
455 | ||
456 | hand7KindnessPosition = Instance.new("Part",suit) | |
457 | hand7KindnessPosition.Size = Vector3.new(1,1,1) | |
458 | hand7KindnessPosition.Transparency = 1 | |
459 | hand7KindnessPosition.CanCollide = false | |
460 | ||
461 | weld(Torso,hand7KindnessPosition,CFrame.new(0,0,0),CFrame.new(0, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
462 | ||
463 | ||
464 | AttackPosition = Instance.new("Part",suit) | |
465 | AttackPosition.Size = Vector3.new(1,1,1) | |
466 | AttackPosition.Transparency = 1 | |
467 | AttackPosition.CanCollide = false | |
468 | ||
469 | weld(Torso,AttackPosition,CFrame.new(0,0,0),CFrame.new(0, 0, 4)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
470 | ||
471 | ||
472 | ||
473 | --------Gaster's Health of hands and hands | |
474 | ||
475 | hand1Determinationhealth = Instance.new("Humanoid",hand1Determination) | |
476 | hand1Determinationhealth.DisplayDistanceType = "None" | |
477 | hand1Determinationhealth.Health = 100 | |
478 | hand1Determinationhealth.MaxHealth = 100 | |
479 | ||
480 | Determination = Instance.new("Part",hand1Determination) | |
481 | Determination.Size = Vector3.new(1,1.5,0.2) | |
482 | Determination.Name = "Head" | |
483 | Determination.Position = hand1DeterminationPosition.Position | |
484 | DeterminationMesh = Instance.new("SpecialMesh",Determination) | |
485 | DeterminationMesh.MeshId = "rbxassetid://430045961" | |
486 | DeterminationMesh.Offset = Vector3.new(0.09,0.1,0) | |
487 | Determination.BrickColor = BrickColor.new("Institutional white") | |
488 | ||
489 | DeterminationOrb = Instance.new("Part",Determination) | |
490 | DeterminationOrb.Size = Vector3.new(0.3,0.3,0.2) | |
491 | DeterminationOrb.BrickColor = BrickColor.new("Really red") | |
492 | weld(Determination,DeterminationOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
493 | ||
494 | ||
495 | weld(hand1DeterminationPosition,Determination,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
496 | ||
497 | local p = Instance.new("Part",workspace) | |
498 | ||
499 | p.FormFactor="Custom" | |
500 | ||
501 | p.Size=Vector3.new(0.8,0.8,0.8) | |
502 | ||
503 | p.TopSurface = 0 | |
504 | ||
505 | p.BottomSurface = 0 | |
506 | ||
507 | local colorc = {"Really red"} | |
508 | ||
509 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
510 | ||
511 | p.BrickColor = Fire | |
512 | ||
513 | p.CanCollide=false | |
514 | ||
515 | p.Anchored=true | |
516 | ||
517 | p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
518 | ||
519 | ||
520 | for i = 1,8 do wait() | |
521 | ||
522 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
523 | p.CFrame =(Determination.CFrame*CFrame.new(0,0,0)) | |
524 | end | |
525 | p:remove() | |
526 | ||
527 | ||
528 | ||
529 | --2-- | |
530 | ||
531 | ||
532 | hand2Perseverancehealth = Instance.new("Humanoid",hand2Perseverance) | |
533 | hand2Perseverancehealth.DisplayDistanceType = "None" | |
534 | hand2Perseverancehealth.Health = 100 | |
535 | hand2Perseverancehealth.MaxHealth = 100 | |
536 | ||
537 | Perseverance = Instance.new("Part",hand2Perseverance) | |
538 | Perseverance.Size = Vector3.new(1,1.5,0.2) | |
539 | Perseverance.Name = "Head" | |
540 | Perseverance.Position = hand2PerseverancePosition.Position | |
541 | PerseveranceMesh = Instance.new("SpecialMesh",Perseverance) | |
542 | PerseveranceMesh.MeshId = "rbxassetid://430045961" | |
543 | PerseveranceMesh.Offset = Vector3.new(0.09,0.1,0) | |
544 | Perseverance.BrickColor = BrickColor.new("Institutional white") | |
545 | ||
546 | PerseveranceOrb = Instance.new("Part",Perseverance) | |
547 | PerseveranceOrb.Size = Vector3.new(0.3,0.3,0.2) | |
548 | PerseveranceOrb.BrickColor = BrickColor.new("Magenta") | |
549 | weld(Perseverance,PerseveranceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
550 | ||
551 | ||
552 | weld(hand2PerseverancePosition,Perseverance,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
553 | ||
554 | local p = Instance.new("Part",workspace) | |
555 | ||
556 | p.FormFactor="Custom" | |
557 | ||
558 | p.Size=Vector3.new(0.8,0.8,0.8) | |
559 | ||
560 | p.TopSurface = 0 | |
561 | ||
562 | p.BottomSurface = 0 | |
563 | ||
564 | local colorc = {"Magenta"} | |
565 | ||
566 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
567 | ||
568 | p.BrickColor = Fire | |
569 | ||
570 | p.CanCollide=false | |
571 | ||
572 | p.Anchored=true | |
573 | ||
574 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
575 | ||
576 | ||
577 | for i = 1,8 do wait() | |
578 | ||
579 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
580 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0)) | |
581 | end | |
582 | p:remove() | |
583 | ||
584 | --3-- | |
585 | ||
586 | hand3Patiencehealth = Instance.new("Humanoid",hand3Patience) | |
587 | hand3Patiencehealth.DisplayDistanceType = "None" | |
588 | hand3Patiencehealth.Health = 100 | |
589 | hand3Patiencehealth.MaxHealth = 100 | |
590 | ||
591 | Patience = Instance.new("Part",hand3Patience) | |
592 | Patience.Size = Vector3.new(1,1.5,0.2) | |
593 | Patience.Name = "Head" | |
594 | PatienceMesh = Instance.new("SpecialMesh",Patience) | |
595 | PatienceMesh.MeshId = "rbxassetid://430045961" | |
596 | PatienceMesh.Offset = Vector3.new(0.09,0.1,0) | |
597 | Patience.BrickColor = BrickColor.new("Institutional white") | |
598 | ||
599 | ||
600 | PatienceOrb = Instance.new("Part",Patience) | |
601 | PatienceOrb.Size = Vector3.new(0.3,0.3,0.2) | |
602 | PatienceOrb.BrickColor = BrickColor.new("Cyan") | |
603 | weld(Patience,PatienceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
604 | ||
605 | ||
606 | weld(hand3PatiencePosition,Patience,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
607 | ||
608 | local p = Instance.new("Part",workspace) | |
609 | ||
610 | p.FormFactor="Custom" | |
611 | ||
612 | p.Size=Vector3.new(0.8,0.8,0.8) | |
613 | ||
614 | p.TopSurface = 0 | |
615 | ||
616 | p.BottomSurface = 0 | |
617 | ||
618 | local colorc = {"Cyan"} | |
619 | ||
620 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
621 | ||
622 | p.BrickColor = Fire | |
623 | ||
624 | p.CanCollide=false | |
625 | ||
626 | p.Anchored=true | |
627 | ||
628 | p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
629 | ||
630 | ||
631 | for i = 1,8 do wait() | |
632 | ||
633 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
634 | p.CFrame =(Patience.CFrame*CFrame.new(0,0,0)) | |
635 | end | |
636 | p:remove() | |
637 | ||
638 | --4-- | |
639 | ||
640 | hand4Integrityhealth = Instance.new("Humanoid",hand4Integrity) | |
641 | hand4Integrityhealth.DisplayDistanceType = "None" | |
642 | hand4Integrityhealth.Health = 100 | |
643 | hand4Integrityhealth.MaxHealth = 100 | |
644 | ||
645 | Integrity = Instance.new("Part",hand4Integrity) | |
646 | Integrity.Size = Vector3.new(1,1.5,0.2) | |
647 | Integrity.Name = "Head" | |
648 | Integrity.Position = hand1DeterminationPosition.Position | |
649 | IntegrityMesh = Instance.new("SpecialMesh",Integrity) | |
650 | IntegrityMesh.MeshId = "rbxassetid://430045961" | |
651 | IntegrityMesh.Offset = Vector3.new(0.09,0.1,0) | |
652 | Integrity.BrickColor = BrickColor.new("Institutional white") | |
653 | ||
654 | ||
655 | IntegrityOrb = Instance.new("Part",Integrity) | |
656 | IntegrityOrb.Size = Vector3.new(0.3,0.3,0.2) | |
657 | IntegrityOrb.BrickColor = BrickColor.new("Deep blue") | |
658 | weld(Integrity,IntegrityOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
659 | ||
660 | ||
661 | weld(hand4IntegrityPosition,Integrity,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
662 | ||
663 | ||
664 | local p = Instance.new("Part",workspace) | |
665 | ||
666 | p.FormFactor="Custom" | |
667 | ||
668 | p.Size=Vector3.new(0.8,0.8,0.8) | |
669 | ||
670 | p.TopSurface = 0 | |
671 | ||
672 | p.BottomSurface = 0 | |
673 | ||
674 | local colorc = {"Deep blue"} | |
675 | ||
676 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
677 | ||
678 | p.BrickColor = Fire | |
679 | ||
680 | p.CanCollide=false | |
681 | ||
682 | p.Anchored=true | |
683 | ||
684 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
685 | ||
686 | ||
687 | for i = 1,8 do wait() | |
688 | ||
689 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
690 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0)) | |
691 | end | |
692 | p:remove() | |
693 | ||
694 | --5-- | |
695 | ||
696 | ||
697 | hand5Braveryhealth = Instance.new("Humanoid",hand5Bravery) | |
698 | hand5Braveryhealth.DisplayDistanceType = "None" | |
699 | hand5Braveryhealth.Health = 100 | |
700 | hand5Braveryhealth.MaxHealth = 100 | |
701 | ||
702 | ||
703 | Bravery = Instance.new("Part",hand5Bravery) | |
704 | Bravery .Size = Vector3.new(1,1.5,0.2) | |
705 | Bravery .Name = "Head" | |
706 | Bravery.Position = hand1DeterminationPosition.Position | |
707 | BraveryMesh = Instance.new("SpecialMesh",Bravery) | |
708 | BraveryMesh.MeshId = "rbxassetid://430045961" | |
709 | BraveryMesh.Offset = Vector3.new(0.09,0.1,0) | |
710 | Bravery.BrickColor = BrickColor.new("Institutional white") | |
711 | ||
712 | BraveryOrb = Instance.new("Part",Bravery) | |
713 | BraveryOrb.Size = Vector3.new(0.3,0.3,0.2) | |
714 | BraveryOrb.BrickColor = BrickColor.new("Deep orange") | |
715 | weld(Bravery,BraveryOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
716 | ||
717 | ||
718 | weld(hand5BraveryPosition,Bravery,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
719 | ||
720 | ||
721 | ||
722 | local p = Instance.new("Part",workspace) | |
723 | ||
724 | p.FormFactor="Custom" | |
725 | ||
726 | p.Size=Vector3.new(0.8,0.8,0.8) | |
727 | ||
728 | p.TopSurface = 0 | |
729 | ||
730 | p.BottomSurface = 0 | |
731 | ||
732 | local colorc = {"Deep orange"} | |
733 | ||
734 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
735 | ||
736 | p.BrickColor = Fire | |
737 | ||
738 | p.CanCollide=false | |
739 | ||
740 | p.Anchored=true | |
741 | ||
742 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
743 | ||
744 | ||
745 | for i = 1,8 do wait() | |
746 | ||
747 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
748 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0)) | |
749 | end | |
750 | p:remove() | |
751 | --6-- | |
752 | ||
753 | hand6Justicehealth = Instance.new("Humanoid",hand6Justice) | |
754 | hand6Justicehealth.DisplayDistanceType = "None" | |
755 | hand6Justicehealth.Health = 100 | |
756 | hand6Justicehealth.MaxHealth = 100 | |
757 | ||
758 | Justice = Instance.new("Part",hand6Justice) | |
759 | Justice .Size = Vector3.new(1,1.5,0.2) | |
760 | Justice.Name = "Head" | |
761 | Justice.Position = hand1DeterminationPosition.Position | |
762 | JusticeMesh = Instance.new("SpecialMesh",Justice) | |
763 | JusticeMesh.MeshId = "rbxassetid://430045961" | |
764 | JusticeMesh.Offset = Vector3.new(0.09,0.1,0) | |
765 | Justice.BrickColor = BrickColor.new("Institutional white") | |
766 | ||
767 | JusticeOrb = Instance.new("Part",Justice) | |
768 | JusticeOrb.Size = Vector3.new(0.3,0.3,0.2) | |
769 | JusticeOrb.BrickColor = BrickColor.new("New Yeller") | |
770 | weld(Justice,JusticeOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
771 | ||
772 | ||
773 | weld(hand6JusticePosition,Justice,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
774 | ||
775 | ||
776 | ||
777 | local p = Instance.new("Part",workspace) | |
778 | ||
779 | p.FormFactor="Custom" | |
780 | ||
781 | p.Size=Vector3.new(0.8,0.8,0.8) | |
782 | ||
783 | p.TopSurface = 0 | |
784 | ||
785 | p.BottomSurface = 0 | |
786 | ||
787 | local colorc = {"New Yeller"} | |
788 | ||
789 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
790 | ||
791 | p.BrickColor = Fire | |
792 | ||
793 | p.CanCollide=false | |
794 | ||
795 | p.Anchored=true | |
796 | ||
797 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
798 | ||
799 | ||
800 | for i = 1,8 do wait() | |
801 | ||
802 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
803 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0)) | |
804 | end | |
805 | p:remove() | |
806 | --7-- | |
807 | ||
808 | hand7Kindnesshealth = Instance.new("Humanoid",hand7Kindness) | |
809 | hand7Kindnesshealth.DisplayDistanceType = "None" | |
810 | hand7Kindnesshealth.Health = 100 | |
811 | hand7Kindnesshealth.MaxHealth = 100 | |
812 | ||
813 | Kindness = Instance.new("Part",hand7Kindness) | |
814 | Kindness .Size = Vector3.new(1,1.5,0.2) | |
815 | Kindness.Name = "Head" | |
816 | Kindness.Position = hand1DeterminationPosition.Position | |
817 | KindnessMesh = Instance.new("SpecialMesh",Kindness) | |
818 | KindnessMesh.MeshId = "rbxassetid://430045961" | |
819 | KindnessMesh.Offset = Vector3.new(0.09,0.1,0) | |
820 | Kindness.BrickColor = BrickColor.new("Institutional white") | |
821 | ||
822 | KindnessOrb = Instance.new("Part",Kindness) | |
823 | KindnessOrb.Size = Vector3.new(0.3,0.3,0.2) | |
824 | KindnessOrb.BrickColor = BrickColor.new("Lime green") | |
825 | weld(Kindness,KindnessOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
826 | ||
827 | ||
828 | weld(hand7KindnessPosition,Kindness,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char) | |
829 | local p = Instance.new("Part",workspace) | |
830 | ||
831 | p.FormFactor="Custom" | |
832 | ||
833 | p.Size=Vector3.new(0.8,0.8,0.8) | |
834 | ||
835 | p.TopSurface = 0 | |
836 | ||
837 | p.BottomSurface = 0 | |
838 | ||
839 | local colorc = {"Lime green"} | |
840 | ||
841 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
842 | ||
843 | p.BrickColor = Fire | |
844 | ||
845 | p.CanCollide=false | |
846 | ||
847 | p.Anchored=true | |
848 | ||
849 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
850 | ||
851 | ||
852 | for i = 1,8 do wait() | |
853 | ||
854 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
855 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0)) | |
856 | end | |
857 | p:remove() | |
858 | ||
859 | PlaySound("GasterTheme", 1, char.Torso, true) | |
860 | ||
861 | ---functions and attacks | |
862 | ||
863 | function BravAttack() | |
864 | if hand5BraveryhealthDown == true then return end | |
865 | if switchvalue == 7 then | |
866 | ||
867 | BraveryAttack = true | |
868 | ||
869 | WeldBravery = Instance.new("Weld",Bravery) | |
870 | WeldBravery.Part0 = AttackPosition | |
871 | WeldBravery.Part1 = Bravery | |
872 | WeldBravery.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
873 | ||
874 | local p = Instance.new("Part",workspace) | |
875 | ||
876 | p.FormFactor="Custom" | |
877 | ||
878 | p.Size=Vector3.new(0.8,0.8,0.8) | |
879 | ||
880 | p.TopSurface = 0 | |
881 | ||
882 | p.BottomSurface = 0 | |
883 | ||
884 | local colorc = {"Deep orange"} | |
885 | ||
886 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
887 | ||
888 | p.BrickColor = Fire | |
889 | ||
890 | p.CanCollide=false | |
891 | ||
892 | p.Anchored=true | |
893 | ||
894 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
895 | ||
896 | coroutine.resume(coroutine.create(function() | |
897 | for i = 1,8 do wait() | |
898 | ||
899 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
900 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0)) | |
901 | end | |
902 | p:remove() | |
903 | end)) | |
904 | ||
905 | ||
906 | ||
907 | end | |
908 | ||
909 | end | |
910 | ||
911 | ||
912 | ||
913 | function BravRest() | |
914 | if hand5BraveryhealthDown == true then return end | |
915 | if switchvalue == 6 then | |
916 | ||
917 | if BraveryAttack == true then | |
918 | WeldBravery:remove() | |
919 | ||
920 | ||
921 | local p = Instance.new("Part",workspace) | |
922 | ||
923 | p.FormFactor="Custom" | |
924 | ||
925 | p.Size=Vector3.new(0.8,0.8,0.8) | |
926 | ||
927 | p.TopSurface = 0 | |
928 | ||
929 | p.BottomSurface = 0 | |
930 | ||
931 | local colorc = {"Deep orange"} | |
932 | ||
933 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
934 | ||
935 | p.BrickColor = Fire | |
936 | ||
937 | p.CanCollide=false | |
938 | ||
939 | p.Anchored=true | |
940 | ||
941 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
942 | coroutine.resume(coroutine.create(function() | |
943 | for i = 1,8 do wait() | |
944 | ||
945 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
946 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0)) | |
947 | end | |
948 | p:remove() | |
949 | end)) | |
950 | ||
951 | BraveryAttack = false | |
952 | ||
953 | ||
954 | end | |
955 | end | |
956 | end | |
957 | ||
958 | function PatAttack() | |
959 | if hand3PatiencehealthDown == true then return end | |
960 | if switchvalue == 6 then | |
961 | ||
962 | PatienceAttack = true | |
963 | ||
964 | WeldPatience = Instance.new("Weld",Patience) | |
965 | WeldPatience.Part0 = AttackPosition | |
966 | WeldPatience.Part1 = Patience | |
967 | WeldPatience.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
968 | ||
969 | local p = Instance.new("Part",workspace) | |
970 | ||
971 | p.FormFactor="Custom" | |
972 | ||
973 | p.Size=Vector3.new(0.8,0.8,0.8) | |
974 | ||
975 | p.TopSurface = 0 | |
976 | ||
977 | p.BottomSurface = 0 | |
978 | ||
979 | local colorc = {"Cyan"} | |
980 | ||
981 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
982 | ||
983 | p.BrickColor = Fire | |
984 | ||
985 | p.CanCollide=false | |
986 | ||
987 | p.Anchored=true | |
988 | ||
989 | p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
990 | ||
991 | coroutine.resume(coroutine.create(function() | |
992 | for i = 1,8 do wait() | |
993 | ||
994 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
995 | p.CFrame =(Patience.CFrame*CFrame.new(0,0,0)) | |
996 | end | |
997 | p:remove() | |
998 | end)) | |
999 | ||
1000 | ||
1001 | ||
1002 | end | |
1003 | ||
1004 | end | |
1005 | ||
1006 | ||
1007 | ||
1008 | function PatRest() | |
1009 | if hand3PatiencehealthDown == true then return end | |
1010 | if switchvalue == 7 or switchvalue == 5 then | |
1011 | ||
1012 | if PatienceAttack == true then | |
1013 | WeldPatience:remove() | |
1014 | ||
1015 | ||
1016 | local p = Instance.new("Part",workspace) | |
1017 | ||
1018 | p.FormFactor="Custom" | |
1019 | ||
1020 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1021 | ||
1022 | p.TopSurface = 0 | |
1023 | ||
1024 | p.BottomSurface = 0 | |
1025 | ||
1026 | local colorc = {"Cyan"} | |
1027 | ||
1028 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1029 | ||
1030 | p.BrickColor = Fire | |
1031 | ||
1032 | p.CanCollide=false | |
1033 | ||
1034 | p.Anchored=true | |
1035 | ||
1036 | p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1037 | coroutine.resume(coroutine.create(function() | |
1038 | for i = 1,8 do wait() | |
1039 | ||
1040 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1041 | p.CFrame =(Patience.CFrame*CFrame.new(0,0,0)) | |
1042 | end | |
1043 | p:remove() | |
1044 | end)) | |
1045 | ||
1046 | PatienceAttack = false | |
1047 | ||
1048 | ||
1049 | end | |
1050 | end | |
1051 | end | |
1052 | ||
1053 | ||
1054 | function DetAttack() | |
1055 | if hand1DeterminationhealthDown == true then return end | |
1056 | if switchvalue == 5 then | |
1057 | ||
1058 | DeterminationAttack = true | |
1059 | ||
1060 | WeldDet = Instance.new("Weld",Determination) | |
1061 | WeldDet.Part0 = AttackPosition | |
1062 | WeldDet.Part1 = Determination | |
1063 | WeldDet.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1064 | ||
1065 | local p = Instance.new("Part",workspace) | |
1066 | ||
1067 | p.FormFactor="Custom" | |
1068 | ||
1069 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1070 | ||
1071 | p.TopSurface = 0 | |
1072 | ||
1073 | p.BottomSurface = 0 | |
1074 | ||
1075 | local colorc = {"Really red"} | |
1076 | ||
1077 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1078 | ||
1079 | p.BrickColor = Fire | |
1080 | ||
1081 | p.CanCollide=false | |
1082 | ||
1083 | p.Anchored=true | |
1084 | ||
1085 | p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1086 | ||
1087 | coroutine.resume(coroutine.create(function() | |
1088 | for i = 1,8 do wait() | |
1089 | ||
1090 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1091 | p.CFrame =(Determination.CFrame*CFrame.new(0,0,0)) | |
1092 | end | |
1093 | p:remove() | |
1094 | end)) | |
1095 | ||
1096 | ||
1097 | ||
1098 | end | |
1099 | ||
1100 | end | |
1101 | ||
1102 | ||
1103 | ||
1104 | function DetRest() | |
1105 | if hand1DeterminationhealthDown == true then return end | |
1106 | if switchvalue == 6 or switchvalue == 4 then | |
1107 | ||
1108 | if DeterminationAttack == true then | |
1109 | WeldDet:remove() | |
1110 | ||
1111 | ||
1112 | local p = Instance.new("Part",workspace) | |
1113 | ||
1114 | p.FormFactor="Custom" | |
1115 | ||
1116 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1117 | ||
1118 | p.TopSurface = 0 | |
1119 | ||
1120 | p.BottomSurface = 0 | |
1121 | ||
1122 | local colorc = {"Really red"} | |
1123 | ||
1124 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1125 | ||
1126 | p.BrickColor = Fire | |
1127 | ||
1128 | p.CanCollide=false | |
1129 | ||
1130 | p.Anchored=true | |
1131 | ||
1132 | p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1133 | coroutine.resume(coroutine.create(function() | |
1134 | for i = 1,8 do wait() | |
1135 | ||
1136 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1137 | p.CFrame =(Determination.CFrame*CFrame.new(0,0,0)) | |
1138 | end | |
1139 | p:remove() | |
1140 | end)) | |
1141 | ||
1142 | DeterminationAttack = false | |
1143 | ||
1144 | ||
1145 | end | |
1146 | end | |
1147 | end | |
1148 | ||
1149 | ||
1150 | ||
1151 | function KinAttack() | |
1152 | if hand7KindnesshealthDown == true then return end | |
1153 | if switchvalue == 4 then | |
1154 | ||
1155 | KindAttack = true | |
1156 | ||
1157 | WeldKind = Instance.new("Weld",Kindness) | |
1158 | WeldKind.Part0 = AttackPosition | |
1159 | WeldKind.Part1 = Kindness | |
1160 | WeldKind.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1161 | ||
1162 | local p = Instance.new("Part",workspace) | |
1163 | ||
1164 | p.FormFactor="Custom" | |
1165 | ||
1166 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1167 | ||
1168 | p.TopSurface = 0 | |
1169 | ||
1170 | p.BottomSurface = 0 | |
1171 | ||
1172 | local colorc = {"Lime green"} | |
1173 | ||
1174 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1175 | ||
1176 | p.BrickColor = Fire | |
1177 | ||
1178 | p.CanCollide=false | |
1179 | ||
1180 | p.Anchored=true | |
1181 | ||
1182 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1183 | ||
1184 | coroutine.resume(coroutine.create(function() | |
1185 | for i = 1,8 do wait() | |
1186 | ||
1187 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1188 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0)) | |
1189 | end | |
1190 | p:remove() | |
1191 | end)) | |
1192 | ||
1193 | ||
1194 | ||
1195 | end | |
1196 | ||
1197 | end | |
1198 | ||
1199 | ||
1200 | ||
1201 | function KinRest() | |
1202 | if hand7KindnesshealthDown == true then return end | |
1203 | if switchvalue == 5 or switchvalue == 3 then | |
1204 | ||
1205 | if KindAttack == true then | |
1206 | WeldKind:remove() | |
1207 | ||
1208 | ||
1209 | local p = Instance.new("Part",workspace) | |
1210 | ||
1211 | p.FormFactor="Custom" | |
1212 | ||
1213 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1214 | ||
1215 | p.TopSurface = 0 | |
1216 | ||
1217 | p.BottomSurface = 0 | |
1218 | ||
1219 | local colorc = {"Lime green"} | |
1220 | ||
1221 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1222 | ||
1223 | p.BrickColor = Fire | |
1224 | ||
1225 | p.CanCollide=false | |
1226 | ||
1227 | p.Anchored=true | |
1228 | ||
1229 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1230 | coroutine.resume(coroutine.create(function() | |
1231 | for i = 1,8 do wait() | |
1232 | ||
1233 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1234 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0)) | |
1235 | end | |
1236 | p:remove() | |
1237 | end)) | |
1238 | ||
1239 | KindAttack = false | |
1240 | ||
1241 | ||
1242 | end | |
1243 | end | |
1244 | end | |
1245 | ||
1246 | ||
1247 | ||
1248 | ||
1249 | function PerAttack() | |
1250 | if hand2PerseverancehealthDown == true then return end | |
1251 | if switchvalue == 3 then | |
1252 | ||
1253 | PerseveranceAttack = true | |
1254 | ||
1255 | WeldPer = Instance.new("Weld",Perseverance) | |
1256 | WeldPer.Part0 = AttackPosition | |
1257 | WeldPer.Part1 = Perseverance | |
1258 | WeldPer.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1259 | ||
1260 | local p = Instance.new("Part",workspace) | |
1261 | ||
1262 | p.FormFactor="Custom" | |
1263 | ||
1264 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1265 | ||
1266 | p.TopSurface = 0 | |
1267 | ||
1268 | p.BottomSurface = 0 | |
1269 | ||
1270 | local colorc = {"Magenta"} | |
1271 | ||
1272 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1273 | ||
1274 | p.BrickColor = Fire | |
1275 | ||
1276 | p.CanCollide=false | |
1277 | ||
1278 | p.Anchored=true | |
1279 | ||
1280 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1281 | ||
1282 | coroutine.resume(coroutine.create(function() | |
1283 | for i = 1,8 do wait() | |
1284 | ||
1285 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1286 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0)) | |
1287 | end | |
1288 | p:remove() | |
1289 | end)) | |
1290 | ||
1291 | ||
1292 | ||
1293 | end | |
1294 | ||
1295 | end | |
1296 | ||
1297 | ||
1298 | ||
1299 | function PerRest() | |
1300 | if hand2PerseverancehealthDown == true then return end | |
1301 | if switchvalue == 4 or switchvalue == 2 then | |
1302 | ||
1303 | if PerseveranceAttack == true then | |
1304 | WeldPer:remove() | |
1305 | ||
1306 | ||
1307 | local p = Instance.new("Part",workspace) | |
1308 | ||
1309 | p.FormFactor="Custom" | |
1310 | ||
1311 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1312 | ||
1313 | p.TopSurface = 0 | |
1314 | ||
1315 | p.BottomSurface = 0 | |
1316 | ||
1317 | local colorc = {"Magenta"} | |
1318 | ||
1319 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1320 | ||
1321 | p.BrickColor = Fire | |
1322 | ||
1323 | p.CanCollide=false | |
1324 | ||
1325 | p.Anchored=true | |
1326 | ||
1327 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1328 | coroutine.resume(coroutine.create(function() | |
1329 | for i = 1,8 do wait() | |
1330 | ||
1331 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1332 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0)) | |
1333 | end | |
1334 | p:remove() | |
1335 | end)) | |
1336 | ||
1337 | PerseveranceAttack = false | |
1338 | ||
1339 | ||
1340 | end | |
1341 | end | |
1342 | end | |
1343 | ||
1344 | ||
1345 | function IntAttack() | |
1346 | if hand4IntegrityhealthDown == true then return end | |
1347 | if switchvalue == 2 then | |
1348 | ||
1349 | IntegrityAttack = true | |
1350 | ||
1351 | WeldInt = Instance.new("Weld",Integrity) | |
1352 | WeldInt.Part0 = AttackPosition | |
1353 | WeldInt.Part1 = Integrity | |
1354 | WeldInt.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1355 | ||
1356 | local p = Instance.new("Part",workspace) | |
1357 | ||
1358 | p.FormFactor="Custom" | |
1359 | ||
1360 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1361 | ||
1362 | p.TopSurface = 0 | |
1363 | ||
1364 | p.BottomSurface = 0 | |
1365 | ||
1366 | local colorc = {"Dark blue"} | |
1367 | ||
1368 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1369 | ||
1370 | p.BrickColor = Fire | |
1371 | ||
1372 | p.CanCollide=false | |
1373 | ||
1374 | p.Anchored=true | |
1375 | ||
1376 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1377 | ||
1378 | coroutine.resume(coroutine.create(function() | |
1379 | for i = 1,8 do wait() | |
1380 | ||
1381 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1382 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0)) | |
1383 | end | |
1384 | p:remove() | |
1385 | end)) | |
1386 | ||
1387 | ||
1388 | ||
1389 | end | |
1390 | ||
1391 | end | |
1392 | ||
1393 | ||
1394 | ||
1395 | function IntRest() | |
1396 | if hand4IntegrityhealthDown == true then return end | |
1397 | if switchvalue == 3 or switchvalue == 1 then | |
1398 | ||
1399 | if IntegrityAttack == true then | |
1400 | WeldInt:remove() | |
1401 | ||
1402 | ||
1403 | local p = Instance.new("Part",workspace) | |
1404 | ||
1405 | p.FormFactor="Custom" | |
1406 | ||
1407 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1408 | ||
1409 | p.TopSurface = 0 | |
1410 | ||
1411 | p.BottomSurface = 0 | |
1412 | ||
1413 | local colorc = {"Dark blue"} | |
1414 | ||
1415 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1416 | ||
1417 | p.BrickColor = Fire | |
1418 | ||
1419 | p.CanCollide=false | |
1420 | ||
1421 | p.Anchored=true | |
1422 | ||
1423 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1424 | coroutine.resume(coroutine.create(function() | |
1425 | for i = 1,8 do wait() | |
1426 | ||
1427 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1428 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0)) | |
1429 | end | |
1430 | p:remove() | |
1431 | end)) | |
1432 | ||
1433 | IntegrityAttack = false | |
1434 | ||
1435 | ||
1436 | end | |
1437 | end | |
1438 | end | |
1439 | ||
1440 | ||
1441 | ||
1442 | ||
1443 | function JusAttack() | |
1444 | ||
1445 | if switchvalue == 1 then | |
1446 | if hand6JusticehealthDown == true then return end | |
1447 | JusticeAttack = true | |
1448 | ||
1449 | Weldjus = Instance.new("Weld",Justice) | |
1450 | Weldjus.Part0 = AttackPosition | |
1451 | Weldjus.Part1 = Justice | |
1452 | Weldjus.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1453 | ||
1454 | local p = Instance.new("Part",workspace) | |
1455 | ||
1456 | p.FormFactor="Custom" | |
1457 | ||
1458 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1459 | ||
1460 | p.TopSurface = 0 | |
1461 | ||
1462 | p.BottomSurface = 0 | |
1463 | ||
1464 | local colorc = {"New Yeller"} | |
1465 | ||
1466 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1467 | ||
1468 | p.BrickColor = Fire | |
1469 | ||
1470 | p.CanCollide=false | |
1471 | ||
1472 | p.Anchored=true | |
1473 | ||
1474 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1475 | ||
1476 | coroutine.resume(coroutine.create(function() | |
1477 | for i = 1,8 do wait() | |
1478 | ||
1479 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1480 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0)) | |
1481 | end | |
1482 | p:remove() | |
1483 | end)) | |
1484 | ||
1485 | ||
1486 | ||
1487 | end | |
1488 | ||
1489 | end | |
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | function JusRest() | |
1495 | if hand6JusticehealthDown == true then return end | |
1496 | if switchvalue == 2 then | |
1497 | ||
1498 | if JusticeAttack == true then | |
1499 | Weldjus:remove() | |
1500 | ||
1501 | ||
1502 | local p = Instance.new("Part",workspace) | |
1503 | ||
1504 | p.FormFactor="Custom" | |
1505 | ||
1506 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1507 | ||
1508 | p.TopSurface = 0 | |
1509 | ||
1510 | p.BottomSurface = 0 | |
1511 | ||
1512 | local colorc = {"New Yeller"} | |
1513 | ||
1514 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1515 | ||
1516 | p.BrickColor = Fire | |
1517 | ||
1518 | p.CanCollide=false | |
1519 | ||
1520 | p.Anchored=true | |
1521 | ||
1522 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
1523 | coroutine.resume(coroutine.create(function() | |
1524 | for i = 1,8 do wait() | |
1525 | ||
1526 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1527 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0)) | |
1528 | end | |
1529 | p:remove() | |
1530 | end)) | |
1531 | ||
1532 | JusticeAttack = false | |
1533 | ||
1534 | ||
1535 | end | |
1536 | end | |
1537 | end | |
1538 | ||
1539 | ||
1540 | ||
1541 | ||
1542 | ||
1543 | ||
1544 | ||
1545 | ||
1546 | ||
1547 | ||
1548 | ||
1549 | ||
1550 | --Key Presses | |
1551 | ||
1552 | mouse.Button1Up:connect(function() | |
1553 | ||
1554 | InUse = false | |
1555 | ||
1556 | ||
1557 | end) | |
1558 | ||
1559 | mouse.Button1Down:connect(function() | |
1560 | ||
1561 | InUse = true | |
1562 | ||
1563 | ||
1564 | end) | |
1565 | ||
1566 | mouse.KeyDown:connect(function(key) | |
1567 | ||
1568 | if key =="r" then | |
1569 | if hand7KindnesshealthDown == true then return end | |
1570 | if ShieldValueToGasterDebounce == true then return end | |
1571 | ||
1572 | if ShieldValueToGaster == false then | |
1573 | ShieldValueToGaster = true | |
1574 | if ShieldValueToGasterDebounce == false then | |
1575 | ShieldValueToGasterDebounce = true | |
1576 | ||
1577 | ||
1578 | local ShieldOfGaster6= Instance.new("Part",hand7Kindness) | |
1579 | ShieldOfGaster6.TopSurface = "Smooth" | |
1580 | ShieldOfGaster6.BottomSurface = "Smooth" | |
1581 | ShieldOfGaster6.Size = Vector3.new(18, 3, 18) | |
1582 | ShieldOfGaster6.CanCollide = true | |
1583 | ShieldOfGaster6.Anchored =true | |
1584 | ShieldOfGaster6.BrickColor = BrickColor.new("Lime green") | |
1585 | ShieldOfGaster6 .FormFactor = "Custom" | |
1586 | ShieldOfGaster6.Transparency = 0.7 | |
1587 | ShieldOfGaster6.CFrame= Torso.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1588 | shieldparent6 = ShieldOfGaster6 | |
1589 | ||
1590 | local ShieldOfGaster5= Instance.new("Part",hand7Kindness) | |
1591 | ShieldOfGaster5.TopSurface = "Smooth" | |
1592 | ShieldOfGaster5.BottomSurface = "Smooth" | |
1593 | ShieldOfGaster5.Size = Vector3.new(18, 3, 18) | |
1594 | ShieldOfGaster5.CanCollide = true | |
1595 | ShieldOfGaster5.Anchored =true | |
1596 | ShieldOfGaster5.BrickColor = BrickColor.new("Lime green") | |
1597 | ShieldOfGaster5 .FormFactor = "Custom" | |
1598 | ShieldOfGaster5.Transparency = 0.7 | |
1599 | ShieldOfGaster5.CFrame= Torso.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1600 | shieldparent5 = ShieldOfGaster5 | |
1601 | ||
1602 | local ShieldOfGaster4= Instance.new("Part",hand7Kindness) | |
1603 | ShieldOfGaster4.TopSurface = "Smooth" | |
1604 | ShieldOfGaster4.BottomSurface = "Smooth" | |
1605 | ShieldOfGaster4.Size = Vector3.new(3, 18, 18) | |
1606 | ShieldOfGaster4.CanCollide = true | |
1607 | ShieldOfGaster4.Anchored =true | |
1608 | ShieldOfGaster4.BrickColor = BrickColor.new("Lime green") | |
1609 | ShieldOfGaster4 .FormFactor = "Custom" | |
1610 | ShieldOfGaster4.Transparency = 0.7 | |
1611 | ShieldOfGaster4.CFrame= Torso.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1612 | shieldparent4 = ShieldOfGaster4 | |
1613 | ||
1614 | local ShieldOfGaster3= Instance.new("Part",hand7Kindness) | |
1615 | ShieldOfGaster3.TopSurface = "Smooth" | |
1616 | ShieldOfGaster3.BottomSurface = "Smooth" | |
1617 | ShieldOfGaster3.Size = Vector3.new(3, 18, 18) | |
1618 | ShieldOfGaster3.CanCollide = true | |
1619 | ShieldOfGaster3.Anchored =true | |
1620 | ShieldOfGaster3.BrickColor = BrickColor.new("Lime green") | |
1621 | ShieldOfGaster3 .FormFactor = "Custom" | |
1622 | ShieldOfGaster3.Transparency = 0.7 | |
1623 | ShieldOfGaster3.CFrame= Torso.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1624 | shieldparent3 = ShieldOfGaster3 | |
1625 | ||
1626 | local ShieldOfGaster2= Instance.new("Part",hand7Kindness) | |
1627 | ShieldOfGaster2.TopSurface = "Smooth" | |
1628 | ShieldOfGaster2.BottomSurface = "Smooth" | |
1629 | ShieldOfGaster2.Size = Vector3.new(18, 18, 3) | |
1630 | ShieldOfGaster2.CanCollide = true | |
1631 | ShieldOfGaster2.Anchored =true | |
1632 | ShieldOfGaster2.BrickColor = BrickColor.new("Lime green") | |
1633 | ShieldOfGaster2 .FormFactor = "Custom" | |
1634 | ShieldOfGaster2.Transparency = 0.7 | |
1635 | ShieldOfGaster2.CFrame= Torso.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1636 | shieldparent2 = ShieldOfGaster2 | |
1637 | ||
1638 | local ShieldOfGaster1= Instance.new("Part",hand7Kindness) | |
1639 | ShieldOfGaster1.TopSurface = "Smooth" | |
1640 | ShieldOfGaster1.BottomSurface = "Smooth" | |
1641 | ShieldOfGaster1.Size = Vector3.new(18, 18, 3) | |
1642 | ShieldOfGaster1.CanCollide = true | |
1643 | ShieldOfGaster1.Anchored =true | |
1644 | ShieldOfGaster1.BrickColor = BrickColor.new("Lime green") | |
1645 | ShieldOfGaster1 .FormFactor = "Custom" | |
1646 | ShieldOfGaster1.Transparency = 0.7 | |
1647 | ShieldOfGaster1.CFrame= Torso.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
1648 | shieldparent1 = ShieldOfGaster1 | |
1649 | ||
1650 | for i = 1,7 do | |
1651 | local parti = Instance.new("Part",Torso) | |
1652 | parti.Anchored = true | |
1653 | parti.TopSurface = 0 | |
1654 | parti.BottomSurface = 0 | |
1655 | parti.CanCollide = false | |
1656 | parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1)) | |
1657 | parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1658 | parti.Transparency = 0 | |
1659 | parti.BrickColor = BrickColor.new("Lime green") | |
1660 | game.Debris:AddItem(parti,1.5) | |
1661 | ||
1662 | ||
1663 | ||
1664 | ||
1665 | ||
1666 | ||
1667 | ||
1668 | local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
1669 | game:service("RunService").Stepped:connect(function() | |
1670 | parti.Transparency = parti.Transparency + 0.05 | |
1671 | parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad | |
1672 | end) | |
1673 | end | |
1674 | ||
1675 | ShieldValueToGasterDebounce = false | |
1676 | ShieldValueToGaster = true | |
1677 | end | |
1678 | ||
1679 | ||
1680 | elseif ShieldValueToGaster == true then | |
1681 | ShieldValueToGaster = false | |
1682 | if ShieldValueToGasterDebounce == false then | |
1683 | ShieldValueToGasterDebounce = true | |
1684 | ||
1685 | ||
1686 | for i = 1,3 do wait() | |
1687 | shieldparent6.Transparency =shieldparent6.Transparency + 0.1 | |
1688 | shieldparent5.Transparency =shieldparent5.Transparency + 0.1 | |
1689 | shieldparent4.Transparency =shieldparent4.Transparency + 0.1 | |
1690 | shieldparent3.Transparency =shieldparent3.Transparency + 0.1 | |
1691 | shieldparent2.Transparency =shieldparent2.Transparency + 0.1 | |
1692 | shieldparent1.Transparency =shieldparent1.Transparency + 0.1 | |
1693 | end | |
1694 | shieldparent6:remove() | |
1695 | shieldparent5:remove() | |
1696 | shieldparent4:remove() | |
1697 | shieldparent3:remove() | |
1698 | shieldparent2:remove() | |
1699 | shieldparent1:remove() | |
1700 | ||
1701 | shieldparent1=nil | |
1702 | shieldparent2=nil | |
1703 | shieldparent3=nil | |
1704 | shieldparent4=nil | |
1705 | shieldparent5=nil | |
1706 | shieldparent6=nil | |
1707 | ||
1708 | ||
1709 | ShieldValueToGasterDebounce = false | |
1710 | ShieldValueToGaster = false | |
1711 | end | |
1712 | end | |
1713 | ||
1714 | ||
1715 | end | |
1716 | ||
1717 | ||
1718 | if key =="x" then | |
1719 | if (not vDebounce) then | |
1720 | vDebounce = true | |
1721 | for i = 1,5 do wait() | |
1722 | Torso.Transparency = Torso.Transparency + 0.2 | |
1723 | char["Left Arm"].Transparency = char["Left Arm"].Transparency + 0.2 | |
1724 | char["Left Leg"].Transparency = char["Left Leg"].Transparency + 0.2 | |
1725 | char["Right Arm"].Transparency = char["Right Arm"].Transparency + 0.2 | |
1726 | char["Right Leg"].Transparency = char["Right Leg"].Transparency + 0.2 | |
1727 | char.Head.Transparency = char.Head.Transparency + 0.2 | |
1728 | Crack1.Transparency = Crack1.Transparency + 0.2 | |
1729 | Crack2.Transparency = Crack2.Transparency + 0.2 | |
1730 | mouth.Transparency = mouth.Transparency + 0.2 | |
1731 | Eye1.Transparency = Eye1.Transparency + 0.2 | |
1732 | Eye2.Transparency = Eye2.Transparency + 0.2 | |
1733 | MEye1.Transparency = MEye1.Transparency + 0.2 | |
1734 | MEye2.Transparency = MEye2.Transparency + 0.2 | |
1735 | end | |
1736 | ||
1737 | teleportPlayer(mouse.hit.p) | |
1738 | char.Humanoid.PlatformStand = false | |
1739 | vDebounce = false | |
1740 | end | |
1741 | end | |
1742 | ||
1743 | ||
1744 | ||
1745 | if key == "q" then | |
1746 | ||
1747 | if switchvalue == 1 then return end | |
1748 | ||
1749 | switchvalue = switchvalue - 1 | |
1750 | ||
1751 | print (switchvalue) | |
1752 | ||
1753 | JusAttack() | |
1754 | JusRest() | |
1755 | IntAttack() | |
1756 | IntRest() | |
1757 | PerAttack() | |
1758 | PerRest() | |
1759 | KinAttack() | |
1760 | KinRest() | |
1761 | DetAttack() | |
1762 | DetRest() | |
1763 | PatAttack() | |
1764 | PatRest() | |
1765 | BravAttack() | |
1766 | BravRest() | |
1767 | end | |
1768 | ||
1769 | if key == "e" then | |
1770 | ||
1771 | if switchvalue == 7 then return end | |
1772 | ||
1773 | switchvalue = switchvalue + 1 | |
1774 | ||
1775 | print (switchvalue) | |
1776 | ||
1777 | JusAttack() | |
1778 | JusRest() | |
1779 | IntAttack() | |
1780 | IntRest() | |
1781 | PerAttack() | |
1782 | PerRest() | |
1783 | KinAttack() | |
1784 | KinRest() | |
1785 | DetAttack() | |
1786 | DetRest() | |
1787 | PatAttack() | |
1788 | PatRest() | |
1789 | BravAttack() | |
1790 | BravRest() | |
1791 | end | |
1792 | ||
1793 | ||
1794 | ||
1795 | end) | |
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | ---runservices | |
1806 | ||
1807 | ||
1808 | ||
1809 | ||
1810 | ||
1811 | ||
1812 | ||
1813 | ||
1814 | game:service("RunService").Stepped:connect(function() wait(.5) | |
1815 | ||
1816 | ||
1817 | if hand1DeterminationhealthDown == true and hand2PerseverancehealthDown == true and hand3PatiencehealthDown == true and hand4IntegrityhealthDown == true and hand5BraveryhealthDown == true and hand6JusticehealthDown == true and hand7KindnesshealthDown == true then | |
1818 | ||
1819 | char.Humanoid.Health = 0 | |
1820 | ||
1821 | ||
1822 | end | |
1823 | ||
1824 | ||
1825 | if InUse == false then return end | |
1826 | ||
1827 | if JusticeAttack == true then | |
1828 | ||
1829 | if InUse == false then return end | |
1830 | if InUse == true then | |
1831 | if JusticeAttackDebounce == true then return end | |
1832 | if JusticeAttackDebounce == false then | |
1833 | ||
1834 | ||
1835 | JusticeAttackDebounce = true | |
1836 | ||
1837 | wait(.2) | |
1838 | ||
1839 | ||
1840 | local PewJustice = Instance.new("Part",suit) | |
1841 | PewJustice.Size = Vector3.new(2,1,4) | |
1842 | PewJustice.BrickColor = BrickColor.new("New Yeller") | |
1843 | PewJustice.Position = Justice.Position | |
1844 | PewJustice.CanCollide = false | |
1845 | ||
1846 | for i = 1,7 do | |
1847 | local parti = Instance.new("Part",Torso) | |
1848 | parti.Anchored = true | |
1849 | parti.TopSurface = 0 | |
1850 | parti.BottomSurface = 0 | |
1851 | parti.CanCollide = false | |
1852 | parti.Size = Vector3.new(math.random(.5,.5),math.random(.5,.5),math.random(.5,.5)) | |
1853 | parti.CFrame = Justice.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)) | |
1854 | parti.Transparency = 0 | |
1855 | parti.BrickColor = BrickColor.new("New Yeller") | |
1856 | game.Debris:AddItem(parti,1.5) | |
1857 | ||
1858 | ||
1859 | ||
1860 | ||
1861 | ||
1862 | ||
1863 | ||
1864 | local pad = Vector3.new(math.random(-2,2)/100,math.random(-2,2)/100,math.random(-2,2)/100) | |
1865 | game:service("RunService").Stepped:connect(function() | |
1866 | parti.Transparency = parti.Transparency + 0.05 | |
1867 | parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad | |
1868 | end) | |
1869 | ||
1870 | ||
1871 | ||
1872 | end | |
1873 | ||
1874 | coroutine.resume(coroutine.create(function() | |
1875 | for i = 1,8 do wait() | |
1876 | ||
1877 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
1878 | p.CFrame =(Justice.CFrame*CFrame.new(0,0,0)) | |
1879 | end | |
1880 | p:remove() | |
1881 | end)) | |
1882 | ||
1883 | local handleCFrame = PewJustice.CFrame | |
1884 | local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET) | |
1885 | local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p) | |
1886 | local laserShotClone = PewJustice:Clone() | |
1887 | PewJustice:remove() | |
1888 | laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewJustice.Size.Z / 2)) | |
1889 | local bodyVelocity = Instance.new('BodyVelocity') | |
1890 | bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED | |
1891 | bodyVelocity.Parent = laserShotClone | |
1892 | bodyVelocity.Name = "Magic" | |
1893 | bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000) | |
1894 | ||
1895 | ||
1896 | laserShotClone.Parent = suit | |
1897 | ||
1898 | ||
1899 | function touch(hit) | |
1900 | ||
1901 | ||
1902 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
1903 | ||
1904 | if hit.Parent.Name == char.Name then return end | |
1905 | if hit.Parent.Name == hand1Determination.Name then return end | |
1906 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
1907 | if hit.Parent.Name == hand3Patience.Name then return end | |
1908 | if hit.Parent.Name == hand4Integrity.Name then return end | |
1909 | if hit.Parent.Name == hand5Bravery.Name then return end | |
1910 | if hit.Parent.Name == hand6Justice.Name then return end | |
1911 | if hit.Parent.Name == hand7Kindness.Name then return end | |
1912 | ||
1913 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-3 | |
1914 | ||
1915 | local HitSounds = { | |
1916 | Hurt = Instance.new("Sound") | |
1917 | ||
1918 | } | |
1919 | ||
1920 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
1921 | HitSounds["Hurt"].Volume = 1 | |
1922 | ||
1923 | function PlayHitSound(soundname, pitch) | |
1924 | HitSounds[soundname].Parent = hit.Parent.Torso | |
1925 | HitSounds[soundname].Pitch = pitch | |
1926 | HitSounds[soundname]:Play() | |
1927 | local oldsound = HitSounds[soundname] | |
1928 | coroutine.resume(coroutine.create(function() | |
1929 | wait(4) | |
1930 | oldsound:Destroy() | |
1931 | end)) | |
1932 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
1933 | end | |
1934 | ||
1935 | PlayHitSound("Hurt", 1) | |
1936 | ||
1937 | coroutine.resume(coroutine.create(function() | |
1938 | laserShotClone.Magic:remove() | |
1939 | ||
1940 | wait(3) | |
1941 | laserShotClone:remove() | |
1942 | end)) | |
1943 | ||
1944 | end end laserShotClone.Touched:connect(touch) | |
1945 | ||
1946 | game.Debris:AddItem(laserShotClone,10) | |
1947 | ||
1948 | ||
1949 | JusticeAttackDebounce = false | |
1950 | end | |
1951 | end | |
1952 | end | |
1953 | ||
1954 | ||
1955 | ----2nd Attack | |
1956 | ||
1957 | ||
1958 | ||
1959 | ||
1960 | ||
1961 | ||
1962 | ||
1963 | ||
1964 | if IntegrityAttack == true then | |
1965 | ||
1966 | if InUse == false then return end | |
1967 | if InUse == true then | |
1968 | if IntegrityAttackDebounce == true then return end | |
1969 | if IntegrityAttackDebounce == false then | |
1970 | ||
1971 | ||
1972 | IntegrityAttackDebounce = true | |
1973 | ||
1974 | wait(.5) | |
1975 | ||
1976 | for i = 1,2 do wait(1) | |
1977 | local PewIntegrity = Instance.new("Part",suit) | |
1978 | PewIntegrity.Size = Vector3.new(5,1,5) | |
1979 | PewIntegrity.BrickColor = BrickColor.new("Dark blue") | |
1980 | PewIntegrity.Position = Integrity.Position | |
1981 | PewIntegrity.CanCollide = false | |
1982 | PewIntegrity.Transparency = 0.4 | |
1983 | ||
1984 | local p = Instance.new("Part",workspace) | |
1985 | ||
1986 | p.FormFactor="Custom" | |
1987 | ||
1988 | p.Size=Vector3.new(0.8,0.8,0.8) | |
1989 | ||
1990 | p.TopSurface = 0 | |
1991 | ||
1992 | p.BottomSurface = 0 | |
1993 | ||
1994 | local colorc = {"Dark blue"} | |
1995 | ||
1996 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
1997 | ||
1998 | p.BrickColor = Fire | |
1999 | ||
2000 | p.CanCollide=false | |
2001 | ||
2002 | p.Anchored=true | |
2003 | ||
2004 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
2005 | coroutine.resume(coroutine.create(function() | |
2006 | for i = 1,8 do wait() | |
2007 | ||
2008 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
2009 | p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0)) | |
2010 | end | |
2011 | p:remove() | |
2012 | end)) | |
2013 | ||
2014 | local handleCFrame = PewIntegrity.CFrame | |
2015 | local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET) | |
2016 | local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p) | |
2017 | local laserShotClone = PewIntegrity:Clone() | |
2018 | PewIntegrity:remove() | |
2019 | laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewIntegrity.Size.Z / 2)) | |
2020 | local bodyVelocity = Instance.new('BodyVelocity') | |
2021 | bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED | |
2022 | negativevelocity = bodyVelocity.velocity*-1 | |
2023 | bodyVelocity.Parent = laserShotClone | |
2024 | bodyVelocity.Name = "Magic" | |
2025 | bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000) | |
2026 | ||
2027 | ||
2028 | laserShotClone.Parent = suit | |
2029 | ||
2030 | ||
2031 | function touch(hit) | |
2032 | ||
2033 | ||
2034 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2035 | ||
2036 | if hit.Parent.Name == char.Name then return end | |
2037 | if hit.Parent.Name == hand1Determination.Name then return end | |
2038 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
2039 | if hit.Parent.Name == hand3Patience.Name then return end | |
2040 | if hit.Parent.Name == hand4Integrity.Name then return end | |
2041 | if hit.Parent.Name == hand5Bravery.Name then return end | |
2042 | if hit.Parent.Name == hand6Justice.Name then return end | |
2043 | if hit.Parent.Name == hand7Kindness.Name then return end | |
2044 | ||
2045 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7 | |
2046 | ||
2047 | local HitSounds = { | |
2048 | Hurt = Instance.new("Sound") | |
2049 | ||
2050 | } | |
2051 | ||
2052 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2053 | HitSounds["Hurt"].Volume = 1 | |
2054 | ||
2055 | function PlayHitSound(soundname, pitch) | |
2056 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2057 | HitSounds[soundname].Pitch = pitch | |
2058 | HitSounds[soundname]:Play() | |
2059 | local oldsound = HitSounds[soundname] | |
2060 | coroutine.resume(coroutine.create(function() | |
2061 | wait(4) | |
2062 | oldsound:Destroy() | |
2063 | end)) | |
2064 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2065 | end | |
2066 | ||
2067 | PlayHitSound("Hurt", 1) | |
2068 | ||
2069 | ||
2070 | ||
2071 | end end laserShotClone.Touched:connect(touch) | |
2072 | ||
2073 | game.Debris:AddItem(laserShotClone,10) | |
2074 | coroutine.resume(coroutine.create(function() | |
2075 | for i = 1,25 do wait() | |
2076 | ||
2077 | local p = Instance.new("Part",workspace) | |
2078 | ||
2079 | p.FormFactor="Custom" | |
2080 | ||
2081 | p.Size=Vector3.new(5,1,5) | |
2082 | ||
2083 | p.TopSurface = 0 | |
2084 | ||
2085 | p.BottomSurface = 0 | |
2086 | ||
2087 | local colorc = {"Dark blue"} | |
2088 | ||
2089 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
2090 | ||
2091 | p.BrickColor = Fire | |
2092 | ||
2093 | p.CanCollide=false | |
2094 | ||
2095 | p.Anchored=true | |
2096 | ||
2097 | p.Transparency = 0.7 | |
2098 | ||
2099 | p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0)) | |
2100 | ||
2101 | game.Debris:AddItem(p,.2) | |
2102 | ||
2103 | end | |
2104 | ||
2105 | bodyVelocity.velocity = negativevelocity | |
2106 | ||
2107 | for i = 1,25 do wait() | |
2108 | ||
2109 | local p = Instance.new("Part",workspace) | |
2110 | ||
2111 | p.FormFactor="Custom" | |
2112 | ||
2113 | p.Size=Vector3.new(5,1,5) | |
2114 | ||
2115 | p.TopSurface = 0 | |
2116 | ||
2117 | p.BottomSurface = 0 | |
2118 | ||
2119 | local colorc = {"Dark blue"} | |
2120 | ||
2121 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
2122 | ||
2123 | p.BrickColor = Fire | |
2124 | ||
2125 | p.CanCollide=false | |
2126 | ||
2127 | p.Anchored=true | |
2128 | ||
2129 | p.Transparency = 0.7 | |
2130 | ||
2131 | game.Debris:AddItem(p,.2) | |
2132 | p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0)) | |
2133 | ||
2134 | end | |
2135 | end)) | |
2136 | end | |
2137 | wait(1) | |
2138 | IntegrityAttackDebounce = false | |
2139 | end | |
2140 | end | |
2141 | end | |
2142 | ||
2143 | ||
2144 | --3rd AttackPosition | |
2145 | if PerseveranceAttack == true then | |
2146 | ||
2147 | if InUse == false then return end | |
2148 | if InUse == true then | |
2149 | if PerseveranceAttackDebounce == true then return end | |
2150 | if PerseveranceAttackDebounce == false then | |
2151 | PerseveranceAttackDebounce = true | |
2152 | RandomPerseverance = math.random(1,2) | |
2153 | ||
2154 | if RandomPerseverance == 2 then | |
2155 | local randomnumber = math.random(1,2) | |
2156 | ||
2157 | ||
2158 | ||
2159 | wait(.3) | |
2160 | ||
2161 | ||
2162 | ||
2163 | local p = Instance.new("Part",workspace) | |
2164 | ||
2165 | p.FormFactor="Custom" | |
2166 | ||
2167 | p.Size=Vector3.new(0.8,0.8,0.8) | |
2168 | ||
2169 | p.TopSurface = 0 | |
2170 | ||
2171 | p.BottomSurface = 0 | |
2172 | ||
2173 | local colorc = {"Magenta"} | |
2174 | ||
2175 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
2176 | ||
2177 | p.BrickColor = Fire | |
2178 | ||
2179 | p.CanCollide=false | |
2180 | ||
2181 | p.Anchored=true | |
2182 | ||
2183 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
2184 | coroutine.resume(coroutine.create(function() | |
2185 | for i = 1,5 do wait() | |
2186 | ||
2187 | p.Size=Vector3.new(0.5*i,0.5*i,0.5*i) | |
2188 | p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0)) | |
2189 | end | |
2190 | p:remove() | |
2191 | end)) | |
2192 | ||
2193 | local throwbone1 = Instance.new("Part",suit) | |
2194 | throwbone1.TopSurface = "Smooth" | |
2195 | throwbone1.BottomSurface = "Smooth" | |
2196 | throwbone1.Size = Vector3.new(0.2, 0.2, 3) | |
2197 | throwbone1.CanCollide = true | |
2198 | throwbone1.BrickColor = BrickColor.new("Magenta") | |
2199 | throwbone1 .FormFactor = "Custom" | |
2200 | local Weldbonepart2 = Instance.new("Weld",throwbone1) | |
2201 | Weldbonepart2.Part0 = throwbone1 | |
2202 | Weldbonepart2.Part1 = Perseverance | |
2203 | Weldbonepart2.Name = "WBP22" | |
2204 | ||
2205 | local throwbone1weld2 = Instance.new("Part",throwbone1) | |
2206 | throwbone1weld2.TopSurface = "Smooth" | |
2207 | throwbone1weld2.BottomSurface = "Smooth" | |
2208 | throwbone1weld2.Size = Vector3.new(0.4, 0.4, 0.4) | |
2209 | throwbone1weld2.CanCollide = true | |
2210 | throwbone1weld2.BrickColor = BrickColor.new("Magenta") | |
2211 | throwbone1weld2 .FormFactor = "Custom" | |
2212 | local Weldbonepart2weld2 = Instance.new("Weld",throwbone1) | |
2213 | Weldbonepart2weld2.Part0 = throwbone1weld2 | |
2214 | Weldbonepart2weld2.Part1 = throwbone1 | |
2215 | Weldbonepart2weld2.Name = "WBP2W2" | |
2216 | Weldbonepart2weld2.C1 = CFrame.new(0, 0, -1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2217 | ||
2218 | ||
2219 | local throwbone1weld1 = Instance.new("Part",throwbone1) | |
2220 | throwbone1weld1.TopSurface = "Smooth" | |
2221 | throwbone1weld1.BottomSurface = "Smooth" | |
2222 | throwbone1weld1.Size = Vector3.new(0.4, 0.4, 0.4) | |
2223 | throwbone1weld1.CanCollide = true | |
2224 | throwbone1weld1.BrickColor = BrickColor.new("Magenta") | |
2225 | throwbone1weld1 .FormFactor = "Custom" | |
2226 | local Weldbonepart2weld1 = Instance.new("Weld",throwbone1) | |
2227 | Weldbonepart2weld1.Part0 = throwbone1weld1 | |
2228 | Weldbonepart2weld1.Part1 = throwbone1 | |
2229 | Weldbonepart2weld1.Name = "WBP2W1" | |
2230 | Weldbonepart2weld1.C1 = CFrame.new(0, 0, 1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2231 | ||
2232 | ||
2233 | if randomnumber == 1 then | |
2234 | for i = 1,10 do wait() | |
2235 | ||
2236 | Weldbonepart2.C1 = CFrame.new(-3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0) | |
2237 | ||
2238 | ||
2239 | end | |
2240 | end | |
2241 | ||
2242 | if randomnumber == 2 then | |
2243 | for i = 1,10 do wait() | |
2244 | ||
2245 | Weldbonepart2.C1 = CFrame.new(3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0) | |
2246 | ||
2247 | ||
2248 | end | |
2249 | end | |
2250 | ||
2251 | ||
2252 | local handleCFrame = throwbone1.CFrame | |
2253 | local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET) | |
2254 | local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p) | |
2255 | local laserShotClone = throwbone1:Clone() | |
2256 | laserShotClone.WBP22:remove() | |
2257 | laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (throwbone1.Size.Z / 2)) | |
2258 | local bodyVelocity = Instance.new('BodyVelocity') | |
2259 | bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED | |
2260 | bodyVelocity.Parent = laserShotClone | |
2261 | bodyVelocity.Name = "Magic" | |
2262 | bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000) | |
2263 | ||
2264 | ||
2265 | laserShotClone.Parent = suit | |
2266 | ||
2267 | throwbone1:remove() | |
2268 | ||
2269 | ||
2270 | ||
2271 | function touch(hit) | |
2272 | ||
2273 | ||
2274 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2275 | ||
2276 | if hit.Parent.Name == char.Name then return end | |
2277 | if hit.Parent.Name == hand1Determination.Name then return end | |
2278 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
2279 | if hit.Parent.Name == hand3Patience.Name then return end | |
2280 | if hit.Parent.Name == hand4Integrity.Name then return end | |
2281 | if hit.Parent.Name == hand5Bravery.Name then return end | |
2282 | if hit.Parent.Name == hand6Justice.Name then return end | |
2283 | if hit.Parent.Name == hand7Kindness.Name then return end | |
2284 | ||
2285 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-5 | |
2286 | ||
2287 | local HitSounds = { | |
2288 | Hurt = Instance.new("Sound") | |
2289 | ||
2290 | } | |
2291 | ||
2292 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2293 | HitSounds["Hurt"].Volume = 1 | |
2294 | ||
2295 | function PlayHitSound(soundname, pitch) | |
2296 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2297 | HitSounds[soundname].Pitch = pitch | |
2298 | HitSounds[soundname]:Play() | |
2299 | local oldsound = HitSounds[soundname] | |
2300 | coroutine.resume(coroutine.create(function() | |
2301 | wait(4) | |
2302 | oldsound:Destroy() | |
2303 | end)) | |
2304 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2305 | end | |
2306 | ||
2307 | PlayHitSound("Hurt", 1) | |
2308 | ||
2309 | coroutine.resume(coroutine.create(function() | |
2310 | laserShotClone.Magic:remove() | |
2311 | ||
2312 | wait(3) | |
2313 | laserShotClone:remove() | |
2314 | end)) | |
2315 | ||
2316 | end end laserShotClone.Touched:connect(touch) | |
2317 | ||
2318 | game.Debris:AddItem(laserShotClone,10) | |
2319 | ||
2320 | ||
2321 | elseif RandomPerseverance == 1 then | |
2322 | ||
2323 | PlaySound("Gaster", 1, PerseveranceOrb,false) | |
2324 | wait(1) | |
2325 | local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p - PerseveranceOrb.CFrame.p).unit*1000) | |
2326 | local hit, position = game.Workspace:FindPartOnRay(ray, char) | |
2327 | ||
2328 | ||
2329 | ||
2330 | ||
2331 | ||
2332 | local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p -PerseveranceOrb.CFrame.p).unit*300) | |
2333 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
2334 | local distance = (position - PerseveranceOrb.CFrame.p).magnitude | |
2335 | local rp=Instance.new("Part",workspace) | |
2336 | rp.Anchored=true | |
2337 | rp.TopSurface="Smooth" | |
2338 | rp.BottomSurface="Smooth" | |
2339 | rp.Transparency=0 | |
2340 | rp.BrickColor=BrickColor.new("Bright purple") | |
2341 | rp.FormFactor="Custom" | |
2342 | rp.CanCollide=false | |
2343 | rp.Size=Vector3.new(0.8,0.1,distance) | |
2344 | rp.Material = "Neon" | |
2345 | rp.CFrame=CFrame.new(position, PerseveranceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
2346 | local cy=Instance.new("BlockMesh",rp) | |
2347 | ||
2348 | ||
2349 | ||
2350 | coroutine.resume(coroutine.create(function() | |
2351 | wait(1) | |
2352 | for i=1,10 do | |
2353 | wait() | |
2354 | rp.Transparency=rp.Transparency + 0.1 | |
2355 | ||
2356 | end | |
2357 | rp:remove() | |
2358 | end)) | |
2359 | ||
2360 | function touch(hit) | |
2361 | ||
2362 | ||
2363 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2364 | ||
2365 | if hit.Parent.Name == char.Name then return end | |
2366 | if hit.Parent.Name == hand1Determination.Name then return end | |
2367 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
2368 | if hit.Parent.Name == hand3Patience.Name then return end | |
2369 | if hit.Parent.Name == hand4Integrity.Name then return end | |
2370 | if hit.Parent.Name == hand5Bravery.Name then return end | |
2371 | if hit.Parent.Name == hand6Justice.Name then return end | |
2372 | if hit.Parent.Name == hand7Kindness.Name then return end | |
2373 | ||
2374 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-20 | |
2375 | ||
2376 | local HitSounds = { | |
2377 | Hurt = Instance.new("Sound") | |
2378 | ||
2379 | } | |
2380 | ||
2381 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2382 | HitSounds["Hurt"].Volume = 1 | |
2383 | ||
2384 | function PlayHitSound(soundname, pitch) | |
2385 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2386 | HitSounds[soundname].Pitch = pitch | |
2387 | HitSounds[soundname]:Play() | |
2388 | local oldsound = HitSounds[soundname] | |
2389 | coroutine.resume(coroutine.create(function() | |
2390 | wait(4) | |
2391 | oldsound:Destroy() | |
2392 | end)) | |
2393 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2394 | end | |
2395 | ||
2396 | PlayHitSound("Hurt", 1) | |
2397 | ||
2398 | end end rp.Touched:connect(touch) | |
2399 | ||
2400 | ||
2401 | ||
2402 | ||
2403 | ||
2404 | ||
2405 | ||
2406 | end | |
2407 | RandomPerseverance = 0 | |
2408 | ||
2409 | PerseveranceAttackDebounce = false | |
2410 | end | |
2411 | end | |
2412 | end | |
2413 | ||
2414 | if KindAttack == true then | |
2415 | ||
2416 | if InUse == false then return end | |
2417 | if InUse == true then | |
2418 | if KindnessAttackDebounce == true then return end | |
2419 | if KindnessAttackDebounce == false then | |
2420 | KindnessAttackDebounce = true | |
2421 | local ray = Ray.new(Kindness.CFrame.p, (mouse.Hit.p -Kindness.CFrame.p).unit*300) | |
2422 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
2423 | local distance = (position - Kindness.CFrame.p).magnitude | |
2424 | local rp=Instance.new("Part",workspace) | |
2425 | rp.Anchored=true | |
2426 | rp.TopSurface="Smooth" | |
2427 | rp.BottomSurface="Smooth" | |
2428 | rp.Transparency=1 | |
2429 | rp.BrickColor=BrickColor.new("Deep orange") | |
2430 | rp.FormFactor="Custom" | |
2431 | rp.CanCollide=false | |
2432 | rp.Size=Vector3.new(0.6,0.6,distance) | |
2433 | rp.Material = "Neon" | |
2434 | rp.CFrame=CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
2435 | local cy=Instance.new("BlockMesh",rp) | |
2436 | rp:Destroy() | |
2437 | ||
2438 | ||
2439 | ||
2440 | local ps = Instance.new("Part", suit) | |
2441 | ps.Name = "MagicPart" | |
2442 | ps.TopSurface = "Smooth" | |
2443 | ps.BottomSurface = "Smooth" | |
2444 | ps.BrickColor = BrickColor.new("Toothpaste") | |
2445 | ps.FormFactor = "Custom" | |
2446 | ps.Transparency = 1 | |
2447 | ps.Size = Vector3.new(.2, 3, 3) | |
2448 | ps.Anchored = true | |
2449 | ps.CanCollide = false | |
2450 | ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0) | |
2451 | local cy=Instance.new("SpecialMesh",ps) | |
2452 | cy.MeshType = "Cylinder" | |
2453 | ||
2454 | coroutine.resume(coroutine.create(function() | |
2455 | ||
2456 | ||
2457 | ||
2458 | local SpawnSounds = { | |
2459 | Spike = Instance.new("Sound") | |
2460 | ||
2461 | } | |
2462 | ||
2463 | SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230" | |
2464 | SpawnSounds["Spike"].Volume = 0.5 | |
2465 | ||
2466 | function PlaySpawnSound(soundname, pitch) | |
2467 | SpawnSounds[soundname].Parent = ps | |
2468 | SpawnSounds[soundname].Pitch = pitch | |
2469 | SpawnSounds[soundname]:Play() | |
2470 | local oldsound = SpawnSounds[soundname] | |
2471 | coroutine.resume(coroutine.create(function() | |
2472 | wait(4) | |
2473 | oldsound:Destroy() | |
2474 | end)) | |
2475 | SpawnSounds[soundname] = SpawnSounds[soundname]:clone() | |
2476 | end | |
2477 | ||
2478 | ||
2479 | ||
2480 | local p = Instance.new("Part",workspace) | |
2481 | ||
2482 | p.FormFactor="Custom" | |
2483 | ||
2484 | p.Size=Vector3.new(0.8,0.8,0.8) | |
2485 | ||
2486 | p.TopSurface = 0 | |
2487 | ||
2488 | p.BottomSurface = 0 | |
2489 | ||
2490 | local colorc = {"Lime green"} | |
2491 | ||
2492 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
2493 | ||
2494 | p.BrickColor = Fire | |
2495 | ||
2496 | p.CanCollide=false | |
2497 | ||
2498 | p.Anchored=true | |
2499 | ||
2500 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
2501 | coroutine.resume(coroutine.create(function() | |
2502 | for i = 1,8 do wait() | |
2503 | ||
2504 | p.Size=Vector3.new(0.8*i,0.8*i,0.8*i) | |
2505 | p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0)) | |
2506 | end | |
2507 | p:remove() | |
2508 | end)) | |
2509 | ||
2510 | PlaySpawnSound("Spike", 1) | |
2511 | ||
2512 | ||
2513 | ||
2514 | ||
2515 | wait(0.5) | |
2516 | ||
2517 | ||
2518 | ||
2519 | end)) | |
2520 | ||
2521 | ||
2522 | ||
2523 | local Shield6= Instance.new("Part",hand7Kindness) | |
2524 | Shield6.TopSurface = "Smooth" | |
2525 | Shield6.BottomSurface = "Smooth" | |
2526 | Shield6.Size = Vector3.new(18, 3, 18) | |
2527 | Shield6.CanCollide = true | |
2528 | Shield6.Anchored =true | |
2529 | Shield6.BrickColor = BrickColor.new("Lime green") | |
2530 | Shield6 .FormFactor = "Custom" | |
2531 | Shield6.Transparency = 0.7 | |
2532 | Shield6.CFrame= ps.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2533 | ||
2534 | ||
2535 | local Shield5= Instance.new("Part",hand7Kindness) | |
2536 | Shield5.TopSurface = "Smooth" | |
2537 | Shield5.BottomSurface = "Smooth" | |
2538 | Shield5.Size = Vector3.new(18, 3, 18) | |
2539 | Shield5.CanCollide = true | |
2540 | Shield5.Anchored =true | |
2541 | Shield5.BrickColor = BrickColor.new("Lime green") | |
2542 | Shield5 .FormFactor = "Custom" | |
2543 | Shield5.Transparency = 0.7 | |
2544 | Shield5.CFrame= ps.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2545 | ||
2546 | ||
2547 | local Shield4= Instance.new("Part",hand7Kindness) | |
2548 | Shield4.TopSurface = "Smooth" | |
2549 | Shield4.BottomSurface = "Smooth" | |
2550 | Shield4.Size = Vector3.new(3, 18, 18) | |
2551 | Shield4.CanCollide = true | |
2552 | Shield4.Anchored =true | |
2553 | Shield4.BrickColor = BrickColor.new("Lime green") | |
2554 | Shield4 .FormFactor = "Custom" | |
2555 | Shield4.Transparency = 0.7 | |
2556 | Shield4.CFrame= ps.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2557 | ||
2558 | ||
2559 | local Shield3= Instance.new("Part",hand7Kindness) | |
2560 | Shield3.TopSurface = "Smooth" | |
2561 | Shield3.BottomSurface = "Smooth" | |
2562 | Shield3.Size = Vector3.new(3, 18, 18) | |
2563 | Shield3.CanCollide = true | |
2564 | Shield3.Anchored =true | |
2565 | Shield3.BrickColor = BrickColor.new("Lime green") | |
2566 | Shield3 .FormFactor = "Custom" | |
2567 | Shield3.Transparency = 0.7 | |
2568 | Shield3.CFrame= ps.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2569 | ||
2570 | ||
2571 | local Shield2= Instance.new("Part",hand7Kindness) | |
2572 | Shield2.TopSurface = "Smooth" | |
2573 | Shield2.BottomSurface = "Smooth" | |
2574 | Shield2.Size = Vector3.new(18, 18, 3) | |
2575 | Shield2.CanCollide = true | |
2576 | Shield2.Anchored =true | |
2577 | Shield2.BrickColor = BrickColor.new("Lime green") | |
2578 | Shield2 .FormFactor = "Custom" | |
2579 | Shield2.Transparency = 0.7 | |
2580 | Shield2.CFrame= ps.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2581 | ||
2582 | ||
2583 | local Shield1= Instance.new("Part",hand7Kindness) | |
2584 | Shield1.TopSurface = "Smooth" | |
2585 | Shield1.BottomSurface = "Smooth" | |
2586 | Shield1.Size = Vector3.new(18, 18, 3) | |
2587 | Shield1.CanCollide = true | |
2588 | Shield1.Anchored =true | |
2589 | Shield1.BrickColor = BrickColor.new("Lime green") | |
2590 | Shield1 .FormFactor = "Custom" | |
2591 | Shield1.Transparency = 0.7 | |
2592 | Shield1.CFrame= ps.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2593 | ||
2594 | for i = 1,7 do | |
2595 | local parti = Instance.new("Part",Torso) | |
2596 | parti.Anchored = true | |
2597 | parti.TopSurface = 0 | |
2598 | parti.BottomSurface = 0 | |
2599 | parti.CanCollide = false | |
2600 | parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1)) | |
2601 | parti.CFrame = ps.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
2602 | parti.Transparency = 0 | |
2603 | parti.BrickColor = BrickColor.new("Lime green") | |
2604 | game.Debris:AddItem(parti,1.5) | |
2605 | ||
2606 | ||
2607 | ||
2608 | ||
2609 | ||
2610 | ||
2611 | ||
2612 | local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
2613 | game:service("RunService").Stepped:connect(function() | |
2614 | parti.Transparency = parti.Transparency + 0.05 | |
2615 | parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad | |
2616 | end) | |
2617 | end | |
2618 | ||
2619 | wait(3) | |
2620 | ||
2621 | function squeeze(hit) | |
2622 | ||
2623 | ||
2624 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2625 | ||
2626 | if hit.Parent.Name == char.Name then return end | |
2627 | if hit.Parent.Name == hand1Determination.Name then return end | |
2628 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
2629 | if hit.Parent.Name == hand3Patience.Name then return end | |
2630 | if hit.Parent.Name == hand4Integrity.Name then return end | |
2631 | if hit.Parent.Name == hand5Bravery.Name then return end | |
2632 | if hit.Parent.Name == hand6Justice.Name then return end | |
2633 | if hit.Parent.Name == hand7Kindness.Name then return end | |
2634 | ||
2635 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50 | |
2636 | ||
2637 | local HitSounds = { | |
2638 | Hurt = Instance.new("Sound") | |
2639 | ||
2640 | } | |
2641 | ||
2642 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2643 | HitSounds["Hurt"].Volume = 1 | |
2644 | ||
2645 | function PlayHitSound(soundname, pitch) | |
2646 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2647 | HitSounds[soundname].Pitch = pitch | |
2648 | HitSounds[soundname]:Play() | |
2649 | local oldsound = HitSounds[soundname] | |
2650 | coroutine.resume(coroutine.create(function() | |
2651 | wait(4) | |
2652 | oldsound:Destroy() | |
2653 | end)) | |
2654 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2655 | end | |
2656 | ||
2657 | PlayHitSound("Hurt", 1) | |
2658 | ||
2659 | end end | |
2660 | ||
2661 | Shield6.Touched:connect(squeeze) | |
2662 | Shield5.Touched:connect(squeeze) | |
2663 | Shield4.Touched:connect(squeeze) | |
2664 | Shield3.Touched:connect(squeeze) | |
2665 | Shield2.Touched:connect(squeeze) | |
2666 | Shield1.Touched:connect(squeeze) | |
2667 | ||
2668 | ||
2669 | for i = 1,30 do wait() | |
2670 | ||
2671 | Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1) | |
2672 | Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1) | |
2673 | Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1) | |
2674 | Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1) | |
2675 | Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1) | |
2676 | Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1) | |
2677 | ||
2678 | ||
2679 | end | |
2680 | ||
2681 | ||
2682 | for i = 1,30 do wait() | |
2683 | ||
2684 | Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1) | |
2685 | Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1) | |
2686 | Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1) | |
2687 | Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1) | |
2688 | Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1) | |
2689 | Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1) | |
2690 | ||
2691 | ||
2692 | end | |
2693 | ||
2694 | ||
2695 | ps:remove() | |
2696 | ||
2697 | ||
2698 | wait(3) | |
2699 | Shield1:Remove() | |
2700 | Shield2:Remove() | |
2701 | Shield3:Remove() | |
2702 | Shield4:Remove() | |
2703 | Shield5:Remove() | |
2704 | Shield6:Remove() | |
2705 | ||
2706 | KindnessAttackDebounce = false | |
2707 | end | |
2708 | end | |
2709 | end | |
2710 | ||
2711 | ||
2712 | ||
2713 | ||
2714 | ||
2715 | ---5th attack--- | |
2716 | ||
2717 | ||
2718 | if DeterminationAttack == true then | |
2719 | ||
2720 | if InUse == false then return end | |
2721 | if InUse == true then | |
2722 | if DetermiantionAttackDebounce == true then return end | |
2723 | if DetermiantionAttackDebounce == false then | |
2724 | ||
2725 | ||
2726 | DetermiantionAttackDebounce = true | |
2727 | ||
2728 | ||
2729 | for i = 1,3 do | |
2730 | local head = Instance.new("Part",char) | |
2731 | head.Size = Vector3.new(18,.2,18) | |
2732 | head.CanCollide = false | |
2733 | head.Anchored = true | |
2734 | head.CFrame = CFrame.new(char.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
2735 | head.Transparency = 1 | |
2736 | for i = 1,2 do | |
2737 | decal = Instance.new("Decal",head) | |
2738 | decal.Texture = "rbxassetid://333659534" | |
2739 | if i == 1 then | |
2740 | decal.Face = Enum.NormalId.Top | |
2741 | else | |
2742 | decal.Face = Enum.NormalId.Bottom | |
2743 | end | |
2744 | end | |
2745 | ||
2746 | local bg = Instance.new("BodyGyro") | |
2747 | bg.Parent = head | |
2748 | bg.maxTorque = Vector3.new(0,0,0) | |
2749 | bg.maxTorque = Vector3.new(0,0,0) | |
2750 | ||
2751 | RandomGasterRotaion = math.random(-10,10) | |
2752 | ||
2753 | for i = 1,5 do wait() | |
2754 | print ' test' | |
2755 | head.CFrame = clerp(head.CFrame*CFrame.new(RandomGasterRotaion,1*i,1*i),head.CFrame,.1) | |
2756 | ||
2757 | ||
2758 | end | |
2759 | RandomGasterRotaion = 0 | |
2760 | ||
2761 | ||
2762 | local ray = Ray.new(head.CFrame.p, (mouse.Hit.p - head.CFrame.p).unit*1000) | |
2763 | local hit, position = game.Workspace:FindPartOnRay(ray, char) | |
2764 | ||
2765 | ||
2766 | ||
2767 | ||
2768 | ||
2769 | local ray = Ray.new(head.CFrame.p, (mouse.Hit.p -head.CFrame.p).unit*300) | |
2770 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
2771 | local distance = (position - head.CFrame.p).magnitude | |
2772 | local rp=Instance.new("Part",workspace) | |
2773 | rp.Anchored=true | |
2774 | rp.TopSurface="Smooth" | |
2775 | rp.BottomSurface="Smooth" | |
2776 | rp.Transparency=0 | |
2777 | rp.BrickColor=BrickColor.new("Institutional white") | |
2778 | rp.FormFactor="Custom" | |
2779 | rp.CanCollide=false | |
2780 | rp.Size=Vector3.new(10,0,distance) | |
2781 | rp.Material = "Neon" | |
2782 | rp.CFrame=CFrame.new(position, head.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
2783 | local cy=Instance.new("BlockMesh",rp) | |
2784 | head.CFrame = CFrame.new(head.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
2785 | function touch(hit) | |
2786 | ||
2787 | ||
2788 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2789 | ||
2790 | if hit.Parent.Name == char.Name then return end | |
2791 | if hit.Parent.Name == hand1Determination.Name then return end | |
2792 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
2793 | if hit.Parent.Name == hand3Patience.Name then return end | |
2794 | if hit.Parent.Name == hand4Integrity.Name then return end | |
2795 | if hit.Parent.Name == hand5Bravery.Name then return end | |
2796 | if hit.Parent.Name == hand6Justice.Name then return end | |
2797 | if hit.Parent.Name == hand7Kindness.Name then return end | |
2798 | ||
2799 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7 | |
2800 | ||
2801 | local HitSounds = { | |
2802 | Hurt = Instance.new("Sound") | |
2803 | ||
2804 | } | |
2805 | ||
2806 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2807 | HitSounds["Hurt"].Volume = 1 | |
2808 | ||
2809 | function PlayHitSound(soundname, pitch) | |
2810 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2811 | HitSounds[soundname].Pitch = pitch | |
2812 | HitSounds[soundname]:Play() | |
2813 | local oldsound = HitSounds[soundname] | |
2814 | coroutine.resume(coroutine.create(function() | |
2815 | wait(4) | |
2816 | oldsound:Destroy() | |
2817 | end)) | |
2818 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2819 | end | |
2820 | ||
2821 | PlayHitSound("Hurt", 1) | |
2822 | ||
2823 | end end rp.Touched:connect(touch) | |
2824 | ||
2825 | coroutine.resume(coroutine.create(function() | |
2826 | ||
2827 | PlaySound("Gaster", 1, head,false) | |
2828 | for i=1,10 do | |
2829 | wait() | |
2830 | cy.Scale=cy.Scale+Vector3.new(0,0,.01*i) | |
2831 | head.CFrame = head.CFrame*CFrame.new(0,0,1*i)*CFrame.Angles(0,0,0) | |
2832 | end | |
2833 | for i=1,10 do wait() | |
2834 | ||
2835 | decal.Transparency = decal.Transparency + 0.1 | |
2836 | rp.Transparency = rp.Transparency + 0.1 | |
2837 | ||
2838 | end | |
2839 | wait(1) | |
2840 | head:Destroy() | |
2841 | rp:Destroy() | |
2842 | end)) | |
2843 | end | |
2844 | ||
2845 | ||
2846 | wait(0.1) | |
2847 | DetermiantionAttackDebounce = false | |
2848 | ||
2849 | end | |
2850 | ||
2851 | end | |
2852 | end | |
2853 | ||
2854 | ||
2855 | ||
2856 | ||
2857 | if PatienceAttack == true then | |
2858 | ||
2859 | if InUse == false then return end | |
2860 | if InUse == true then | |
2861 | if PatienceAttackDebounce == true then return end | |
2862 | if PatienceAttackDebounce == false then | |
2863 | ||
2864 | ||
2865 | PatienceAttackDebounce = true | |
2866 | ||
2867 | ||
2868 | ||
2869 | ||
2870 | local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p - PatienceOrb.CFrame.p).unit*1000) | |
2871 | local hit, position = game.Workspace:FindPartOnRay(ray, char) | |
2872 | ||
2873 | ||
2874 | ||
2875 | ||
2876 | ||
2877 | local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p -PatienceOrb.CFrame.p).unit*300) | |
2878 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
2879 | local distance = (position - PatienceOrb.CFrame.p).magnitude | |
2880 | local rp=Instance.new("Part",workspace) | |
2881 | rp.Anchored=true | |
2882 | rp.TopSurface="Smooth" | |
2883 | rp.BottomSurface="Smooth" | |
2884 | rp.Transparency=0 | |
2885 | rp.BrickColor=BrickColor.new("Cyan") | |
2886 | rp.FormFactor="Custom" | |
2887 | rp.CanCollide=false | |
2888 | rp.Size=Vector3.new(0.5,0.5,distance) | |
2889 | rp.Material = "Neon" | |
2890 | rp.CFrame=CFrame.new(position, PatienceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
2891 | local cy=Instance.new("BlockMesh",rp) | |
2892 | coroutine.resume(coroutine.create(function() | |
2893 | for i=1,13 do | |
2894 | wait() | |
2895 | cy.Scale=cy.Scale-Vector3.new(.01*i,.01*i,0) | |
2896 | ||
2897 | end | |
2898 | end)) | |
2899 | function touch(hit) | |
2900 | ||
2901 | ||
2902 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
2903 | ||
2904 | if hit.Parent.Name == char.Name then return end | |
2905 | if hit.Parent.Name == hand1Determination.Name then return end | |
2906 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
2907 | if hit.Parent.Name == hand3Patience.Name then return end | |
2908 | if hit.Parent.Name == hand4Integrity.Name then return end | |
2909 | if hit.Parent.Name == hand5Bravery.Name then return end | |
2910 | if hit.Parent.Name == hand6Justice.Name then return end | |
2911 | if hit.Parent.Name == hand7Kindness.Name then return end | |
2912 | ||
2913 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7 | |
2914 | local hittorso = hit.Parent.Torso | |
2915 | local HitSounds = { | |
2916 | Hurt = Instance.new("Sound") | |
2917 | ||
2918 | } | |
2919 | ||
2920 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
2921 | HitSounds["Hurt"].Volume = 1 | |
2922 | ||
2923 | function PlayHitSound(soundname, pitch) | |
2924 | HitSounds[soundname].Parent = hit.Parent.Torso | |
2925 | HitSounds[soundname].Pitch = pitch | |
2926 | HitSounds[soundname]:Play() | |
2927 | local oldsound = HitSounds[soundname] | |
2928 | coroutine.resume(coroutine.create(function() | |
2929 | wait(4) | |
2930 | oldsound:Destroy() | |
2931 | end)) | |
2932 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
2933 | end | |
2934 | ||
2935 | PlayHitSound("Hurt", 1) | |
2936 | ||
2937 | local Tied = Instance.new("Part",hittorso) | |
2938 | Tied.Size = Vector3.new(4,2,1.5) | |
2939 | Tied.Name = "Rope" | |
2940 | Tied.CanCollide = false | |
2941 | Tied.Transparency = 0.1 | |
2942 | Tied.BrickColor = BrickColor.new("Cyan") | |
2943 | Tied.CFrame = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2944 | ||
2945 | local Weld = Instance.new("Weld",hittorso) | |
2946 | Weld.Part0 = hittorso | |
2947 | Weld.Part1 = Tied | |
2948 | Weld.C1 = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
2949 | ||
2950 | ||
2951 | hit.Parent.Torso.Anchored = true | |
2952 | hit.Parent["Left Arm"].Anchored = true | |
2953 | hit.Parent["Right Arm"].Anchored = true | |
2954 | ||
2955 | wait(3) | |
2956 | ||
2957 | for i = 1,10 do wait(.1) | |
2958 | ||
2959 | Tied.Transparency = Tied.Transparency + 0.1 | |
2960 | ||
2961 | ||
2962 | end | |
2963 | ||
2964 | ||
2965 | hit.Parent.Torso.Anchored = false | |
2966 | hit.Parent["Left Arm"].Anchored = false | |
2967 | hit.Parent["Right Arm"].Anchored = false | |
2968 | ||
2969 | ||
2970 | end end rp.Touched:connect(touch) | |
2971 | ||
2972 | coroutine.resume(coroutine.create(function() | |
2973 | ||
2974 | ||
2975 | wait(1) | |
2976 | ||
2977 | rp:Destroy() | |
2978 | end)) | |
2979 | end | |
2980 | ||
2981 | ||
2982 | wait(1) | |
2983 | PatienceAttackDebounce = false | |
2984 | ||
2985 | end | |
2986 | ||
2987 | end | |
2988 | ||
2989 | if BraveryAttack == true then | |
2990 | ||
2991 | if InUse == false then return end | |
2992 | if InUse == true then | |
2993 | if BraveryAttackDebounce == true then return end | |
2994 | if BraveryAttackDebounce == false then | |
2995 | BraveryAttackDebounce = true | |
2996 | local ray = Ray.new(Bravery.CFrame.p, (mouse.Hit.p -Bravery.CFrame.p).unit*300) | |
2997 | local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus) | |
2998 | local distance = (position - Bravery.CFrame.p).magnitude | |
2999 | local rp=Instance.new("Part",workspace) | |
3000 | rp.Anchored=true | |
3001 | rp.TopSurface="Smooth" | |
3002 | rp.BottomSurface="Smooth" | |
3003 | rp.Transparency=1 | |
3004 | rp.BrickColor=BrickColor.new("Deep orange") | |
3005 | rp.FormFactor="Custom" | |
3006 | rp.CanCollide=false | |
3007 | rp.Size=Vector3.new(0.6,0.6,distance) | |
3008 | rp.Material = "Neon" | |
3009 | rp.CFrame=CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2) | |
3010 | local cy=Instance.new("BlockMesh",rp) | |
3011 | rp:Destroy() | |
3012 | ||
3013 | ||
3014 | ||
3015 | local ps = Instance.new("Part", suit) | |
3016 | ps.Name = "MagicPart" | |
3017 | ps.TopSurface = "Smooth" | |
3018 | ps.BottomSurface = "Smooth" | |
3019 | ps.BrickColor = BrickColor.new("Toothpaste") | |
3020 | ps.FormFactor = "Custom" | |
3021 | ps.Transparency = 1 | |
3022 | ps.Size = Vector3.new(.5, .5, .5) | |
3023 | ps.Anchored = true | |
3024 | ps.CanCollide = false | |
3025 | ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0) | |
3026 | local cy=Instance.new("SpecialMesh",ps) | |
3027 | cy.MeshType = "Cylinder" | |
3028 | for i =1,5 do | |
3029 | ||
3030 | coroutine.resume(coroutine.create(function() | |
3031 | coroutine.resume(coroutine.create(function() | |
3032 | ||
3033 | ||
3034 | ||
3035 | local SpawnSounds = { | |
3036 | Spike = Instance.new("Sound") | |
3037 | ||
3038 | } | |
3039 | ||
3040 | SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230" | |
3041 | SpawnSounds["Spike"].Volume = 0.1 | |
3042 | ||
3043 | function PlaySpawnSound(soundname, pitch) | |
3044 | SpawnSounds[soundname].Parent = ps | |
3045 | SpawnSounds[soundname].Pitch = pitch | |
3046 | SpawnSounds[soundname]:Play() | |
3047 | local oldsound = SpawnSounds[soundname] | |
3048 | coroutine.resume(coroutine.create(function() | |
3049 | wait(4) | |
3050 | oldsound:Destroy() | |
3051 | end)) | |
3052 | SpawnSounds[soundname] = SpawnSounds[soundname]:clone() | |
3053 | end | |
3054 | ||
3055 | ||
3056 | ||
3057 | local p = Instance.new("Part",workspace) | |
3058 | ||
3059 | p.FormFactor="Custom" | |
3060 | ||
3061 | p.Size=Vector3.new(0.3,0.3,0.3) | |
3062 | ||
3063 | p.TopSurface = 0 | |
3064 | ||
3065 | p.BottomSurface = 0 | |
3066 | ||
3067 | local colorc = {"Deep orange"} | |
3068 | ||
3069 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
3070 | ||
3071 | p.BrickColor = Fire | |
3072 | ||
3073 | p.CanCollide=false | |
3074 | ||
3075 | p.Anchored=true | |
3076 | ||
3077 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
3078 | coroutine.resume(coroutine.create(function() | |
3079 | for i = 1,8 do wait() | |
3080 | ||
3081 | p.Size=Vector3.new(0.3*i,0.3*i,0.3*i) | |
3082 | p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0)) | |
3083 | end | |
3084 | p:remove() | |
3085 | end)) | |
3086 | ||
3087 | PlaySpawnSound("Spike", 1) | |
3088 | ||
3089 | ||
3090 | ||
3091 | wait(0.5) | |
3092 | ||
3093 | ||
3094 | ||
3095 | end)) | |
3096 | ||
3097 | ||
3098 | ||
3099 | ||
3100 | ||
3101 | ||
3102 | ||
3103 | xmathrandom = math.random(-10,10) | |
3104 | ymathrandom = math.random(2,10) | |
3105 | zmathrandom = math.random(-10,10) | |
3106 | ||
3107 | local Bomb= Instance.new("Part",hand5Bravery) | |
3108 | Bomb.TopSurface = "Smooth" | |
3109 | Bomb.BottomSurface = "Smooth" | |
3110 | Bomb.Size = Vector3.new(0.1,0.1,0.1) | |
3111 | Bomb.CanCollide = true | |
3112 | Bomb.Anchored =true | |
3113 | Bomb.BrickColor = BrickColor.new("Mid gray") | |
3114 | Bomb .Shape = "Ball" | |
3115 | Bomb .Material= "Neon" | |
3116 | Bomb.Transparency = 0 | |
3117 | Bomb.CFrame= ps.CFrame*CFrame.new(xmathrandom,ymathrandom ,zmathrandom )*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
3118 | ||
3119 | ||
3120 | xmathrandom = 0 | |
3121 | ymathrandom = 0 | |
3122 | zmathrandom = 0 | |
3123 | ||
3124 | wait(1) | |
3125 | ||
3126 | ||
3127 | Bomb.BrickColor = BrickColor.new("Deep orange") | |
3128 | local p = Instance.new("Part",workspace) | |
3129 | ||
3130 | p.FormFactor="Custom" | |
3131 | ||
3132 | p.Size=Vector3.new(0.1,0.1,0.1) | |
3133 | ||
3134 | p.TopSurface = 0 | |
3135 | ||
3136 | p.BottomSurface = 0 | |
3137 | ||
3138 | local colorc = {"Deep orange"} | |
3139 | ||
3140 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
3141 | ||
3142 | p.BrickColor = Fire | |
3143 | ||
3144 | p.CanCollide=false | |
3145 | ||
3146 | p.Anchored=true | |
3147 | ||
3148 | p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
3149 | coroutine.resume(coroutine.create(function() | |
3150 | for i = 1,2 do wait() | |
3151 | ||
3152 | p.Size=Vector3.new(0.1*i,0.1*i,0.1*i) | |
3153 | p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0)) | |
3154 | end | |
3155 | p:remove() | |
3156 | end)) | |
3157 | wait(1) | |
3158 | ||
3159 | ||
3160 | local explosion = Instance.new("Part",workspace) | |
3161 | ||
3162 | explosion.FormFactor="Custom" | |
3163 | ||
3164 | explosion.Size=Vector3.new(0.8,0.8,0.8) | |
3165 | ||
3166 | explosion.TopSurface = 0 | |
3167 | ||
3168 | explosion.BottomSurface = 0 | |
3169 | ||
3170 | local colorc = {"Deep orange"} | |
3171 | ||
3172 | local Fire = BrickColor.new(colorc[math.random(1, #colorc)]) | |
3173 | ||
3174 | explosion.BrickColor = Fire | |
3175 | ||
3176 | explosion.CanCollide=false | |
3177 | ||
3178 | explosion.Anchored=true | |
3179 | ||
3180 | explosion.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3)) | |
3181 | ||
3182 | PlaySound("Explode", 1, explosion, false) | |
3183 | ||
3184 | function touch(hit) | |
3185 | ||
3186 | ||
3187 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
3188 | ||
3189 | if hit.Parent.Name == char.Name then return end | |
3190 | if hit.Parent.Name == hand1Determination.Name then return end | |
3191 | if hit.Parent.Name == hand2Perseverance.Name then return end | |
3192 | if hit.Parent.Name == hand3Patience.Name then return end | |
3193 | if hit.Parent.Name == hand4Integrity.Name then return end | |
3194 | if hit.Parent.Name == hand5Bravery.Name then return end | |
3195 | if hit.Parent.Name == hand6Justice.Name then return end | |
3196 | if hit.Parent.Name == hand7Kindness.Name then return end | |
3197 | ||
3198 | hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50 | |
3199 | ||
3200 | local HitSounds = { | |
3201 | Hurt = Instance.new("Sound") | |
3202 | ||
3203 | } | |
3204 | ||
3205 | HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063" | |
3206 | HitSounds["Hurt"].Volume = 1 | |
3207 | ||
3208 | function PlayHitSound(soundname, pitch) | |
3209 | HitSounds[soundname].Parent = hit.Parent.Torso | |
3210 | HitSounds[soundname].Pitch = pitch | |
3211 | HitSounds[soundname]:Play() | |
3212 | local oldsound = HitSounds[soundname] | |
3213 | coroutine.resume(coroutine.create(function() | |
3214 | wait(4) | |
3215 | oldsound:Destroy() | |
3216 | end)) | |
3217 | HitSounds[soundname] = HitSounds[soundname]:clone() | |
3218 | end | |
3219 | ||
3220 | PlayHitSound("Hurt", 1) | |
3221 | ||
3222 | end end | |
3223 | ||
3224 | explosion.Touched:connect(touch) | |
3225 | ||
3226 | coroutine.resume(coroutine.create(function() | |
3227 | for i = 1,10 do wait() | |
3228 | explosion.Position =Bomb.Position | |
3229 | explosion.CFrame =Bomb.CFrame | |
3230 | explosion.Size=Vector3.new(3*i,3*i,3*i) | |
3231 | explosion.Position =Bomb.Position | |
3232 | explosion.CFrame =Bomb.CFrame | |
3233 | explosion.Transparency=explosion.Transparency + 0.1 | |
3234 | explosion.Position =Bomb.Position | |
3235 | explosion.CFrame =Bomb.CFrame | |
3236 | end | |
3237 | explosion:remove() | |
3238 | Bomb:remove() | |
3239 | end)) | |
3240 | ||
3241 | ||
3242 | ||
3243 | ||
3244 | ||
3245 | ||
3246 | ps:remove() | |
3247 | end)) | |
3248 | end | |
3249 | wait(2) | |
3250 | ||
3251 | ||
3252 | BraveryAttackDebounce = false | |
3253 | end | |
3254 | end | |
3255 | end | |
3256 | ||
3257 | ||
3258 | ||
3259 | ||
3260 | ||
3261 | ||
3262 | ||
3263 | ||
3264 | ||
3265 | ||
3266 | ||
3267 | ||
3268 | ||
3269 | ||
3270 | ||
3271 | ||
3272 | ||
3273 | ||
3274 | ||
3275 | ||
3276 | ||
3277 | ||
3278 | end) | |
3279 | ||
3280 | ||
3281 | game:service("RunService").Stepped:connect(function() | |
3282 | ||
3283 | ||
3284 | if hand1Determinationhealth.Health == 0 then | |
3285 | ||
3286 | if hand1DeterminationhealthDown == false then | |
3287 | hand1DeterminationhealthDown = true | |
3288 | ||
3289 | Determination:remove() | |
3290 | DeterminationAttack = false | |
3291 | DetermiantionAttackDebounce = false | |
3292 | ||
3293 | ||
3294 | ||
3295 | end | |
3296 | ||
3297 | ||
3298 | end | |
3299 | ||
3300 | end) | |
3301 | ||
3302 | game:service("RunService").Stepped:connect(function() | |
3303 | ||
3304 | ||
3305 | if hand2Perseverancehealth.Health == 0 then | |
3306 | ||
3307 | if hand2PerseverancehealthDown == false then | |
3308 | hand2PerseverancehealthDown = true | |
3309 | ||
3310 | Perseverance:remove() | |
3311 | PerseveranceAttack = false | |
3312 | PerseveranceAttackDebounce = false | |
3313 | ||
3314 | ||
3315 | ||
3316 | end | |
3317 | ||
3318 | ||
3319 | end | |
3320 | ||
3321 | end) | |
3322 | game:service("RunService").Stepped:connect(function() | |
3323 | ||
3324 | ||
3325 | if hand3Patiencehealth.Health == 0 then | |
3326 | ||
3327 | if hand3PatiencehealthDown == false then | |
3328 | hand3PatiencehealthDown = true | |
3329 | ||
3330 | Patience:remove() | |
3331 | PatienceAttack = false | |
3332 | PatienceAttackDebounce = false | |
3333 | ||
3334 | ||
3335 | ||
3336 | end | |
3337 | ||
3338 | ||
3339 | end | |
3340 | ||
3341 | ||
3342 | end) | |
3343 | game:service("RunService").Stepped:connect(function() | |
3344 | ||
3345 | ||
3346 | if hand4Integrityhealth.Health == 0 then | |
3347 | ||
3348 | if hand4IntegrityhealthDown == false then | |
3349 | hand4IntegrityhealthDown = true | |
3350 | ||
3351 | Integrity:remove() | |
3352 | IntegrityAttack = false | |
3353 | IntegrityAttackDebounce = false | |
3354 | ||
3355 | ||
3356 | ||
3357 | end | |
3358 | ||
3359 | ||
3360 | end | |
3361 | ||
3362 | end) | |
3363 | game:service("RunService").Stepped:connect(function() | |
3364 | ||
3365 | ||
3366 | if hand5Braveryhealth.Health == 0 then | |
3367 | ||
3368 | if hand5BraveryhealthDown == false then | |
3369 | hand5BraveryhealthDown = true | |
3370 | ||
3371 | Bravery:remove() | |
3372 | BraveryAttack = false | |
3373 | BraveryAttackDebounce = false | |
3374 | ||
3375 | ||
3376 | ||
3377 | end | |
3378 | ||
3379 | ||
3380 | end | |
3381 | ||
3382 | end) | |
3383 | game:service("RunService").Stepped:connect(function() | |
3384 | ||
3385 | ||
3386 | if hand6Justicehealth.Health == 0 then | |
3387 | ||
3388 | if hand6JusticehealthDown == false then | |
3389 | hand6JusticehealthDown = true | |
3390 | ||
3391 | Justice:remove() | |
3392 | JusticeAttack = false | |
3393 | JusticeAttackDebounce = false | |
3394 | ||
3395 | ||
3396 | ||
3397 | end | |
3398 | ||
3399 | ||
3400 | end | |
3401 | ||
3402 | end) | |
3403 | game:service("RunService").Stepped:connect(function() | |
3404 | ||
3405 | ||
3406 | if hand7Kindnesshealth.Health == 0 then | |
3407 | ||
3408 | if hand7KindnesshealthDown == false then | |
3409 | hand7KindnesshealthDown = true | |
3410 | ||
3411 | Kindness:remove() | |
3412 | KindnessAttack = false | |
3413 | KindnessAttackDebounce = false | |
3414 | ||
3415 | if ShieldValueToGasterDebounce == false then | |
3416 | ShieldValueToGasterDebounce = true | |
3417 | for i = 1,3 do wait() | |
3418 | shieldparent6.Transparency =shieldparent6.Transparency + 0.1 | |
3419 | shieldparent5.Transparency =shieldparent5.Transparency + 0.1 | |
3420 | shieldparent4.Transparency =shieldparent4.Transparency + 0.1 | |
3421 | shieldparent3.Transparency =shieldparent3.Transparency + 0.1 | |
3422 | shieldparent2.Transparency =shieldparent2.Transparency + 0.1 | |
3423 | shieldparent1.Transparency =shieldparent1.Transparency + 0.1 | |
3424 | end | |
3425 | shieldparent6:remove() | |
3426 | shieldparent5:remove() | |
3427 | shieldparent4:remove() | |
3428 | shieldparent3:remove() | |
3429 | shieldparent2:remove() | |
3430 | shieldparent1:remove() | |
3431 | ||
3432 | shieldparent1=nil | |
3433 | shieldparent2=nil | |
3434 | shieldparent3=nil | |
3435 | shieldparent4=nil | |
3436 | shieldparent5=nil | |
3437 | shieldparent6=nil | |
3438 | ||
3439 | ||
3440 | ||
3441 | ||
3442 | end | |
3443 | ||
3444 | end | |
3445 | ||
3446 | ||
3447 | end | |
3448 | ||
3449 | end) | |
3450 | ||
3451 | char.Humanoid.MaxHealth = 666666666 | |
3452 | wait() | |
3453 | char.Humanoid.Health = 666666666 |