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