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