SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | player = game.Players.0bingo53442 | |
3 | - | player = game.Players.VV_rk |
3 | + | |
4 | debby = game:GetService("Debris") | |
5 | chara.Humanoid.MaxHealth = math.huge | |
6 | chara.Humanoid.Health = math.huge | |
7 | chara.Humanoid.WalkSpeed = 16 | |
8 | chara.Humanoid.JumpPower = 60 | |
9 | ||
10 | --Deleting what we don't want.-- | |
11 | if chara:FindFirstChild("Shirt") ~= nil then | |
12 | chara.Shirt:Destroy() | |
13 | end | |
14 | if chara:FindFirstChild("Pants") ~= nil then | |
15 | chara.Pants:Destroy() | |
16 | end | |
17 | if chara:FindFirstChild("ShirtGraphic") ~= nil then | |
18 | chara.ShirtGraphic:Destroy() | |
19 | end | |
20 | local ch = chara:GetChildren() | |
21 | for i = 1, #ch do | |
22 | if ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" or ch[i].ClassName == "Accessory" then | |
23 | ch[i]:Destroy() | |
24 | elseif ch[i].ClassName == "Part" then | |
25 | ch[i].BrickColor = BrickColor.new("Institutional white") | |
26 | if ch[i].Name == "Torso" then | |
27 | ch[i].roblox.Texture = "" | |
28 | elseif ch[i].Name == "Head" then | |
29 | ch[i].face.Texture = "http://www.roblox.com/asset/?id=679717479" | |
30 | ch[i].Transparency = 1 | |
31 | end | |
32 | end | |
33 | end | |
34 | ||
35 | --Za Clothing-- | |
36 | ||
37 | ||
38 | local fakehead = chara.Head:clone() | |
39 | fakehead.Name = "FakeHead" | |
40 | fakehead.Parent = chara | |
41 | fakehead.Position = chara.Head.Position | |
42 | fakehead.Transparency = 0 | |
43 | fakehead.face.Texture = "http://www.roblox.com/asset/?id=679717621" | |
44 | local fakeweld = Instance.new("Weld",fakehead) | |
45 | fakeweld.Part0 = chara.Head | |
46 | fakeweld.Part1 = fakehead | |
47 | local tail = Instance.new("Part",chara) | |
48 | ||
49 | local sholpad = Instance.new("Part",chara) | |
50 | ||
51 | local cape = Instance.new("Part",chara) | |
52 | ||
53 | local hand1 = Instance.new("Part",chara) | |
54 | hand1.Name = "Hand1" | |
55 | hand1.Size = Vector3.new(.8,.8,.8) | |
56 | hand1.Transparency = 1 | |
57 | hand1.Position = chara["Left Arm"].Position | |
58 | local hand1weld = Instance.new("Weld",hand1) | |
59 | hand1weld.Part0 = chara["Left Arm"] | |
60 | hand1weld.Part1 = hand1 | |
61 | hand1weld.C0 = CFrame.new(0,-1,0) | |
62 | local hand2 = hand1:Clone() | |
63 | hand2.Name = "Hand2" | |
64 | hand2.Parent = chara | |
65 | hand2.Position = chara["Right Arm"].Position | |
66 | local hand2weld = Instance.new("Weld",hand2) | |
67 | hand2weld.Part0 = chara["Right Arm"] | |
68 | hand2weld.Part1 = hand2 | |
69 | hand2weld.C0 = CFrame.new(0,-1,0) | |
70 | local orbuu = Instance.new("Part", chara) | |
71 | orbuu.Size = Vector3.new(0,0,0) | |
72 | orbuu.Name = "DiamondPoint" | |
73 | orbuu.Anchored = true | |
74 | orbuu.CanCollide = false | |
75 | orbuu.Transparency = 1 | |
76 | local orbuur = Instance.new("Part", chara) | |
77 | orbuur.Size = Vector3.new(1,1,1) | |
78 | orbuur.Name = "Diamond" | |
79 | orbuur.Position = chara.Head.Position | |
80 | orbuur.CanCollide = false | |
81 | orbuur.BrickColor = BrickColor.new("Institutional white") | |
82 | orbuur.Reflectance = 1 | |
83 | local orbforce = Instance.new("BodyPosition",orbuur) | |
84 | orbforce.D = 400 | |
85 | local meshooo = Instance.new("SpecialMesh", orbuur) | |
86 | meshooo.MeshType = "FileMesh" | |
87 | meshooo.MeshId = "http://www.roblox.com/asset/?id=9756362" | |
88 | local RotationSpeed = 10 | |
89 | local BobSpeed = 2 | |
90 | local RotationDist = Vector3.new(10, 0, 0) | |
91 | local dt = 0 | |
92 | local currentTime = 0 | |
93 | local laserpoint = orbuu:Clone() | |
94 | laserpoint.Parent = chara | |
95 | laserpoint.Position = chara.Torso.Position | |
96 | laserpoint.Name = "LaserPoint" | |
97 | laserpoint.Anchored = false | |
98 | local lsptweld = Instance.new("Weld",laserpoint) | |
99 | lsptweld.Part0 = chara.Torso | |
100 | lsptweld.Part1 = laserpoint | |
101 | lsptweld.C0 = CFrame.new(0,6,0) | |
102 | ||
103 | --Za Sounds-- | |
104 | local summonsound = Instance.new("Sound", chara.Torso) | |
105 | summonsound.SoundId = "http://www.roblox.com/asset/?id=367850772" | |
106 | summonsound.Volume = 1 | |
107 | local lassnd = Instance.new("Sound", orbuur) | |
108 | lassnd.SoundId = "http://www.roblox.com/asset/?id=228343271" | |
109 | lassnd.Volume = 1 | |
110 | local blastsnd = Instance.new("Sound", chara.Torso) | |
111 | blastsnd.SoundId = "http://www.roblox.com/asset/?id=200633327" | |
112 | blastsnd.Volume = 1 | |
113 | local metsnd = Instance.new("Sound", chara.Torso) | |
114 | metsnd.SoundId = "http://www.roblox.com/asset/?id=367850840" | |
115 | metsnd.Volume = 1 | |
116 | local swdsnd = Instance.new("Sound", chara.Torso) | |
117 | swdsnd.SoundId = "http://www.roblox.com/asset/?id=231917758" | |
118 | swdsnd.Volume = 1 | |
119 | local swd2snd = Instance.new("Sound", chara.Torso) | |
120 | swd2snd.SoundId = "http://www.roblox.com/asset/?id=154965962" | |
121 | swd2snd.Volume = 1 | |
122 | local hitsnd = Instance.new("Sound", chara.Torso) | |
123 | hitsnd.SoundId = "http://www.roblox.com/asset/?id=154965973" | |
124 | hitsnd.Volume = 1 | |
125 | local eckssnd = Instance.new("Sound", chara.Torso) | |
126 | eckssnd.SoundId = "http://www.roblox.com/asset/?id=258057783" | |
127 | eckssnd.Volume = 1 | |
128 | local music1 = Instance.new("Sound", chara.Torso) | |
129 | music1.SoundId = "http://www.roblox.com/asset/?id=547275939" | |
130 | music1.Volume = 1 | |
131 | music1.Looped = true | |
132 | music1:Play() | |
133 | ||
134 | --Za Effects-- | |
135 | color3colour = {BrickColor.new("Really red").Color,BrickColor.new("Neon orange").Color,BrickColor.new("New yeller").Color,BrickColor.new("Lime green").Color,BrickColor.new("Really blue").Color,BrickColor.new("Alder").Color} | |
136 | breekcolour = {BrickColor.new("Really red"),BrickColor.new("Neon orange"),BrickColor.new("New yeller"),BrickColor.new("Lime green"),BrickColor.new("Really blue"),BrickColor.new("Alder")} | |
137 | firecolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.05,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.1,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.15,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(.25,BrickColor.new("Alder").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)} | |
138 | barcolour = {ColorSequenceKeypoint.new(0,BrickColor.new("Really red").Color),ColorSequenceKeypoint.new(.2,BrickColor.new("Neon orange").Color),ColorSequenceKeypoint.new(.4,BrickColor.new("New yeller").Color),ColorSequenceKeypoint.new(.6,BrickColor.new("Lime green").Color),ColorSequenceKeypoint.new(.8,BrickColor.new("Really blue").Color),ColorSequenceKeypoint.new(1,BrickColor.new("Alder").Color)} | |
139 | normallife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)} | |
140 | extendlife = {NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.8,0),NumberSequenceKeypoint.new(1,1)} | |
141 | function createrainbow(color,part,texture,size,trans,life,face,speed,accel,velsp,lock,name) | |
142 | local fira = Instance.new("ParticleEmitter",part) | |
143 | fira.Name = name | |
144 | fira.Color = ColorSequence.new(color) | |
145 | fira.Size = size | |
146 | fira.Texture = texture | |
147 | fira.Transparency = trans | |
148 | fira.Lifetime = life | |
149 | fira.EmissionDirection = face | |
150 | fira.Rate = 100000000 | |
151 | fira.RotSpeed = NumberRange.new(100) | |
152 | fira.Speed = speed | |
153 | fira.VelocitySpread = velsp | |
154 | fira.Acceleration = accel | |
155 | fira.LightEmission = 1 | |
156 | fira.LockedToPart = lock | |
157 | end | |
158 | handfire1 = createrainbow(firecolour,hand1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect") | |
159 | handfire2 = createrainbow(firecolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Right",NumberRange.new(1),Vector3.new(0,2,0),0,false,"FireEffect") | |
160 | createrainbow(barcolour,orbuur,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.8,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Front",NumberRange.new(0),Vector3.new(0,0,0),0,false,"OrbEffect") | |
161 | local spelleffect = Instance.new("ParticleEmitter",chara.Torso) | |
162 | spelleffect.Texture = "http://www.roblox.com/asset/?id=679657454" | |
163 | spelleffect.Speed = NumberRange.new(0) | |
164 | spelleffect.LightEmission = 1 | |
165 | spelleffect.Transparency = NumberSequence.new(normallife) | |
166 | spelleffect.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,10)}) | |
167 | spelleffect.Rate = 0.001 | |
168 | spelleffect.Rotation = NumberRange.new(0,359) | |
169 | spelleffect.RotSpeed = NumberRange.new(100) | |
170 | spelleffect.Lifetime = NumberRange.new(1) | |
171 | createrainbow(barcolour,hand2,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,true,"PowerEffect") | |
172 | powereffect = hand2.PowerEffect | |
173 | powereffect.Enabled = false | |
174 | ||
175 | --Za Name Tag-- | |
176 | local naeeym = Instance.new("BillboardGui",chara) | |
177 | naeeym.Size = UDim2.new(0,0,0,0) | |
178 | naeeym.StudsOffset = Vector3.new(0,0,0) | |
179 | naeeym.Adornee = chara.Head | |
180 | local tecks = Instance.new("TextLabel",naeeym) | |
181 | tecks.BackgroundTransparency = 1 | |
182 | tecks.BorderSizePixel = 0 | |
183 | tecks.Text = "" | |
184 | tecks.Font = "Fantasy" | |
185 | tecks.FontSize = "Size24" | |
186 | tecks.TextStrokeTransparency = 1 | |
187 | tecks.TextColor3 = Color3.new(1,1,1) | |
188 | tecks.TextStrokeColor3 = BrickColor.new("Really red").Color | |
189 | tecks.Size = UDim2.new(1,0,0.5,0) | |
190 | ||
191 | --Za Magic "Circle"-- | |
192 | Void = nil | |
193 | VoidParts = {} | |
194 | Equipped = false | |
195 | Counter = 1 | |
196 | ||
197 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
198 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
199 | end | |
200 | ||
201 | Player = player | |
202 | Character = chara | |
203 | ||
204 | Humanoid = Character:FindFirstChild("Humanoid") | |
205 | Torso = Character:FindFirstChild("Torso") | |
206 | if not Player or not Humanoid or Humanoid.Health == 0 or not chara.Torso then | |
207 | return | |
208 | end | |
209 | Equipped = true | |
210 | Void = Instance.new("Model") | |
211 | Void.Name = "Void" | |
212 | Angle = 0 | |
213 | for i = 1, 1 do | |
214 | local VoidPart = Instance.new("Part") | |
215 | VoidPart.Name = "VoidPart" | |
216 | VoidPart.Transparency = 1 | |
217 | VoidPart.BrickColor = BrickColor.new("Really black") | |
218 | VoidPart.Material = Enum.Material.Plastic | |
219 | VoidPart.Shape = Enum.PartType.Block | |
220 | VoidPart.FormFactor = Enum.FormFactor.Custom | |
221 | VoidPart.TopSurface = Enum.SurfaceType.Smooth | |
222 | VoidPart.BottomSurface = Enum.SurfaceType.Smooth | |
223 | VoidPart.Anchored = true | |
224 | VoidPart.CanCollide = false | |
225 | VoidPart.Locked = true | |
226 | VoidPart.Size = Vector3.new(10, 0.2, 10) | |
227 | fiyer = createrainbow(firecolour,VoidPart,"",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(0.99,0),NumberSequenceKeypoint.new(1,1)}),NumberRange.new(10),"Top",NumberRange.new(2),Vector3.new(0,2,0),0,false,"FireEffect") | |
228 | VoidPart.FireEffect.Rate = 10 | |
229 | local BlockMesh = Instance.new("BlockMesh") | |
230 | BlockMesh.Scale = Vector3.new(1.5,1,1.5) | |
231 | BlockMesh.Parent = VoidPart | |
232 | VoidPart.Parent = Void | |
233 | local Star = Instance.new("Decal", VoidPart) | |
234 | Star.Texture = "" | |
235 | Star.Face = "Top" | |
236 | local Light = Instance.new("PointLight", VoidPart) | |
237 | Light.Color = Color3.new(1,1,1) | |
238 | Light.Brightness = 100 | |
239 | Light.Range = 10 | |
240 | table.insert(VoidParts, VoidPart) | |
241 | end | |
242 | Spawn(function() | |
243 | while Equipped and Humanoid.Parent and Humanoid.Health > 0 and chara do | |
244 | if Angle == 360 then | |
245 | Angle = 0 | |
246 | end | |
247 | Angle = Angle + .05 | |
248 | chara.Humanoid.MaxHealth = math.huge | |
249 | chara.Humanoid.Health = math.huge | |
250 | Counter = Counter + 1 | |
251 | if Counter == 7 then | |
252 | Counter = 1 | |
253 | end | |
254 | tecks.TextStrokeColor3 = color3colour[Counter] | |
255 | fakehead.face.Color3 = color3colour[Counter] | |
256 | Void.VoidPart.Decal.Color3 = color3colour[Counter] | |
257 | Void.VoidPart.PointLight.Color = color3colour[Counter] | |
258 | sholpad.BrickColor = breekcolour[Counter] | |
259 | local parentPos = chara.Torso.CFrame | |
260 | --Rotate Fluffy around the player's head | |
261 | local rotation = CFrame.Angles(0 , RotationSpeed * currentTime, 0) | |
262 | local bob = Vector3.new(0, BobSpeed * math.sin(currentTime), 0) | |
263 | orbuu.CFrame = ((parentPos + bob) + (rotation * RotationDist)) | |
264 | --Wait some time so we aren't going plaid | |
265 | dt, currentTime = wait(1/40) | |
266 | if activebeam == true then | |
267 | orbforce.Position = laserpoint.Position | |
268 | else | |
269 | orbforce.Position = orbuu.Position | |
270 | end | |
271 | local Hit, EndPosition = RayCast(chara.Torso.Position, Vector3.new(0, -1, 0), (chara.Torso.Size.Y * 6.5), {Character}) | |
272 | if Hit then | |
273 | if not Void.Parent then | |
274 | Void.Parent = Character | |
275 | end | |
276 | for i, v in pairs(VoidParts) do | |
277 | v.CFrame = CFrame.new(chara.Torso.Position.X, EndPosition.Y, chara.Torso.Position.Z) * CFrame.Angles(0, (Angle + i), 0) | |
278 | end | |
279 | else | |
280 | Void.Parent = nil | |
281 | end | |
282 | wait() | |
283 | end | |
284 | end) | |
285 | ||
286 | --Za Chatting Function-- | |
287 | function chat(string) | |
288 | --ch = game:GetService("Chat"):Chat(chara.Head, string, "Red") | |
289 | if chara:FindFirstChild("TalkingBillBoard") ~= nil then | |
290 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
291 | end | |
292 | local naeeym2 = Instance.new("BillboardGui",chara) | |
293 | naeeym2.Size = UDim2.new(0,100,0,40) | |
294 | naeeym2.StudsOffset = Vector3.new(0,4,0) | |
295 | naeeym2.Adornee = chara.Head | |
296 | naeeym2.Name = "TalkingBillBoard" | |
297 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
298 | tecks2.BackgroundTransparency = 1 | |
299 | tecks2.BorderSizePixel = 0 | |
300 | tecks2.Text = string | |
301 | tecks2.Font = "Fantasy" | |
302 | tecks2.FontSize = "Size24" | |
303 | tecks2.TextStrokeTransparency = 0 | |
304 | tecks2.TextColor3 = Color3.new(1,1,1) | |
305 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
306 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
307 | debby:AddItem(naeeym2,1) | |
308 | end | |
309 | ||
310 | --Za Tool and Values-- | |
311 | ||
312 | ||
313 | --Za Animations-- | |
314 | local blasta = Instance.new("Animation", tool) | |
315 | blasta.AnimationId = "http://www.roblox.com/asset/?id=86504773" | |
316 | local blastanim = chara.Humanoid:LoadAnimation(blasta) | |
317 | local summona = Instance.new("Animation", tool) | |
318 | summona.AnimationId = "http://www.roblox.com/asset/?id=83994319" | |
319 | local summonanim = chara.Humanoid:LoadAnimation(summona) | |
320 | local spina = Instance.new("Animation", tool) | |
321 | spina.AnimationId = "http://www.roblox.com/asset/?id=235542946" | |
322 | local spinanim = chara.Humanoid:LoadAnimation(spina) | |
323 | ||
324 | --Hurt Function-- | |
325 | function dealdmg(dude,dmg,spread) | |
326 | local finaldmg = dmg + math.random(-spread,spread) | |
327 | dude.Humanoid.Health = dude.Humanoid.Health - finaldmg | |
328 | if chara:FindFirstChild("TalkingBillBoard") ~= nil then | |
329 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
330 | end | |
331 | local naeeym2 = Instance.new("BillboardGui",dude) | |
332 | naeeym2.Size = UDim2.new(0,100,0,40) | |
333 | naeeym2.StudsOffset = Vector3.new(0,math.random(1,5),0) | |
334 | naeeym2.Adornee = dude.Head | |
335 | naeeym2.Name = "TalkingBillBoard" | |
336 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
337 | tecks2.Position = UDim2.new(0,math.random(-50,50),0,math.random(-50,50)) | |
338 | tecks2.BackgroundTransparency = 1 | |
339 | tecks2.BorderSizePixel = 0 | |
340 | tecks2.Text = "-"..finaldmg | |
341 | tecks2.Font = "Fantasy" | |
342 | tecks2.FontSize = "Size12" | |
343 | tecks2.TextStrokeTransparency = 0 | |
344 | tecks2.TextColor3 = Color3.new(1,1,1) | |
345 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
346 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
347 | debby:AddItem(naeeym2,1) | |
348 | end | |
349 | ||
350 | --Heaven's Bolts-- | |
351 | local LIGHTNING_STRIKE_DURATION = 3 | |
352 | local LIGHTNING_STRIKE_COOLDOWN = 0 | |
353 | local LIGHTNING_STRIKE_HEIGHT = 500 | |
354 | local LIGHTNING_STRIKE_LAST_TIME = 0.2 | |
355 | local LIGHTNING_TICK_DAMAGE = 30 | |
356 | ||
357 | function WaitForChild(parent, child) | |
358 | while not parent:FindFirstChild(child) do parent.ChildAdded:wait() end | |
359 | return parent[child] | |
360 | end | |
361 | ||
362 | local Tool2 = tool | |
363 | local Character2 = nil | |
364 | local Humanoid2 = nil | |
365 | local Mouse = nil | |
366 | ||
367 | local KeyDownConn = nil | |
368 | local KeyUpConn = nil | |
369 | ||
370 | ||
371 | local enabled = false | |
372 | Tool2.Enabled = true | |
373 | ||
374 | function checkLightningHit(newLightning, lightningStart, lightningEnd, EffectPart) | |
375 | newLightning.Transparency = 0 | |
376 | newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)] | |
377 | newLightning.Material = Enum.Material.Neon | |
378 | local newLightningSound = Instance.new("Sound", game.Workspace) | |
379 | newLightningSound.SoundId = "http://www.roblox.com/asset/?id=224339201" | |
380 | newLightningSound.Pitch = 1 + math.rad(-.1,.1) | |
381 | newLightningSound.Volume = 1 | |
382 | newLightningSound.PlayOnRemove = true | |
383 | newLightningSound:Destroy() | |
384 | ||
385 | local hitParts = workspace:FindPartsInRegion3(Region3.new(lightningEnd - Vector3.new(2, 0, 2), lightningStart + Vector3.new(2, 0, 2))) | |
386 | ||
387 | --local hitPart = workspace:FindPartOnRay(lightningRay, newLightning) | |
388 | local hitHums = {} | |
389 | for _, hitPart in pairs(hitParts) do | |
390 | if hitPart then | |
391 | local char = hitPart.Parent | |
392 | if char and char.Parent then | |
393 | if not char:FindFirstChild("Humanoid") then char = char.Parent end | |
394 | local hum = char:FindFirstChild("Humanoid") | |
395 | if hum and not hitHums[hum] then | |
396 | if hum.Health > 0 then | |
397 | end | |
398 | hitHums[hum] = true | |
399 | dealdmg(char,30,5) | |
400 | end | |
401 | end | |
402 | end | |
403 | end | |
404 | ||
405 | wait(.1) | |
406 | EffectPart.PowerEffect.Enabled = false | |
407 | newLightning.Transparency = .25 | |
408 | newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)] | |
409 | wait(.1) | |
410 | newLightning.Transparency = .5 | |
411 | newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)] | |
412 | newLightning.Mesh.Scale = newLightning.Mesh.Scale - Vector3.new(1,0,1) | |
413 | wait(.1) | |
414 | newLightning.Transparency = .75 | |
415 | newLightning.BrickColor = breekcolour[math.random(1,#breekcolour)] | |
416 | newLightning.Mesh.Scale = newLightning.Mesh.Scale - Vector3.new(1,0,1) | |
417 | wait(.1) | |
418 | newLightning:Remove() | |
419 | newLightningSound:destroy() | |
420 | end | |
421 | ||
422 | function MakeLightningAt(targetPoint) | |
423 | print("make lightning at") | |
424 | local lightningStart = targetPoint + Vector3.new(0, LIGHTNING_STRIKE_HEIGHT, 0) | |
425 | local lightningRay = Ray.new(lightningStart, Vector3.new(0, -LIGHTNING_STRIKE_HEIGHT - 50, 0)) | |
426 | local lightningHitPart, lightningEnd = workspace:FindPartOnRay(lightningRay) | |
427 | ||
428 | local ignoreTable = {} | |
429 | while (lightningHitPart and lightningHitPart.Parent and lightningHitPart.Parent:FindFirstChild("Humanoid")) or (lightningHitPart and lightningHitPart.Parent and lightningHitPart.Parent.Parent and lightningHitPart.Parent.Parent:FindFirstChild("Humanoid")) do | |
430 | table.insert(ignoreTable, lightningHitPart) | |
431 | lightningHitPart, lightningEnd = workspace:FindPartOnRayWithIgnoreList(lightningRay, ignoreTable) | |
432 | end | |
433 | ||
434 | if lightningHitPart then | |
435 | print("actually making some lightning") | |
436 | local EffectPart = Instance.new("Part",game.Workspace) | |
437 | EffectPart.Size = Vector3.new(1,1,1) | |
438 | EffectPart.Anchored = true | |
439 | EffectPart.Transparency = 1 | |
440 | EffectPart.Position = targetPoint | |
441 | debby:AddItem(EffectPart,3) | |
442 | createrainbow(barcolour,EffectPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(5),NumberSequence.new(normallife),NumberRange.new(1),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect") | |
443 | -- make the lightning from lightningStart to lightningEnd, electrocutin' lightningHitPart | |
444 | local newLightning = Instance.new("Part") | |
445 | newLightning.Size = Vector3.new(1, 1, 1) | |
446 | --newLightning.Size = Vector3.new(2, lightningStart.Y - lightningEnd.Y, 2) | |
447 | newLightning.Transparency = .8 | |
448 | newLightning.Anchored = false | |
449 | newLightning.BrickColor = BrickColor.new("Really red") -- Toothpaste | |
450 | ||
451 | local newCylinderMesh = Instance.new("BlockMesh") | |
452 | newCylinderMesh.Scale = Vector3.new(3, lightningStart.Y - lightningEnd.Y, 3) | |
453 | newCylinderMesh.Parent = newLightning | |
454 | ||
455 | local newLightningFloatForce = Instance.new("BodyForce") | |
456 | newLightningFloatForce.force = Vector3.new(0, newLightning:GetMass()*196.2, 0) | |
457 | newLightningFloatForce.Parent = newLightning | |
458 | ||
459 | local newBAV = Instance.new("BodyAngularVelocity") | |
460 | newBAV.angularvelocity = Vector3.new(0, 10, 0) | |
461 | newBAV.P = 1000 | |
462 | newBAV.maxTorque = Vector3.new(0, newBAV.P, 0) | |
463 | newBAV.Parent = newLightning | |
464 | ||
465 | newLightning.CanCollide = false | |
466 | newLightning.CFrame = CFrame.new((lightningStart + lightningEnd) / 2) | |
467 | ||
468 | -- for _, blockFace in pairs(BLOCK_FACES) do | |
469 | -- local newLightningDecal = LightningDecal:Clone() | |
470 | -- newLightningDecal.Face = blockFace | |
471 | -- newLightningDecal.Parent = newLightning | |
472 | -- end | |
473 | ||
474 | newLightning.Parent = workspace | |
475 | -- game:GetService("Debris"):AddItem(newLightning, LIGHTNING_STRIKE_LAST_TIME+.2) | |
476 | -- delay(LIGHTNING_STRIKE_LAST_TIME, function() checkLightningHit(newLightning, lightningRay) end) | |
477 | delay(LIGHTNING_STRIKE_LAST_TIME, function() checkLightningHit(newLightning, lightningStart, lightningEnd, EffectPart) end) | |
478 | -- for i = 0, 4 do | |
479 | -- delay(i*LIGHTNING_STRIKE_LAST_TIME/4, function() checkLightningHit(newLightning, lightningRay) end) | |
480 | -- end | |
481 | return true | |
482 | else | |
483 | return false | |
484 | end | |
485 | end | |
486 | ||
487 | local lightningStrikeCoroutine = nil | |
488 | local lightningButtonDown = false | |
489 | function LightningStrike() | |
490 | print("lightningStrike") | |
491 | local startTime = tick() | |
492 | while tick() - startTime < LIGHTNING_STRIKE_DURATION do | |
493 | if Mouse and lightningButtonDown then | |
494 | local mouseHit = Mouse.Hit | |
495 | if mouseHit and MakeLightningAt(mouseHit.p) then wait(.05) end | |
496 | end | |
497 | wait() | |
498 | end | |
499 | wait(LIGHTNING_STRIKE_COOLDOWN) | |
500 | Tool2.Enabled = true | |
501 | powereffect.Enabled = false | |
502 | summonanim:Stop() | |
503 | lightningStrikeCoroutine = nil | |
504 | end | |
505 | ||
506 | --Beam of Purity-- | |
507 | Tool3 = tool | |
508 | Me = chara | |
509 | SHOOTOH = true | |
510 | on = true | |
511 | mode = true | |
512 | local force = Instance.new("BodyPosition") | |
513 | force.Parent = nil | |
514 | local P2 = Instance.new("Part") | |
515 | P2.formFactor = 0 | |
516 | P2.Parent = nil | |
517 | P2.BrickColor = BrickColor.new("White") | |
518 | P2.Anchored = true | |
519 | P2.CanCollide = false | |
520 | P2.TopSurface = "Smooth" | |
521 | P2.BottomSurface = "Smooth" | |
522 | P2.Name = "Laser" | |
523 | function explodtouch(hit) | |
524 | if hit.Parent:FindFirstChild("Humanoid")~=nil then | |
525 | dealdmg(hit.Parent,5,3) | |
526 | end | |
527 | end | |
528 | function Click(mouse) | |
529 | if (SHOOTOH == true) then | |
530 | SHOOTOH = false | |
531 | local EffectPart = Instance.new("Part",game.Workspace) | |
532 | EffectPart.Size = Vector3.new(1,1,1) | |
533 | EffectPart.Anchored = true | |
534 | EffectPart.Transparency = 1 | |
535 | createrainbow(barcolour,EffectPart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(5),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect") | |
536 | lassnd:Play() | |
537 | for i = 1,30 do | |
538 | local P = Instance.new("Part") | |
539 | local Place0 = CFrame.new(orbuur.CFrame.x,orbuur.CFrame.y,orbuur.CFrame.z) | |
540 | local Place1 = Mouse.Hit.p | |
541 | EffectPart.Position = Place1 | |
542 | local meshla = Instance.new("BlockMesh", P) | |
543 | meshla.Scale = Vector3.new(1,1,1) | |
544 | P.formFactor = 0 | |
545 | P.Size = Vector3.new(1,1,(Place0.p - Place1).magnitude) | |
546 | P.Name = "Laser" | |
547 | P.CFrame = CFrame.new((Place0.p + Place1)/2,Place0.p) | |
548 | P.Parent = game.Workspace | |
549 | P.BrickColor = BrickColor.new("Institutional white") | |
550 | P.Material = "Neon" | |
551 | P.Anchored = true | |
552 | P.CanCollide = false | |
553 | P.Locked = true | |
554 | P.BottomSurface = "Smooth" | |
555 | P.TopSurface = "Smooth" | |
556 | local E = Instance.new("Explosion") | |
557 | E.Position = Place1 | |
558 | E.Parent = game.Workspace | |
559 | E.BlastPressure = 0 | |
560 | E.Visible = false | |
561 | E.Hit:connect(explodtouch) | |
562 | wait(0.01) | |
563 | P:remove() | |
564 | end | |
565 | ---- | |
566 | EffectPart.PowerEffect.Enabled = false | |
567 | wait(1) | |
568 | SHOOTOH = true | |
569 | EffectPart:Destroy() | |
570 | local cheeld = script:GetChildren() | |
571 | tool.Enabled = true | |
572 | summonanim:Stop() | |
573 | powereffect.Enabled = false | |
574 | activebeam = false | |
575 | end | |
576 | end | |
577 | ||
578 | --Holy Blast-- | |
579 | function fire(v) | |
580 | local vCharacter = chara | |
581 | local vPlayer = game.Players:playerFromCharacter(vCharacter) | |
582 | local missile = Instance.new("Part",game.Workspace) | |
583 | local spawnPos = orbuur.Position | |
584 | missile.Position = spawnPos | |
585 | missile.Material = "Neon" | |
586 | missile.Size = Vector3.new(1,1,1) | |
587 | missile.Velocity = v * 100 | |
588 | missile.BrickColor = BrickColor.new("Institutional white") | |
589 | missile.Shape = 1 | |
590 | missile.Name = "Blast" | |
591 | createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect") | |
592 | --createrainbow(barcolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(1),NumberSequence.new(normallife),NumberRange.new(.5),"Front",NumberRange.new(10),Vector3.new(0,0,0),1000,false,"PowerEffect") | |
593 | --missile.PowerEffect.Enabled = false | |
594 | local mesh1 = Instance.new("SpecialMesh",missile) | |
595 | mesh1.MeshType = "Sphere" | |
596 | local force = Instance.new("BodyForce") | |
597 | force.force = Vector3.new(0,missile:GetMass()*196.2,0) | |
598 | force.Parent = missile | |
599 | missile.Touched:connect(function (hit) | |
600 | if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then | |
601 | missile.Anchored = true | |
602 | missile.CanCollide = false | |
603 | missile.FireEffect:Destroy() | |
604 | --missile.PowerEffect.Enabled = true | |
605 | local E = Instance.new("Explosion") | |
606 | E.Position = missile.Position | |
607 | E.Parent = game.Workspace | |
608 | E.BlastPressure = 0 | |
609 | E.Visible = false | |
610 | E.Hit:connect(explodtouch) | |
611 | wait(0.1) | |
612 | --missile.PowerEffect.Enabled = false | |
613 | missile.Transparency = .25 | |
614 | missile.Mesh.Scale = Vector3.new(1.5,1.5,1.5) | |
615 | wait(0.1) | |
616 | missile.Transparency = .5 | |
617 | missile.Mesh.Scale = Vector3.new(2,2,2) | |
618 | wait(0.1) | |
619 | missile.Transparency = .75 | |
620 | missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5) | |
621 | wait(0.1) | |
622 | missile:Destroy() | |
623 | end | |
624 | end) | |
625 | debby:AddItem(missile,10) | |
626 | end | |
627 | ||
628 | --Gaia Shatterer-- | |
629 | function meteorfire(v) | |
630 | local vCharacter = chara | |
631 | local vPlayer = game.Players:playerFromCharacter(vCharacter) | |
632 | local missile = Instance.new("Part",game.Workspace) | |
633 | local spawnPos = chara.Head.Position + Vector3.new(0,100,0) | |
634 | missile.Position = spawnPos | |
635 | missile.Material = "Neon" | |
636 | missile.Size = Vector3.new(5,5,5) | |
637 | missile.Velocity = v * 100 | |
638 | missile.BrickColor = BrickColor.new("Institutional white") | |
639 | missile.Shape = 1 | |
640 | missile.Name = "Blast" | |
641 | createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(5),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect") | |
642 | createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(10),NumberSequence.new(normallife),NumberRange.new(5),"Front",NumberRange.new(30),Vector3.new(0,0,0),1000,false,"PowerEffect") | |
643 | missile.PowerEffect.Enabled = false | |
644 | local mesh1 = Instance.new("SpecialMesh",missile) | |
645 | mesh1.MeshType = "Sphere" | |
646 | mesh1.Scale = Vector3.new(2,2,2) | |
647 | local force = Instance.new("BodyForce") | |
648 | force.force = Vector3.new(0,missile:GetMass()*196.2,0) | |
649 | force.Parent = missile | |
650 | missile.Touched:connect(function (hit) | |
651 | if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then | |
652 | missile.Anchored = true | |
653 | missile.CanCollide = false | |
654 | missile.FireEffect:Destroy() | |
655 | missile.PowerEffect.Enabled = true | |
656 | local exsnd = Instance.new("Sound",missile) | |
657 | exsnd.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
658 | exsnd.Volume = 1 | |
659 | exsnd.PlayOnRemove = true | |
660 | exsnd:Destroy() | |
661 | local E = Instance.new("Explosion") | |
662 | E.Position = missile.Position | |
663 | E.Parent = game.Workspace | |
664 | E.BlastPressure = 0 | |
665 | E.BlastRadius = 15 | |
666 | E.Visible = false | |
667 | E.Hit:connect(explodtouch2) | |
668 | wait(0.1) | |
669 | missile.Transparency = .25 | |
670 | missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5) | |
671 | wait(0.1) | |
672 | missile.Transparency = .5 | |
673 | missile.Mesh.Scale = Vector3.new(3,3,3) | |
674 | wait(0.1) | |
675 | missile.Transparency = .75 | |
676 | missile.Mesh.Scale = Vector3.new(3.5,3.5,3.5) | |
677 | wait(0.1) | |
678 | missile.PowerEffect.Enabled = false | |
679 | missile.Transparency = 1 | |
680 | wait(6) | |
681 | missile:Destroy() | |
682 | end | |
683 | end) | |
684 | debby:AddItem(missile,10) | |
685 | end | |
686 | function meteor2fire(v) | |
687 | local vCharacter = chara | |
688 | local vPlayer = game.Players:playerFromCharacter(vCharacter) | |
689 | local missile = Instance.new("Part",game.Workspace) | |
690 | local spawnPos = chara.Head.Position + Vector3.new(0,100,0) | |
691 | missile.Position = spawnPos | |
692 | missile.Material = "Neon" | |
693 | missile.Size = Vector3.new(10,10,10) | |
694 | missile.Velocity = v * 50 | |
695 | missile.BrickColor = BrickColor.new("Institutional white") | |
696 | missile.Shape = 1 | |
697 | missile.Name = "Blast" | |
698 | createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,15),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(5),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect") | |
699 | createrainbow(firecolour,missile,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new(15),NumberSequence.new(normallife),NumberRange.new(5),"Front",NumberRange.new(50),Vector3.new(0,0,0),1000,false,"PowerEffect") | |
700 | missile.PowerEffect.Enabled = false | |
701 | local mesh1 = Instance.new("SpecialMesh",missile) | |
702 | mesh1.MeshType = "Sphere" | |
703 | mesh1.Scale = Vector3.new(2,2,2) | |
704 | local force = Instance.new("BodyForce") | |
705 | force.force = Vector3.new(0,missile:GetMass()*196.2,0) | |
706 | force.Parent = missile | |
707 | missile.Touched:connect(function (hit) | |
708 | if (hit ~= orbuur and hit ~= orbuu and hit ~= laserpoint and hit.Name ~= "Blast" and missile.Anchored == false) then | |
709 | missile.Anchored = true | |
710 | missile.CanCollide = false | |
711 | missile.FireEffect:Destroy() | |
712 | missile.PowerEffect.Enabled = true | |
713 | local exsnd = Instance.new("Sound",missile) | |
714 | exsnd.SoundId = "http://www.roblox.com/asset/?id=142070127" | |
715 | exsnd.Volume = 1 | |
716 | exsnd.Pitch = 0.5 | |
717 | exsnd.PlayOnRemove = true | |
718 | exsnd:Destroy() | |
719 | local E = Instance.new("Explosion") | |
720 | E.Position = missile.Position | |
721 | E.Parent = game.Workspace | |
722 | E.BlastPressure = 0 | |
723 | E.BlastRadius = 30 | |
724 | E.Visible = false | |
725 | E.Hit:connect(explodtouch3) | |
726 | wait(0.1) | |
727 | missile.Transparency = .25 | |
728 | missile.Mesh.Scale = Vector3.new(2.5,2.5,2.5) | |
729 | wait(0.1) | |
730 | missile.Transparency = .5 | |
731 | missile.Mesh.Scale = Vector3.new(3,3,3) | |
732 | wait(0.1) | |
733 | missile.Transparency = .75 | |
734 | missile.Mesh.Scale = Vector3.new(3.5,3.5,3.5) | |
735 | wait(0.1) | |
736 | missile.PowerEffect.Enabled = false | |
737 | missile.Transparency = 1 | |
738 | wait(6) | |
739 | missile:Destroy() | |
740 | end | |
741 | end) | |
742 | debby:AddItem(missile,20) | |
743 | end | |
744 | function explodtouch2(hit) | |
745 | if hit.Parent:FindFirstChild("Humanoid")~=nil then | |
746 | dealdmg(hit.Parent,10,5) | |
747 | end | |
748 | end | |
749 | function explodtouch3(hit) | |
750 | if hit.Parent:FindFirstChild("Humanoid")~=nil then | |
751 | dealdmg(hit.Parent,20,5) | |
752 | end | |
753 | end | |
754 | ||
755 | --Swords of Light-- | |
756 | function swordsummon() | |
757 | spinanim:Play() | |
758 | local sword1 = Instance.new("Part",chara) | |
759 | sword1.Size = Vector3.new(1,10,1) | |
760 | sword1.BottomSurface = 0 | |
761 | sword1.TopSurface = 1 | |
762 | sword1.BrickColor = BrickColor.new("Institutional white") | |
763 | sword1.Reflectance = 1 | |
764 | sword1.CanCollide = false | |
765 | sword1.Position = chara["Left Arm"].Position | |
766 | local swordmesh = Instance.new("SpecialMesh",sword1) | |
767 | swordmesh.MeshId = "http://www.roblox.com/asset/?id=181327453" | |
768 | swordmesh.Offset = Vector3.new(0,-1,0) | |
769 | swordmesh.Scale = Vector3.new(3,3,3) | |
770 | createrainbow(firecolour,sword1,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,.4),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(1),"Left",NumberRange.new(0),Vector3.new(0,0,0),0,false,"FireEffect") | |
771 | local sword2 = sword1:Clone() | |
772 | sword2.Parent = chara | |
773 | sword2.Position = chara["Right Arm"].Position | |
774 | local sw1weld = Instance.new("Weld",sword1) | |
775 | sw1weld.Part0 = chara["Left Arm"] | |
776 | sw1weld.Part1 = sword1 | |
777 | sw1weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0) | |
778 | sw1weld.C0 = CFrame.new(0,10,0) | |
779 | local sw2weld = Instance.new("Weld",sword2) | |
780 | sw2weld.Part0 = chara["Right Arm"] | |
781 | sw2weld.Part1 = sword2 | |
782 | sw2weld.C0 = CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0) | |
783 | sw2weld.C0 = CFrame.new(0,10,0) | |
784 | sword1.Touched:connect(swordTouched) | |
785 | sword2.Touched:connect(swordTouched) | |
786 | for i = 1, 20 do | |
787 | wait(0.5) | |
788 | swdsnd:Play() | |
789 | swd2snd:Play() | |
790 | end | |
791 | sword1.FireEffect.Enabled = false | |
792 | sword2.FireEffect.Enabled = false | |
793 | wait(1) | |
794 | sword1.FireEffect:Destroy() | |
795 | sword2.FireEffect:Destroy() | |
796 | wait(.5) | |
797 | sword1.Transparency = 0.5 | |
798 | sword2.Transparency = 0.5 | |
799 | wait(.1) | |
800 | sword1:Destroy() | |
801 | sword2:Destroy() | |
802 | spinanim:Stop() | |
803 | tool.Enabled = true | |
804 | end | |
805 | function swordTouched(hit) | |
806 | if hit.Parent:FindFirstChild("Humanoid")~=nil then | |
807 | dealdmg(hit.Parent,10,5) | |
808 | hitsnd:Play() | |
809 | end | |
810 | end | |
811 | ||
812 | --Grab-- | |
813 | function grabTouch(hit) | |
814 | if activegrab == true and didgrab == false then | |
815 | if hit.Parent:FindFirstChild("Humanoid")~=nil and hit.Parent ~= chara then | |
816 | local standstillf = nil | |
817 | activegrab = false | |
818 | didgrab = true | |
819 | powereffect.Enabled = false | |
820 | summonanim:Stop() | |
821 | local hitdude = hit.Parent | |
822 | hitdude.Humanoid.Health = 100 | |
823 | hitdude.Humanoid.MaxHealth = 100 | |
824 | hitdude.Humanoid.PlatformStand = true | |
825 | hitdude.Humanoid.WalkSpeed = 0 | |
826 | chara.Humanoid.WalkSpeed = 0 | |
827 | if hitdude:FindFirstChild("Torso") ~= nil then | |
828 | hitdude.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5) | |
829 | local standstill = Instance.new("BodyPosition", hitdude.Torso) | |
830 | standstill.Position = hitdude.Torso.Position | |
831 | standstillf = standstill | |
832 | end | |
833 | --if hitdude:FindFirstChild("Left Arm") ~= nil then | |
834 | --hitdude["Left Arm"]:destroy() | |
835 | --end | |
836 | --if hitdude:FindFirstChild("Right Arm") ~= nil then | |
837 | --hitdude["Right Arm"]:destroy() | |
838 | --end | |
839 | local spellcirclepart = Instance.new("Part",chara) | |
840 | spellcirclepart.Size = Vector3.new(1,1,1) | |
841 | spellcirclepart.Anchored = true | |
842 | spellcirclepart.Transparency = 1 | |
843 | spellcirclepart.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*5) - Vector3.new(0,2.5,0) | |
844 | local spreadpart = Instance.new("Part",chara) | |
845 | spreadpart.Size = Vector3.new(1,1,1) | |
846 | spreadpart.Anchored = true | |
847 | spreadpart.Transparency = 1 | |
848 | spreadpart.CFrame = spellcirclepart.CFrame + Vector3.new(0,100,0) | |
849 | local scmesh = Instance.new("BlockMesh",spellcirclepart) | |
850 | scmesh.Scale = Vector3.new(1,1.1,1) | |
851 | local scdec = Instance.new("Decal",spellcirclepart) | |
852 | scdec.Texture = "http://www.roblox.com/asset/?id=685910499" | |
853 | scdec.Face = "Top" | |
854 | scdec.Transparency = 1 | |
855 | local lite = Instance.new("PointLight",spellcirclepart) | |
856 | lite.Enabled = false | |
857 | lite.Brightness = 100 | |
858 | chat("You are not going away...") | |
859 | wait(1) | |
860 | chara.Torso.CFrame = chara.Torso.CFrame + (chara.Torso.CFrame.lookVector*50) | |
861 | wait(1) | |
862 | summonanim:Play() | |
863 | summonsound:Play() | |
864 | activebeam = true | |
865 | powereffect.Texture = "http://www.roblox.com/asset/?id=454403109" | |
866 | powereffect.Enabled = true | |
867 | standstillf.Position = standstillf.Position + Vector3.new(0,10,0) | |
868 | scdec.Transparency = 0.9 | |
869 | lite.Enabled = true | |
870 | lite.Range = 1 | |
871 | for i = 1, 19 do | |
872 | wait(.05) | |
873 | scmesh.Scale = scmesh.Scale + Vector3.new(1,0,1) | |
874 | scdec.Transparency = scdec.Transparency - 0.05 | |
875 | lite.Range = lite.Range + 1 | |
876 | end | |
877 | wait(1) | |
878 | chat("Crucify.") | |
879 | wait(.5) | |
880 | lassnd:Play() | |
881 | eckssnd:Play() | |
882 | createrainbow(barcolour,spellcirclepart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.75),"Top",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect") | |
883 | createrainbow(barcolour,spreadpart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.25),"Right",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect") | |
884 | createrainbow(barcolour,spreadpart,"rbxasset://textures/particles/smoke_main.dds",NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(.9,10),NumberSequenceKeypoint.new(1,0)}),NumberSequence.new(extendlife),NumberRange.new(.25),"Left",NumberRange.new(200),Vector3.new(0,0,0),0,false,"FireEffect2") | |
885 | for i = 1, 10 do | |
886 | dealdmg(hitdude,666,0) | |
887 | end | |
888 | for i = 1, 9 do | |
889 | wait(.1) | |
890 | local che = hitdude:GetChildren() | |
891 | for i = 1, #che do | |
892 | if che[i].ClassName == "Part" then | |
893 | che[i].Transparency = che[i].Transparency + .1 | |
894 | end | |
895 | end | |
896 | end | |
897 | wait(.1) | |
898 | local che = hitdude:GetChildren() | |
899 | for i = 1, #che do | |
900 | if che[i].ClassName == "Part" then | |
901 | che[i]:Destroy() | |
902 | end | |
903 | end | |
904 | wait(3) | |
905 | spellcirclepart.FireEffect.Enabled = false | |
906 | spreadpart.FireEffect.Enabled = false | |
907 | spreadpart.FireEffect2.Enabled = false | |
908 | for i = 1, 19 do | |
909 | wait(.05) | |
910 | scmesh.Scale = scmesh.Scale - Vector3.new(1,0,1) | |
911 | scdec.Transparency = scdec.Transparency + 0.05 | |
912 | lite.Range = lite.Range - 1 | |
913 | end | |
914 | wait(.05) | |
915 | spellcirclepart:Destroy() | |
916 | spreadpart:Destroy() | |
917 | summonanim:Stop() | |
918 | activebeam = false | |
919 | powereffect.Enabled = false | |
920 | tool.Enabled = true | |
921 | chara.Humanoid.WalkSpeed = 50 | |
922 | didgrab = false | |
923 | end | |
924 | end | |
925 | end | |
926 | chara["Right Arm"].Touched:connect(grabTouch) | |
927 | ||
928 | --Equip Unequip and Keys Function-- | |
929 | ||
930 | function keydowns(key) | |
931 | if tool.Enabled == true then | |
932 | if key == "" then | |
933 | tool.Enabled = false | |
934 | chat("Swords of Light!") | |
935 | summonsound:Play() | |
936 | swordsummon() | |
937 | end | |
938 | if key == "" then | |
939 | summonanim:Play() | |
940 | summonsound:Play() | |
941 | chat("Heaven's Bolts!") | |
942 | powereffect.Texture = "http://www.roblox.com/asset/?id=14459921" | |
943 | powereffect.Enabled = true | |
944 | tool.Enabled = false | |
945 | wait(2) | |
946 | if not lightningStrikeCoroutine then | |
947 | lightningStrikeCoroutine = coroutine.create(LightningStrike) | |
948 | coroutine.resume(lightningStrikeCoroutine) | |
949 | end | |
950 | lightningButtonDown = true | |
951 | end | |
952 | if key == "" then | |
953 | summonanim:Play() | |
954 | summonsound:Play() | |
955 | activebeam = true | |
956 | chat("Beam of Purity!") | |
957 | powereffect.Texture = "rbxasset://textures/particles/sparkles_main.dds" | |
958 | powereffect.Enabled = true | |
959 | tool.Enabled = false | |
960 | wait(2) | |
961 | Click() | |
962 | end | |
963 | if key == "" then | |
964 | summonanim:Play() | |
965 | summonsound:Play() | |
966 | activebeam = true | |
967 | chat("Holy Blast!") | |
968 | powereffect.Texture = "http://www.roblox.com/asset/?id=224413104" | |
969 | powereffect.Enabled = true | |
970 | tool.Enabled = false | |
971 | wait(2) | |
972 | for i = 1, 6 do | |
973 | wait(0.2) | |
974 | local saund = blastsnd:Clone() | |
975 | saund.Parent = orbuur | |
976 | saund.PlayOnRemove = true | |
977 | saund:Destroy() | |
978 | local targetPos = chara.Humanoid.TargetPoint | |
979 | local lookAt = (targetPos - orbuur.Position).unit | |
980 | fire(lookAt) | |
981 | end | |
982 | summonanim:Stop() | |
983 | activebeam = false | |
984 | powereffect.Enabled = false | |
985 | tool.Enabled = true | |
986 | end | |
987 | if key == "" then | |
988 | summonanim:Play() | |
989 | summonsound:Play() | |
990 | chat("Gaia Shatterer!") | |
991 | powereffect.Texture = "http://www.roblox.com/asset/?id=26356341" | |
992 | powereffect.Enabled = true | |
993 | tool.Enabled = false | |
994 | wait(2) | |
995 | for i = 1, 5 do | |
996 | wait(0.5) | |
997 | local saund = metsnd:Clone() | |
998 | saund.Parent = orbuur | |
999 | saund.PlayOnRemove = true | |
1000 | saund:Destroy() | |
1001 | local targetPos = chara.Humanoid.TargetPoint | |
1002 | local lookAt = (targetPos - (chara.Head.Position + Vector3.new(0,100,0))).unit | |
1003 | meteorfire(lookAt) | |
1004 | end | |
1005 | wait(0.7) | |
1006 | local saund = metsnd:Clone() | |
1007 | saund.Parent = orbuur | |
1008 | saund.Pitch = 0.5 | |
1009 | saund.PlayOnRemove = true | |
1010 | saund:Destroy() | |
1011 | local targetPos = chara.Humanoid.TargetPoint | |
1012 | local lookAt = (targetPos - (chara.Head.Position + Vector3.new(0,100,0))).unit | |
1013 | meteor2fire(lookAt) | |
1014 | wait(1) | |
1015 | summonanim:Stop() | |
1016 | powereffect.Enabled = false | |
1017 | tool.Enabled = true | |
1018 | end | |
1019 | if key == "" then | |
1020 | activegrab = true | |
1021 | summonanim:Play() | |
1022 | summonsound:Play() | |
1023 | chat("Get over here...") | |
1024 | powereffect.Texture = "http://www.roblox.com/asset/?id=224413104" | |
1025 | powereffect.Enabled = true | |
1026 | tool.Enabled = false | |
1027 | wait(5) | |
1028 | if didgrab == false then | |
1029 | chat("Agh.") | |
1030 | powereffect.Enabled = false | |
1031 | tool.Enabled = true | |
1032 | summonanim:Stop() | |
1033 | activegrab = false | |
1034 | elseif didgrab == true then | |
1035 | end | |
1036 | end | |
1037 | if key == "" then | |
1038 | if music == false then | |
1039 | music1:Play() | |
1040 | music = true | |
1041 | elseif music == true then | |
1042 | music1:Stop() | |
1043 | music = false | |
1044 | end | |
1045 | end | |
1046 | end | |
1047 | end | |
1048 | ||
1049 | function onEquipped(mouse) | |
1050 | print("onEquipped") | |
1051 | Mouse = player:GetMouse() | |
1052 | if not Mouse then return end | |
1053 | if Mouse then Mouse.KeyDown:connect(keydowns) end | |
1054 | Character2 = chara | |
1055 | Humanoid2 = Character:FindFirstChild("Humanoid") | |
1056 | Torso2 = Character:FindFirstChild("Torso") | |
1057 | if Humanoid2 and Torso2 then | |
1058 | end | |
1059 | end | |
1060 | ||
1061 | function onUnequipped() | |
1062 | print("onUnequipped") | |
1063 | ||
1064 | Torso2 = nil | |
1065 | Humanoid2 = nil | |
1066 | Character2 = nil | |
1067 | Mouse = nil | |
1068 | end | |
1069 | ||
1070 | tool.Equipped:connect(onEquipped) | |
1071 | tool.Unequipped:connect(onUnequipped) |