SHOW:
|
|
- or go back to the newest paste.
1 | --[[ENTER YOUR NAME WHERE IT SAYS YOURNAMEHERE]]-- | |
2 | --[[Made and Leeked by EvilDarkSword123]]-- | |
3 | - | playerstaff = game.Players:findFirstChild.YOURNAMEHERE |
3 | + | playerstaff = game.Players:findFirstChild.fartboyfartboy |
4 | ||
5 | if script.Parent.className ~= "HopperBin" then | |
6 | h = Instance.new("HopperBin") | |
7 | local admin = playerstaff | |
8 | h.Name = "LightningGuardian" | |
9 | script.Parent = h | |
10 | h.Parent = admin.Backpack | |
11 | end | |
12 | ||
13 | bin = script.Parent | |
14 | player = bin.Parent.Parent.Character | |
15 | rarm = player["Right Arm"] | |
16 | larm = player["Left Arm"] | |
17 | player.Humanoid.MaxHealth = 999999999 | |
18 | player.Humanoid.Health = 999999999 | |
19 | visible = true | |
20 | parts = {} | |
21 | ||
22 | function Check(pos) | |
23 | local hurt = false | |
24 | local players = game.Players:GetChildren() | |
25 | for i = 1, #players do | |
26 | if players[i].Character and hurt == false then | |
27 | local parts = players[i].Character:GetChildren() | |
28 | for q = 1, #parts do | |
29 | if parts[q].className == "Part" and hurt == false then | |
30 | local range = math.sqrt(math.pow(parts[q].Size.Z, 2) + math.sqrt(math.pow(parts[q].Size.X, 2) + math.pow(parts[q].Size.Y, 2))) | |
31 | if (found - parts[q].Position).magnitude <= range then | |
32 | hurt = true | |
33 | character = parts[q].Parent | |
34 | humanoid = character.Humanoid | |
35 | character.Torso.CFrame = character.Torso.CFrame*CFrame.Angles(80,80,80)--Oen, here you put what you want it to do. For example, humanoid:TakeDamage(25) :D | |
36 | humanoid:TakeDamage(999999999999999999) | |
37 | humanoid.Sit = true | |
38 | end | |
39 | end | |
40 | end | |
41 | end | |
42 | end | |
43 | end | |
44 | ||
45 | function clean(min,thing2) | |
46 | while min.Humanoid.Health ~= 0 do | |
47 | local a = game.Players:GetChildren() | |
48 | for i = 1, #a do | |
49 | wait() | |
50 | if (a[i].Character.Torso.Position - thing2.Position).magnitude < 99999999 then | |
51 | a[i].Character.Humanoid:TakeDamage(99999999) | |
52 | end | |
53 | end | |
54 | wait() | |
55 | end | |
56 | min:remove() | |
57 | end | |
58 | ||
59 | function fire(v) | |
60 | local spawnPos = (tip2.CFrame * CFrame.new(0, 1, 0)).p | |
61 | local HitSpot = RayCast(spawnPos, v) | |
62 | local distance = (HitSpot - spawnPos).magnitude | |
63 | start = nil | |
64 | finish = nil | |
65 | local num = math.random(3, 10) | |
66 | for i = distance / num, distance, distance / num do | |
67 | if start == nil then | |
68 | start = tip2.CFrame.p | |
69 | elseif start ~= nil then | |
70 | start = finish | |
71 | end | |
72 | finish = CFrame.new(spawnPos, HitSpot) | |
73 | if i ~= distance then | |
74 | finish = (finish * CFrame.new(math.random(-5, 5), math.random(-1, 1), -i)).p | |
75 | else | |
76 | finish = HitSpot | |
77 | end | |
78 | local P = Instance.new("Part") | |
79 | P.Name = "Magic" | |
80 | P.formFactor = 0 | |
81 | P.Size = Vector3.new(1, 1, (start - finish).magnitude) | |
82 | P.Parent = game.Workspace | |
83 | P.BrickColor = BrickColor.new(1009) | |
84 | P.Anchored = true | |
85 | P.CanCollide = false | |
86 | P.TopSurface = "Smooth" | |
87 | P.BottomSurface = "Smooth" | |
88 | P.Transparency = 0 | |
89 | P.Reflectance = 1 | |
90 | m = Instance.new("BlockMesh") | |
91 | m.Scale = Vector3.new(.80, .80, .80) | |
92 | m.Offset = Vector3.new(0, -1000, 0) | |
93 | m.VertexColor = Vector3.new(math.huge, math.huge, math.huge) | |
94 | m.Parent = P | |
95 | P.CFrame = CFrame.new(start, finish) | |
96 | P.CFrame = P.CFrame * CFrame.new(0, 1000, P.Size.Z / -2) | |
97 | table.insert(parts, P) | |
98 | game:GetService("Debris"):AddItem(P, 2.5) | |
99 | end | |
100 | end | |
101 | ||
102 | function RayCast(start, v) | |
103 | ||
104 | local ray = Instance.new("Part") | |
105 | ray.Parent = game.Workspace | |
106 | ray.Anchored = true | |
107 | ray.CFrame = CFrame.new(start) | |
108 | ray.Size = Vector3.new(2,2,2) | |
109 | ray.Shape = 0 | |
110 | ray.BottomSurface = 0 | |
111 | ray.TopSurface = 0 | |
112 | ray.Name = "Magic" | |
113 | ray.Elasticity = 0 | |
114 | ray.Reflectance = 0.6 | |
115 | ray.Friction = 0 | |
116 | ray.Transparency = 0 | |
117 | ||
118 | local finding = true | |
119 | far = 1000 | |
120 | ||
121 | while finding do | |
122 | far = far - 1 | |
123 | if far > 0 then | |
124 | local see = ray.Position + v | |
125 | ray.Position = ray.Position + v | |
126 | if ray.Position ~= see then | |
127 | finding = false | |
128 | found = see | |
129 | end | |
130 | else | |
131 | finding = false | |
132 | found = ray.Position | |
133 | end | |
134 | end | |
135 | ||
136 | ray:remove() | |
137 | Check(found) | |
138 | return found | |
139 | end | |
140 | ||
141 | function kill(tar) | |
142 | while tar.Parent.Humanoid.Health ~= 0 do | |
143 | tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health -1 | |
144 | wait() | |
145 | end | |
146 | end | |
147 | ||
148 | bin.Selected:connect(function(mouse) | |
149 | if player.Torso:findFirstChild("Right Shoulder") ~= nil then | |
150 | rs = player.Torso["Right Shoulder"] | |
151 | rs.Part1 = nil | |
152 | end | |
153 | if player.Torso:findFirstChild("Left Shoulder") ~= nil then | |
154 | ls = player.Torso["Left Shoulder"] | |
155 | ls.Part1 = nil | |
156 | end | |
157 | if player:FindFirstChild("check") == nil then | |
158 | rns = Instance.new("Weld") | |
159 | rns.Parent = player.Torso | |
160 | rns.Part0 = rns.Parent | |
161 | rns.Part1 = player["Right Arm"] | |
162 | rns.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05)) | |
163 | lns = Instance.new("Weld") | |
164 | lns.Parent = player.Torso | |
165 | lns.Part0 = lns.Parent | |
166 | lns.Part1 = player["Left Arm"] | |
167 | lns.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05)) | |
168 | rblade = Instance.new("Part") | |
169 | rblade.BrickColor = BrickColor.new(1003) | |
170 | rblade.Transparency = 0.9 | |
171 | rblade.Name ="check" | |
172 | rblade.Parent = player | |
173 | rblade.CanCollide = false | |
174 | rblade.Size = Vector3.new(0.001,0.001,0.001) | |
175 | rblade.formFactor = "Symmetric" | |
176 | rblade.TopSurface = 0 | |
177 | rblade.BottomSurface = 0 | |
178 | rbm = Instance.new("BlockMesh") | |
179 | rbm.Parent = rblade | |
180 | rbm.Scale = Vector3.new(.001,001,.001) | |
181 | rbw = Instance.new("Weld") | |
182 | rbw.Parent = rblade | |
183 | rbw.Part0 = rarm | |
184 | rbw.Part1 = rblade | |
185 | rbw.C1 = CFrame.new(0,0,1) *CFrame.Angles((math.pi*.5),(math.pi*0),(math.pi*0)) | |
186 | tip = Instance.new("Part") | |
187 | tip.CanCollide = false | |
188 | tip.TopSurface = 0 | |
189 | tip.BottomSurface = 0 | |
190 | tip.Parent = rblade | |
191 | tip.Size = Vector3.new(0.001,0.001,0.001) | |
192 | tip.formFactor = "Symmetric" | |
193 | tip.BrickColor = BrickColor.new(1003) | |
194 | tipm = Instance.new("BlockMesh") | |
195 | tipm.Scale = Vector3.new(.001,.001,.001) | |
196 | tipm.Parent = tip | |
197 | tipw = Instance.new("Weld") | |
198 | tipw.Parent = rblade | |
199 | tipw.Part0 = rblade | |
200 | tipw.Part1 = tip | |
201 | tipw.C1 = CFrame.new(0,0.1,0) | |
202 | tip2 = Instance.new("Part") | |
203 | tip2.CanCollide = false | |
204 | tip2.TopSurface = 0 | |
205 | tip2.BottomSurface = 0 | |
206 | tip2.Parent = rblade | |
207 | tip2.Size = Vector3.new(0.001,0.001,0.001) | |
208 | tip2.formFactor = "Symmetric" | |
209 | tip2.BrickColor = BrickColor.new(1003) | |
210 | tip2m = Instance.new("BlockMesh") | |
211 | tip2m.Scale = Vector3.new(.01,.01,.01) | |
212 | tip2m.Parent = tip2 | |
213 | tip2w = Instance.new("Weld") | |
214 | tip2w.Parent = rblade | |
215 | tip2w.Part0 = rblade | |
216 | tip2w.Part1 = tip2 | |
217 | tip2w.C1 = CFrame.new(0,3.5,0) | |
218 | tip3 = Instance.new("Part") | |
219 | tip3.CanCollide = false | |
220 | tip3.TopSurface = 0 | |
221 | tip3.BottomSurface = 0 | |
222 | tip3.Parent = rblade | |
223 | tip3.Size = Vector3.new(0.001,0.001,0.001) | |
224 | tip3.formFactor = "Symmetric" | |
225 | tip3.BrickColor = BrickColor.new(1003) | |
226 | tip3m = Instance.new("BlockMesh") | |
227 | tip3m.Scale = Vector3.new(.001,.001,.001) | |
228 | tip3m.Parent = tip3 | |
229 | tip3w = Instance.new("Weld") | |
230 | tip3w.Parent = rblade | |
231 | tip3w.Part0 = rblade | |
232 | tip3w.Part1 = tip3 | |
233 | tip3w.C1 = CFrame.new(0,-.5,0) | |
234 | tip4 = Instance.new("Part") | |
235 | tip4.CanCollide = false | |
236 | tip4.TopSurface = 0 | |
237 | tip4.BottomSurface = 0 | |
238 | tip4.Parent = rblade | |
239 | tip4.Size = Vector3.new(0.001,0.001,0.001) | |
240 | tip4.formFactor = "Symmetric" | |
241 | tip4.BrickColor = BrickColor.new(1003) | |
242 | tip4m = Instance.new("BlockMesh") | |
243 | tip4m.Scale = Vector3.new(.001,.001,.001) | |
244 | tip4m.Parent = tip4 | |
245 | tip4w = Instance.new("Weld") | |
246 | tip4w.Parent = rblade | |
247 | tip4w.Part0 = rblade | |
248 | tip4w.Part1 = tip4 | |
249 | tip4w.C1 = CFrame.new(0,.5,0) | |
250 | tip5 = Instance.new("Part") | |
251 | tip5.CanCollide = false | |
252 | tip5.TopSurface = 0 | |
253 | tip5.BottomSurface = 0 | |
254 | tip5.Parent = rblade | |
255 | tip5.Size = Vector3.new(0.001,0.001,0.001) | |
256 | tip5.formFactor = "Symmetric" | |
257 | tip5.BrickColor = BrickColor.new(1003) | |
258 | tip5m = Instance.new("BlockMesh") | |
259 | tip5m.Scale = Vector3.new(.001,.001,.001) | |
260 | tip5m.Parent = tip5 | |
261 | tip5w = Instance.new("Weld") | |
262 | tip5w.Parent = rblade | |
263 | tip5w.Part0 = rblade | |
264 | tip5w.Part1 = tip5 | |
265 | tip5w.C1 = CFrame.new(0,0,0) | |
266 | tip6 = Instance.new("Part") | |
267 | tip6.CanCollide = false | |
268 | tip6.TopSurface = 0 | |
269 | tip6.BottomSurface = 0 | |
270 | tip6.Parent = rblade | |
271 | tip6.Size = Vector3.new(0.001,0.001,0.001) | |
272 | tip6.formFactor = "Symmetric" | |
273 | tip6.BrickColor = BrickColor.new(1003) | |
274 | tip6m = Instance.new("BlockMesh") | |
275 | tip6m.Scale = Vector3.new(.001,.001,.001) | |
276 | tip6m.Parent = tip6 | |
277 | tip6w = Instance.new("Weld") | |
278 | tip6w.Parent = rblade | |
279 | tip6w.Part0 = rblade | |
280 | tip6w.Part1 = tip6 | |
281 | tip6w.C1 = CFrame.new(0,-3,0) | |
282 | tip7 = Instance.new("Part") | |
283 | tip7.CanCollide = false | |
284 | tip7.TopSurface = 0 | |
285 | tip7.BottomSurface = 0 | |
286 | tip7.Parent = rblade | |
287 | tip7.Size = Vector3.new(0.001,0.001,0.001) | |
288 | tip7.formFactor = "Symmetric" | |
289 | tip7.BrickColor = BrickColor.new(1003) | |
290 | tip7m = Instance.new("BlockMesh") | |
291 | tip7m.Scale = Vector3.new(.001,.001,.001) | |
292 | tip7m.Parent = tip7 | |
293 | tip7w = Instance.new("Weld") | |
294 | tip7w.Parent = rblade | |
295 | tip7w.Part0 = rblade | |
296 | tip7w.Part1 = tip7 | |
297 | tip7w.C1 = CFrame.new(0,-3,0) | |
298 | tip6a = Instance.new("Part") | |
299 | tip6a.CanCollide = false | |
300 | tip6a.TopSurface = 0 | |
301 | tip6a.BottomSurface = 0 | |
302 | tip6a.Parent = rblade | |
303 | tip6a.Size = Vector3.new(0.001,0.001,0.001) | |
304 | tip6a.formFactor = "Symmetric" | |
305 | tip6a.BrickColor = BrickColor.new(1003) | |
306 | tip6am = Instance.new("BlockMesh") | |
307 | tip6am.Scale = Vector3.new(.001,.001,.001) | |
308 | tip6am.Parent = tip6a | |
309 | tip6aw = Instance.new("Weld") | |
310 | tip6aw.Parent = rblade | |
311 | tip6aw.Part0 = rblade | |
312 | tip6aw.Part1 = tip6a | |
313 | tip6aw.C1 = CFrame.new(0,-2.5,0) | |
314 | tip7a = Instance.new("Part") | |
315 | tip7a.CanCollide = false | |
316 | tip7a.TopSurface = 0 | |
317 | tip7a.BottomSurface = 0 | |
318 | tip7a.Parent = rblade | |
319 | tip7a.Size = Vector3.new(0.001,0.001,0.001) | |
320 | tip7a.formFactor = "Symmetric" | |
321 | tip7a.BrickColor = BrickColor.new(1003) | |
322 | tip7am = Instance.new("BlockMesh") | |
323 | tip7am.Scale = Vector3.new(.001,.001,.001) | |
324 | tip7am.Parent = tip7a | |
325 | tip7aw = Instance.new("Weld") | |
326 | tip7aw.Parent = rblade | |
327 | tip7aw.Part0 = rblade | |
328 | tip7aw.Part1 = tip7a | |
329 | tip7aw.C1 = CFrame.new(0,-2.5,0) | |
330 | tip6b = Instance.new("Part") | |
331 | tip6b.CanCollide = false | |
332 | tip6b.TopSurface = 0 | |
333 | tip6b.BottomSurface = 0 | |
334 | tip6b.Parent = rblade | |
335 | tip6b.Size = Vector3.new(0.001,0.001,0.001) | |
336 | tip6b.formFactor = "Symmetric" | |
337 | tip6b.BrickColor = BrickColor.new(1003) | |
338 | tip6bm = Instance.new("BlockMesh") | |
339 | tip6bm.Scale = Vector3.new(.001,.001,.001) | |
340 | tip6bm.Parent = tip6b | |
341 | tip6bw = Instance.new("Weld") | |
342 | tip6bw.Parent = rblade | |
343 | tip6bw.Part0 = rblade | |
344 | tip6bw.Part1 = tip6b | |
345 | tip6bw.C1 = CFrame.new(0,-2,0) | |
346 | tip7b = Instance.new("Part") | |
347 | tip7b.CanCollide = false | |
348 | tip7b.TopSurface = 0 | |
349 | tip7b.BottomSurface = 0 | |
350 | tip7b.Parent = rblade | |
351 | tip7b.Size = Vector3.new(0.001,0.001,0.001) | |
352 | tip7b.formFactor = "Symmetric" | |
353 | tip7b.BrickColor = BrickColor.new(1003) | |
354 | tip7bm = Instance.new("BlockMesh") | |
355 | tip7bm.Scale = Vector3.new(.001,.001,.001) | |
356 | tip7bm.Parent = tip7b | |
357 | tip7bw = Instance.new("Weld") | |
358 | tip7bw.Parent = rblade | |
359 | tip7bw.Part0 = rblade | |
360 | tip7bw.Part1 = tip7b | |
361 | tip7bw.C1 = CFrame.new(0,-2,0) | |
362 | ||
363 | rblade.Touched:connect(function(hit) | |
364 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
365 | if hit.Parent.Name ~= player.Name then | |
366 | if hit.Parent.Humanoid.MaxHealth > 100 then | |
367 | hit.Parent.Humanoid.MaxHealth = 100 | |
368 | end | |
369 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,15) | |
370 | hit.Parent.Humanoid.Sit = true | |
371 | for i = 1, (math.random(1,3)) do | |
372 | wait() | |
373 | local bleed = Instance.new("Part") | |
374 | bleed.formFactor = "Symmetric" | |
375 | bleed.Size = Vector3.new(0.1,0.1,0.1) | |
376 | bleed.BrickColor = BrickColor.new(1009) | |
377 | bleed.TopSurface = 0 | |
378 | bleed.BottomSurface = 0 | |
379 | bleed.Reflectance = .1 | |
380 | bleed.Transparency = 0 | |
381 | bleed.Parent = Workspace | |
382 | bleed.Position = rblade.Position | |
383 | local bleedm = Instance.new("SpecialMesh") | |
384 | bleedm.MeshType = "Sphere" | |
385 | bleedm.Scale = Vector3.new(.5,.5,.5) | |
386 | bleedm.Parent = bleed | |
387 | game:GetService("Debris"):AddItem(bleed, 5) | |
388 | end | |
389 | end | |
390 | end | |
391 | end) | |
392 | ||
393 | end | |
394 | -- animations-- | |
395 | right = rns | |
396 | staff = rblade | |
397 | left = lns | |
398 | up = "right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))" | |
399 | down = "right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))" | |
400 | -- end of staff | |
401 | mouse.KeyDown:connect(function(key) | |
402 | -- moves | |
403 | if key == "z" then | |
404 | if rbw.Part0 == rarm then | |
405 | rbw.Part0 = larm | |
406 | end | |
407 | end | |
408 | if key == "x" then | |
409 | if rbw.Part0 == larm then | |
410 | rbw.Part0 = rarm | |
411 | end | |
412 | end | |
413 | if key == "e" then | |
414 | right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05)) | |
415 | wait() | |
416 | right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05)) | |
417 | wait() | |
418 | right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1)) | |
419 | wait() | |
420 | right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15)) | |
421 | wait() | |
422 | right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2)) | |
423 | wait() | |
424 | right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25)) | |
425 | wait(.5) | |
426 | right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2)) | |
427 | wait() | |
428 | right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15)) | |
429 | wait() | |
430 | right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1)) | |
431 | wait() | |
432 | right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05)) | |
433 | wait() | |
434 | right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05)) | |
435 | elseif key == "q" then | |
436 | left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05)) | |
437 | wait() | |
438 | left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05)) | |
439 | wait() | |
440 | left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1)) | |
441 | wait() | |
442 | left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15)) | |
443 | wait() | |
444 | left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2)) | |
445 | wait() | |
446 | left.C1 = CFrame.new(1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*.25)) | |
447 | wait(.5) | |
448 | left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2)) | |
449 | wait() | |
450 | left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15)) | |
451 | wait() | |
452 | left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1)) | |
453 | wait() | |
454 | left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05)) | |
455 | wait() | |
456 | left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05)) | |
457 | elseif key == "r" then | |
458 | left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05)) | |
459 | wait() | |
460 | left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.3)) | |
461 | wait() | |
462 | left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.35)) | |
463 | wait() | |
464 | left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.4)) | |
465 | wait() | |
466 | left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.45)) | |
467 | wait() | |
468 | left.C1 = CFrame.new(0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.5)) | |
469 | wait(.2) | |
470 | left.C1 = CFrame.new(0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.5)) | |
471 | wait() | |
472 | left.C1 = CFrame.new(0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.5)) | |
473 | wait() | |
474 | left.C1 = CFrame.new(0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.5)) | |
475 | wait() | |
476 | left.C1 = CFrame.new(0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.5)) | |
477 | wait() | |
478 | left.C1 = CFrame.new(0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*.5)) | |
479 | wait(.1) | |
480 | left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.45)) | |
481 | wait() | |
482 | left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.4)) | |
483 | wait() | |
484 | left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.35)) | |
485 | wait() | |
486 | left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.3)) | |
487 | wait() | |
488 | left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05)) | |
489 | elseif key == "t" then | |
490 | right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05)) | |
491 | wait() | |
492 | right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.3)) | |
493 | wait() | |
494 | right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.35)) | |
495 | wait() | |
496 | right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.4)) | |
497 | wait() | |
498 | right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.45)) | |
499 | wait() | |
500 | right.C1 = CFrame.new(-0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.5)) | |
501 | wait(.2) | |
502 | right.C1 = CFrame.new(-0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.5)) | |
503 | wait() | |
504 | right.C1 = CFrame.new(-0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.5)) | |
505 | wait() | |
506 | right.C1 = CFrame.new(-0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.5)) | |
507 | wait() | |
508 | right.C1 = CFrame.new(-0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.5)) | |
509 | wait() | |
510 | right.C1 = CFrame.new(-0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*-.5)) | |
511 | wait(.1) | |
512 | right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.45)) | |
513 | wait() | |
514 | right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.4)) | |
515 | wait() | |
516 | right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.35)) | |
517 | wait() | |
518 | right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.3)) | |
519 | wait() | |
520 | right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05)) | |
521 | end | |
522 | -- spells------------------------------------------------------------------------------------- | |
523 | if key == "f" then | |
524 | loadstring(up)() | |
525 | local wall = Instance.new("Part") | |
526 | wall.Parent = Workspace | |
527 | wall.Size = Vector3.new(80,1,80) | |
528 | wall.formFactor = "Symmetric" | |
529 | wall.CFrame = player.Torso.CFrame *CFrame.new(0,-3.42,0) | |
530 | wall.TopSurface = 0 | |
531 | wall.BottomSurface = 0 | |
532 | wall.Anchored = true | |
533 | wall.BrickColor = BrickColor.new(1009) | |
534 | wall.Material = "Ice" | |
535 | game:GetService("Debris"):AddItem(wall, 15) | |
536 | while wall:IsDescendantOf(Workspace) do | |
537 | wait() | |
538 | wall.CFrame = player.Torso.CFrame*CFrame.new(0,-3.42,0) | |
539 | end | |
540 | wait(.5) | |
541 | loadstring(down)() | |
542 | end | |
543 | if key == "l" then | |
544 | player.Humanoid.MaxHealth = 999999999999999999999999999999999999 | |
545 | player.Humanoid.Health = 999999999999999999999999999999999999 | |
546 | end | |
547 | if key == "k" then | |
548 | player.Humanoid.MaxHealth = math.huge | |
549 | end | |
550 | if key == "g" then | |
551 | if mouse.Target then | |
552 | if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then | |
553 | local tar = mouse.Target | |
554 | loadstring(up)() | |
555 | local spark = Instance.new("Explosion") | |
556 | spark.BlastRadius = 8 | |
557 | spark.BlastPressure = 20 | |
558 | spark.Parent = Workspace | |
559 | spark.Position = tip2.Position | |
560 | local ptar = tar.Parent | |
561 | local mis = Instance.new("Part") | |
562 | mis.formFactor = "Symmetric" | |
563 | mis.Shape = "Block" | |
564 | mis.BrickColor = BrickColor.new(1009) | |
565 | mis.Transparency = .5 | |
566 | mis.Size = Vector3.new(1,1,1) | |
567 | mis.Parent = Workspace | |
568 | mis.CFrame = staff.CFrame * CFrame.new(0,0,-15) | |
569 | local misv = Instance.new("BodyVelocity") | |
570 | misv.Parent = mis | |
571 | misv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
572 | misv.velocity = mis.CFrame.lookVector * 50 | |
573 | local misg = Instance.new("BodyGyro") | |
574 | misg.maxTorque = Vector3.new(math.huge,math.huge,math.huge) | |
575 | misg.Parent = mis | |
576 | misg.cframe = CFrame.new(tar.Position, mis.Position) | |
577 | mis.Touched:connect(function(hit) | |
578 | if hit.Name == tar.Name then | |
579 | local ex = Instance.new("Explosion") | |
580 | ex.Parent = Workspace | |
581 | ex.Position = mis.Position | |
582 | mis:remove() | |
583 | end | |
584 | end) | |
585 | wait(.5) | |
586 | loadstring(down)() | |
587 | while mis.Parent == Workspace and tar:IsDescendantOf(Workspace) do | |
588 | wait() | |
589 | misg.cframe = CFrame.new(tar.Position, mis.Position) | |
590 | local fire = Instance.new("Explosion") | |
591 | fire.Parent = Workspace | |
592 | fire.Position = mis.Position | |
593 | fire.BlastRadius = 2 | |
594 | misv.velocity = mis.CFrame.lookVector * -18 | |
595 | end | |
596 | mis:remove() | |
597 | end | |
598 | end | |
599 | end | |
600 | if key == "b" then | |
601 | loadstring(up)() | |
602 | for i = 1,100 do | |
603 | wait() | |
604 | local p = Instance.new("Part") | |
605 | p.BrickColor = BrickColor.new(1009) | |
606 | p.Name ="check" | |
607 | p.Parent = Workspace | |
608 | p.CanCollide = false | |
609 | p.Size = Vector3.new(2,8,2) | |
610 | p.CFrame = player.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5)) | |
611 | p.formFactor = "Symmetric" | |
612 | p.TopSurface = 0 | |
613 | p.BottomSurface = 0 | |
614 | p.Transparency = .5 | |
615 | local pm = Instance.new("SpecialMesh") | |
616 | pm.Parent = p | |
617 | pm.MeshType = "Brick" | |
618 | pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i))) | |
619 | local pbv = Instance.new("BodyVelocity") | |
620 | pbv.Parent = p | |
621 | pbv.velocity = Vector3.new(0,10,0) | |
622 | game:GetService("Debris"):AddItem(p, .2) | |
623 | player.Humanoid.Health = player.Humanoid.Health +2 | |
624 | end | |
625 | player.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0) | |
626 | wait(.5) | |
627 | loadstring(down)() | |
628 | end | |
629 | if key == "v" then | |
630 | local tar = mouse.Target | |
631 | if tar ~= nil then | |
632 | if (tip6a.Position - tar.Position).magnitude < 100 then | |
633 | loadstring(up)() | |
634 | local shot = Instance.new("Part") | |
635 | shot.Parent = Workspace | |
636 | shot.BrickColor = BrickColor.new("New Yeller") | |
637 | shot.formFactor = "Symmetric" | |
638 | shot.Size = Vector3.new(4,8,4) | |
639 | shot.Anchored = true | |
640 | local shotm = Instance.new("BlockMesh") | |
641 | shotm.Scale = Vector3.new(.2,.2,(tip6a.Position - mouse.Hit.p).magnitude) | |
642 | shot.CFrame = CFrame.new(((tip6a.Position + mouse.Hit.p)/2),mouse.Hit.p) | |
643 | shotm.Parent = shot | |
644 | if tar.Parent:findFirstChild("Humanoid") ~= nil then | |
645 | local ice = Instance.new("Part") | |
646 | ice.Position = tar.Parent.Torso.Position | |
647 | ice.Anchored = true | |
648 | tar.Parent.Torso.Anchored = true | |
649 | ice.BrickColor = BrickColor.new("New Yeller") | |
650 | ice.Size = Vector3.new(4,8,4) | |
651 | ice.Reflectance = .2 | |
652 | ice.TopSurface = 0 | |
653 | ice.BottomSurface = 0 | |
654 | ice.Transparency = .5 | |
655 | ice.Parent = tar.Parent | |
656 | coroutine.resume(coroutine.create(function() kill(tar) end)) | |
657 | end | |
658 | wait(.1) | |
659 | shot:remove() | |
660 | end | |
661 | wait(.5) | |
662 | loadstring(down)() | |
663 | end | |
664 | end | |
665 | if key == "c" then | |
666 | local tar = mouse.Target | |
667 | if tar ~= nil then | |
668 | if (tip6a.Position - tar.Position).magnitude < 100 then | |
669 | loadstring(up)() | |
670 | right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25)) | |
671 | local shot = Instance.new("Part") | |
672 | shot.Parent = Workspace | |
673 | shot.BrickColor = BrickColor.new("Really black") | |
674 | shot.formFactor = "Symmetric" | |
675 | shot.Size = Vector3.new(4,8,4) | |
676 | shot.Anchored = true | |
677 | local shotm = Instance.new("BlockMesh") | |
678 | shotm.Scale = Vector3.new(.2,.2,(tip6a.Position - mouse.Hit.p).magnitude) | |
679 | shot.CFrame = CFrame.new(((tip6a.Position + mouse.Hit.p)/2),mouse.Hit.p) | |
680 | shotm.Parent = shot | |
681 | if tar.className == "Part" then | |
682 | local ice = Instance.new("Part") | |
683 | ice.CFrame = tar.CFrame | |
684 | ice.Size = tar.Size + Vector3.new(4,8,4) | |
685 | ice.Anchored = true | |
686 | tar.Anchored = true | |
687 | ice.BrickColor = BrickColor.new("New Yeller") | |
688 | ice.Reflectance = .8 | |
689 | ice.TopSurface = 0 | |
690 | ice.BottomSurface = 0 | |
691 | ice.Transparency = .5 | |
692 | ice.Parent = tar | |
693 | ice.Friction = 0 | |
694 | game:GetService("Debris"):AddItem(ice, 10) | |
695 | wait(.1) | |
696 | shot:remove() | |
697 | wait(.5) | |
698 | loadstring(down)() | |
699 | end | |
700 | end | |
701 | end | |
702 | end | |
703 | if key == "h" then | |
704 | loadstring(up)() | |
705 | local cf = CFrame.new(tip2.Position, mouse.Hit.p) | |
706 | local v = cf.lookVector | |
707 | local dx = (math.random() - .5) * .02 | |
708 | local dy = (math.random() - .5) * .02 | |
709 | local dz = (math.random() - .5) * .02 | |
710 | parts = {} | |
711 | local f = coroutine.create(function() fire(Vector3.new(v.x + dx, v.y + dy, v.z + dz)) end) | |
712 | coroutine.resume(f) | |
713 | wait(.5) | |
714 | loadstring(down)() | |
715 | end | |
716 | if key == "m" then | |
717 | loadstring(up)() | |
718 | local cf = CFrame.new(tip2.Position, mouse.Hit.p) | |
719 | local v = cf.lookVector | |
720 | local dx = (math.random() - .10) * .10 | |
721 | local dy = (math.random() - .10) * .10 | |
722 | local dz = (math.random() - .10) * .10 | |
723 | parts = {} | |
724 | local f = coroutine.create(function() fire(Vector3.new(v.x + dx, v.y + dy, v.z + dz)) end) | |
725 | coroutine.resume(f) | |
726 | wait(.5) | |
727 | loadstring(down)() | |
728 | end | |
729 | if key == "y" then | |
730 | loadstring(up)() | |
731 | for i = 2,101 do | |
732 | wait() | |
733 | local boulder = Instance.new("Part") | |
734 | boulder.TopSurface = 0 | |
735 | boulder.BottomSurface = 0 | |
736 | boulder.Anchored = true | |
737 | boulder.BrickColor = BrickColor.new("New Yeller") | |
738 | boulder.Size = Vector3.new((i+math.random(-1,1)),(i+math.random(-1,1)),2) | |
739 | boulder.CFrame = tip.CFrame * CFrame.new(0,0,-2*i) | |
740 | boulder.Velocity = boulder.CFrame.lookVector * 500 | |
741 | boulder.Material = "Plastic" | |
742 | boulder.Parent = Workspace | |
743 | boulder.Touched:connect(function(hit) | |
744 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
745 | hit.Parent.humanoid.Sit = true | |
746 | end | |
747 | end) | |
748 | game:GetService("Debris"):AddItem(boulder, .8) | |
749 | end | |
750 | loadstring(down)() | |
751 | end | |
752 | if key == "n" then | |
753 | local tar = mouse.Target | |
754 | if tar~= nil then | |
755 | if tar.Parent:findFirstChild("Humanoid") ~= nil then | |
756 | if tar.Parent:findFirstChild("Torso") ~= nil then | |
757 | loadstring(up)() | |
758 | for i = 1,100 do | |
759 | wait() | |
760 | local p = Instance.new("Part") | |
761 | p.BrickColor = BrickColor.new(1009) | |
762 | p.Name ="check" | |
763 | p.Parent = Workspace | |
764 | p.CanCollide = true | |
765 | p.Size = Vector3.new(8,18,8) | |
766 | p.CFrame = tar.Parent.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5)) | |
767 | p.formFactor = "Symmetric" | |
768 | p.TopSurface = 0 | |
769 | p.BottomSurface = 0 | |
770 | p.Transparency = .5 | |
771 | local pm = Instance.new("SpecialMesh") | |
772 | pm.Parent = p | |
773 | pm.MeshType = "Brick" | |
774 | pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i))) | |
775 | local pbv = Instance.new("BodyVelocity") | |
776 | pbv.Parent = p | |
777 | pbv.velocity = Vector3.new(0,10,0) | |
778 | game:GetService("Debris"):AddItem(p, .2) | |
779 | tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health +2 | |
780 | end | |
781 | tar.Parent.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0) | |
782 | wait(.5) | |
783 | loadstring(down)() | |
784 | end | |
785 | end | |
786 | end | |
787 | end | |
788 | if key == "u" then | |
789 | loadstring(up)() | |
790 | local start = Instance.new("Part") | |
791 | start.Parent = Workspace | |
792 | start.Position = mouse.Hit.p + Vector3.new(0,18,0) | |
793 | start.Anchored = true | |
794 | start.Size = Vector3.new(1,1,1) | |
795 | start.Transparency = 1 | |
796 | for i = 1,36 do | |
797 | start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)) | |
798 | local wall1 = Instance.new("Part") | |
799 | wall1.Parent = Workspace | |
800 | wall1.BrickColor = BrickColor.new("New Yeller") | |
801 | wall1.Size = Vector3.new(10,10,10) | |
802 | wall1.Anchored = true | |
803 | wall1.TopSurface = 0 | |
804 | wall1.CFrame = start.CFrame * CFrame.new(10,-15,0) | |
805 | local wall2 = Instance.new("Part") | |
806 | wall2.Parent = Workspace | |
807 | wall2.BrickColor = BrickColor.new("New Yeller") | |
808 | wall2.Size = Vector3.new(10,10,10) | |
809 | wall2.Anchored = true | |
810 | wall2.TopSurface = 0 | |
811 | wall2.CFrame = start.CFrame * CFrame.new(10,-15,0) | |
812 | local wall1a = Instance.new("Part") | |
813 | wall1a.Parent = Workspace | |
814 | wall1a.BrickColor = BrickColor.new("New Yeller") | |
815 | wall1a.Size = Vector3.new(10,10,10) | |
816 | wall1a.Anchored = true | |
817 | wall1a.TopSurface = 0 | |
818 | wall1a.CFrame = start.CFrame * CFrame.new(-10,-15,0) | |
819 | local wall2a = Instance.new("Part") | |
820 | wall2a.Parent = Workspace | |
821 | wall2a.BrickColor = BrickColor.new("New Yeller") | |
822 | wall2a.Size = Vector3.new(1,0,1) | |
823 | wall2a.Anchored = true | |
824 | wall2a.TopSurface = 0 | |
825 | wall2a.CFrame = start.CFrame * CFrame.new(-10,-15,0) | |
826 | local roof = Instance.new("Part") | |
827 | roof.Parent = Workspace | |
828 | roof.Size = Vector3.new(0,1,1) | |
829 | roof.BrickColor = BrickColor.new("Institutional white") | |
830 | roof.Anchored = true | |
831 | roof.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
832 | roof.TopSurface = 0 | |
833 | local roof2 = Instance.new("Part") | |
834 | roof2.Parent = Workspace | |
835 | roof2.Size = Vector3.new(1,1,35) | |
836 | roof2.BrickColor = BrickColor.new("Institutional white") | |
837 | roof2.Anchored = true | |
838 | roof2.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
839 | roof2.TopSurface = 0 | |
840 | local roofa = Instance.new("Part") | |
841 | roofa.Parent = Workspace | |
842 | roofa.Size = Vector3.new(35,1,1) | |
843 | roofa.BrickColor = BrickColor.new("Institutional white") | |
844 | roofa.Anchored = true | |
845 | roofa.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
846 | roofa.TopSurface = 0 | |
847 | local roof2a = Instance.new("Part") | |
848 | roof2a.Parent = Workspace | |
849 | roof2a.Size = Vector3.new(1,1,35) | |
850 | roof2a.BrickColor = BrickColor.new("Institutional white") | |
851 | roof2a.Anchored = true | |
852 | roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
853 | roof2a.TopSurface = 0 | |
854 | game:GetService("Debris"):AddItem(roof, 15) | |
855 | game:GetService("Debris"):AddItem(wall1, 15) | |
856 | game:GetService("Debris"):AddItem(wall2, 15) | |
857 | game:GetService("Debris"):AddItem(roof2, 15) | |
858 | game:GetService("Debris"):AddItem(wall1a, 15) | |
859 | game:GetService("Debris"):AddItem(wall2a, 15) | |
860 | game:GetService("Debris"):AddItem(roofa, 15) | |
861 | game:GetService("Debris"):AddItem(roof2a, 15) | |
862 | wait() | |
863 | end | |
864 | start:remove() | |
865 | wait(.5) | |
866 | loadstring(down)() | |
867 | end | |
868 | if key == "w" then | |
869 | loadstring(up)() | |
870 | local start = Instance.new("Part") | |
871 | start.Parent = Workspace | |
872 | start.Position = mouse.Hit.p + Vector3.new(0,18,0) | |
873 | start.Anchored = true | |
874 | start.Size = Vector3.new(1,1,1) | |
875 | start.Transparency = 1 | |
876 | for i = 1,36 do | |
877 | start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)) | |
878 | local roof = Instance.new("Part") | |
879 | roof.Parent = Workspace | |
880 | roof.Size = Vector3.new(0,1,1) | |
881 | roof.BrickColor = BrickColor.new("Institutional white") | |
882 | roof.Anchored = true | |
883 | roof.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
884 | roof.TopSurface = 0 | |
885 | local roof2 = Instance.new("Part") | |
886 | roof2.Parent = Workspace | |
887 | roof2.Size = Vector3.new(1,1,80) | |
888 | roof2.BrickColor = BrickColor.new("Institutional white") | |
889 | roof2.Anchored = true | |
890 | roof2.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
891 | roof2.TopSurface = 0 | |
892 | local roofa = Instance.new("Part") | |
893 | roofa.Parent = Workspace | |
894 | roofa.Size = Vector3.new(80,1,1) | |
895 | roofa.BrickColor = BrickColor.new("Institutional white") | |
896 | roofa.Anchored = true | |
897 | roofa.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
898 | roofa.TopSurface = 0 | |
899 | local roof2a = Instance.new("Part") | |
900 | roof2a.Parent = Workspace | |
901 | roof2a.Size = Vector3.new(1,1,80) | |
902 | roof2a.BrickColor = BrickColor.new("Institutional white") | |
903 | roof2a.Anchored = true | |
904 | roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
905 | roof2a.TopSurface = 0 | |
906 | game:GetService("Debris"):AddItem(roof, 15) | |
907 | game:GetService("Debris"):AddItem(roof2, 15) | |
908 | game:GetService("Debris"):AddItem(roofa, 15) | |
909 | game:GetService("Debris"):AddItem(roof2a, 15) | |
910 | wait() | |
911 | end | |
912 | start:remove() | |
913 | wait(.5) | |
914 | loadstring(down)() | |
915 | end | |
916 | if key == "a" then | |
917 | loadstring(up)() | |
918 | local start = Instance.new("Part") | |
919 | start.Parent = Workspace | |
920 | start.Position = mouse.Hit.p + Vector3.new(0,18,0) | |
921 | start.Anchored = true | |
922 | start.Size = Vector3.new(50,50,50) | |
923 | start.Transparency = 1 | |
924 | for i = 1,36 do | |
925 | start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)) | |
926 | local roof = Instance.new("Part") | |
927 | roof.Parent = Workspace | |
928 | roof.Size = Vector3.new(50,50,0) | |
929 | roof.BrickColor = BrickColor.new("New Yeller") | |
930 | roof.Anchored = true | |
931 | roof.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
932 | roof.TopSurface = 0 | |
933 | local roof2 = Instance.new("Part") | |
934 | roof2.Parent = Workspace | |
935 | roof2.Size = Vector3.new(0,50,50) | |
936 | roof2.BrickColor = BrickColor.new("New yeller") | |
937 | roof2.Anchored = true | |
938 | roof2.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
939 | roof2.TopSurface = 0 | |
940 | local roofa = Instance.new("Part") | |
941 | roofa.Parent = Workspace | |
942 | roofa.Size = Vector3.new(50,50,0) | |
943 | roofa.BrickColor = BrickColor.new("New Yeller") | |
944 | roofa.Anchored = true | |
945 | roofa.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
946 | roofa.TopSurface = 0 | |
947 | local roof2a = Instance.new("Part") | |
948 | roof2a.Parent = Workspace | |
949 | roof2a.Size = Vector3.new(0,50,50) | |
950 | roof2a.BrickColor = BrickColor.new("New Yeller") | |
951 | roof2a.Anchored = true | |
952 | roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
953 | roof2a.TopSurface = 0 | |
954 | game:GetService("Debris"):AddItem(roof, 15) | |
955 | game:GetService("Debris"):AddItem(roof2, 15) | |
956 | game:GetService("Debris"):AddItem(roofa, 15) | |
957 | game:GetService("Debris"):AddItem(roof2a, 15) | |
958 | wait() | |
959 | end | |
960 | start:remove() | |
961 | wait(.5) | |
962 | loadstring(down)() | |
963 | end | |
964 | if key == "d" then | |
965 | loadstring(up)() | |
966 | local start = Instance.new("Part") | |
967 | start.Parent = Workspace | |
968 | start.Position = mouse.Hit.p + Vector3.new(0,18,0) | |
969 | start.Anchored = true | |
970 | start.Size = Vector3.new(0,50,75) | |
971 | start.Transparency = 1 | |
972 | for i = 1,36 do | |
973 | start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0)) | |
974 | local roof = Instance.new("Part") | |
975 | roof.Parent = Workspace | |
976 | roof.Size = Vector3.new(10,10,0) | |
977 | roof.BrickColor = BrickColor.new("Really black") | |
978 | roof.Anchored = true | |
979 | roof.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
980 | roof.TopSurface = 0 | |
981 | local roof2 = Instance.new("Part") | |
982 | roof2.Parent = Workspace | |
983 | roof2.Size = Vector3.new(0,10,10) | |
984 | roof2.BrickColor = BrickColor.new("Really black") | |
985 | roof2.Anchored = true | |
986 | roof2.CFrame = start.CFrame * CFrame.new(0,-10,0) | |
987 | roof2.TopSurface = 0 | |
988 | local roofa = Instance.new("Part") | |
989 | roofa.Parent = Workspace | |
990 | roofa.Size = Vector3.new(10,10,10) | |
991 | roofa.BrickColor = BrickColor.new("Really black") | |
992 | roofa.Anchored = true | |
993 | roofa.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
994 | roofa.TopSurface = 0 | |
995 | local roof2a = Instance.new("Part") | |
996 | roof2a.Parent = Workspace | |
997 | roof2a.Size = Vector3.new(12,10,10) | |
998 | roof2a.BrickColor = BrickColor.new("Really black") | |
999 | roof2a.Anchored = true | |
1000 | roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0) | |
1001 | roof2a.TopSurface = 0 | |
1002 | game:GetService("Debris"):AddItem(roof, 15) | |
1003 | game:GetService("Debris"):AddItem(roof2, 15) | |
1004 | game:GetService("Debris"):AddItem(roofa, 15) | |
1005 | game:GetService("Debris"):AddItem(roof2a, 15) | |
1006 | wait() | |
1007 | end | |
1008 | start:remove() | |
1009 | wait(.5) | |
1010 | loadstring(down)() | |
1011 | end | |
1012 | if key == "m" then | |
1013 | local tar = mouse.Target | |
1014 | if tar.Parent:findFirstChild("Humanoid") ~= nil then | |
1015 | if tar.Parent.Name == "Lightning Leech" then | |
1016 | loadstring(up)() | |
1017 | while tar.Parent.Humanoid.Health >= 1 do | |
1018 | wait() | |
1019 | if player.Humanoid.Health == 0 then | |
1020 | tar.Parent.Humanoid:TakeDamage(1000) | |
1021 | else | |
1022 | tar.Parent.Torso.move.position = mouse.Hit.p | |
1023 | end | |
1024 | end | |
1025 | loadstring(down)() | |
1026 | end | |
1027 | end | |
1028 | end | |
1029 | if key == "j" then | |
1030 | local tar = mouse.Target | |
1031 | if tar.Parent:findFirstChild("Humanoid") ~= nil then | |
1032 | tar.Parent.Humanoid.Jump = true | |
1033 | end | |
1034 | elseif key == "k" then | |
1035 | local tar = mouse.Target | |
1036 | if tar.Parent:findFirstChild("Humanoid") ~= nil then | |
1037 | tar.Parent.Humanoid.Sit = true | |
1038 | end | |
1039 | elseif key == "l" then | |
1040 | local tar = mouse.Target | |
1041 | if tar.Parent:findFirstChild("Humanoid") ~= nil then | |
1042 | tar.Parent.Humanoid.PlatformStand = true | |
1043 | end | |
1044 | elseif key == "p" then | |
1045 | local min = Instance.new("Model") | |
1046 | min.Name = "Eletric Leech" | |
1047 | min.Parent = Workspace | |
1048 | local skel = Instance.new("Humanoid") | |
1049 | skel.Parent = min | |
1050 | skel.WalkSpeed = 35 | |
1051 | skel.MaxHealth = 99999999 | |
1052 | skel.Health = 99999999 | |
1053 | local thing = Instance.new("Part") | |
1054 | thing.Name = "Head" | |
1055 | thing.formFactor = "Symmetric" | |
1056 | thing.TopSurface = 0 | |
1057 | thing.BottomSurface = 0 | |
1058 | thing.BrickColor = BrickColor.new(1003) | |
1059 | thing.Transparency = .3 | |
1060 | thing.Size = Vector3.new(8,8,8) | |
1061 | thing.Parent = min | |
1062 | thing.Position = player.Torso.Position + Vector3.new(0,5,0) | |
1063 | thing.Shape = "Ball" | |
1064 | local thing2 = Instance.new("Part") | |
1065 | thing2.Name = "Torso" | |
1066 | thing2.formFactor = "Symmetric" | |
1067 | thing2.TopSurface = 0 | |
1068 | thing2.BottomSurface = 0 | |
1069 | thing2.BrickColor = BrickColor.new(1003) | |
1070 | thing2.Size = Vector3.new(1,1,1) | |
1071 | thing2.Parent = min | |
1072 | thing2.Position = player.Torso.Position + Vector3.new(0,5,0) | |
1073 | thing2.Shape = "Ball" | |
1074 | local live = Instance.new("Weld") | |
1075 | live.Parent = thing2 | |
1076 | live.Part0 = thing2 | |
1077 | live.Part1 = thing | |
1078 | live.Name = "Neck" | |
1079 | local move = Instance.new("BodyPosition") | |
1080 | move.Parent = thing2 | |
1081 | move.position = player.Torso.Position | |
1082 | move.maxForce = Vector3.new(100,0,100) | |
1083 | move.Name = "move" | |
1084 | thing.Touched:connect(function(hit) | |
1085 | if hit.Parent:findFirstChild("Humanoid") ~= nil then | |
1086 | if hit.Parent.Name ~= player.Name then | |
1087 | if hit.Parent.Name ~= "Eletric Leech" then | |
1088 | if hit.Parent.Humanoid.MaxHealth > 100 then | |
1089 | hit.Parent.Humanoid.MaxHealth = 100 | |
1090 | end | |
1091 | hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,7) | |
1092 | hit.Parent.Humanoid.Sit = true | |
1093 | for i = 1, (math.random(1,3)) do | |
1094 | wait() | |
1095 | local bleed = Instance.new("Part") | |
1096 | bleed.formFactor = "Symmetric" | |
1097 | bleed.Size = Vector3.new(1,1,1) | |
1098 | bleed.BrickColor = BrickColor.new("New Yeller") | |
1099 | bleed.TopSurface = 0 | |
1100 | bleed.BottomSurface = 0 | |
1101 | bleed.Reflectance = .1 | |
1102 | bleed.Transparency = .4 | |
1103 | bleed.Parent = Workspace | |
1104 | bleed.Position = thing.Position | |
1105 | local bleedm = Instance.new("SpecialMesh") | |
1106 | bleedm.MeshType = "Sphere" | |
1107 | bleedm.Scale = Vector3.new(.2,.2,.2) | |
1108 | bleedm.Parent = bleed | |
1109 | game:GetService("Debris"):AddItem(bleed, 5) | |
1110 | end | |
1111 | end | |
1112 | end | |
1113 | end | |
1114 | end) | |
1115 | coroutine.resume(coroutine.create(function() clean(min,thing2) end)) | |
1116 | end | |
1117 | --end of keys | |
1118 | end) | |
1119 | --end of script | |
1120 | end) | |
1121 | ||
1122 | bin.Deselected:connect(function() | |
1123 | staff:remove() | |
1124 | rs.Part1 = rarm | |
1125 | ls.Part1 = larm | |
1126 | right:remove() | |
1127 | left:remove() | |
1128 | end) |