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