SHOW:
|
|
- or go back to the newest paste.
1 | --MADE BY OneLegend (NOT THE SCRIPT) LOCAL SCRIPT: Go to line 3 and 5 and put your name where it says "YOUR NAME HERE" | |
2 | ||
3 | - | Evil={'DarkestWater'} |
3 | + | Evil={'swegger5'} |
4 | if not (script.Parent:IsA('HopperBin')) then | |
5 | bin=Instance.new('HopperBin',game.Players.DarkestWater.Backpack) | |
6 | bin.TextureId='http://www.roblox.com/asset/?id=54353092' | |
7 | - | bin.Name='AlaFly' |
7 | + | bin.Name='swegger5' |
8 | script.Parent=bin | |
9 | else | |
10 | bin=script.Parent | |
11 | end | |
12 | player=bin.Parent.Parent | |
13 | debris=game:service('Debris') | |
14 | new=Instance.new | |
15 | fnew=CFrame.new | |
16 | brick=BrickColor.new | |
17 | vnew=Vector3.new | |
18 | rot=CFrame.fromEulerAnglesXYZ | |
19 | if script.className~='LocalScript'then | |
20 | bin:remove() | |
21 | end | |
22 | T=new('Sound') | |
23 | T.SoundId='rbxassetid://2101157' | |
24 | T.Pitch=.4 | |
25 | motors={ | |
26 | right={}, | |
27 | left={}, | |
28 | mains={} | |
29 | } | |
30 | X=function(f)coroutine.resume(coroutine.create(f))end | |
31 | life=function(obj,time)debris:AddItem(obj,time)end | |
32 | local bv,bg,torso,Lmotor,Rmotor,head | |
33 | fly=250 | |
34 | findt=function() | |
35 | for i,v in pairs(player.Character:children())do | |
36 | if v.Name=='Torso'then | |
37 | return v | |
38 | end | |
39 | end | |
40 | end | |
41 | wing=function() | |
42 | torso=player.Character.Torso | |
43 | for i,v in pairs(torso.Parent:children())do | |
44 | if v.Name=='WingMain'then | |
45 | v:remove() | |
46 | end | |
47 | end | |
48 | mainwingpart=new('WedgePart') | |
49 | mainwingpart.Name='WingMain' | |
50 | mainwingpart.CanCollide=false | |
51 | mainwingpart.Size=vnew(1,1,1) | |
52 | mainwingpart.Transparency=1 | |
53 | mainwingpart.BrickColor=BrickColor.White() | |
54 | mainwingpart.Parent=player.Character | |
55 | weld=new('Weld',torso) | |
56 | weld.Part0=weld.Parent | |
57 | weld.Part1=mainwingpart | |
58 | weld.C0=fnew(0,.4,0) | |
59 | WingRight=new('WedgePart') | |
60 | WingRight.formFactor=3 | |
61 | WingRight.Size=vnew(.04,.3,.5) | |
62 | WingRight.CanCollide=false | |
63 | WingRight.BrickColor=BrickColor.White() | |
64 | WingRight.Parent=mainwingpart | |
65 | Rmotor=new('Motor',mainwingpart) | |
66 | Rmotor.Part0=Rmotor.Parent | |
67 | Rmotor.Part1=WingRight | |
68 | Rmotor.C1=rot(0,math.pi/1.5,0)+vnew(-.18,-.10,.8) | |
69 | nextpp=nil | |
70 | dan=-2 | |
71 | for w=1,15 do | |
72 | wait() | |
73 | dan=dan+1 | |
74 | pp=new('WedgePart') | |
75 | pp.Locked=true | |
76 | pp.BrickColor=BrickColor.White() | |
77 | pp.formFactor=3 | |
78 | if w==1 then | |
79 | pp.Size=vnew(.3,2.5,.8) | |
80 | else | |
81 | pp.Size=vnew(.3,1/(w/5),2/w) | |
82 | end | |
83 | pp.CanCollide=false | |
84 | pp.BrickColor=BrickColor.White() | |
85 | pp.CFrame=WingRight.CFrame | |
86 | pp.Material='Slate' | |
87 | pp.Parent=WingRight | |
88 | if dan==1 then | |
89 | dan=0 | |
90 | asdlal=new('WedgePart') | |
91 | asdlal.BrickColor=BrickColor.White() | |
92 | asdlal.formFactor=3 | |
93 | asdlal.Size=vnew(.25,pp.Size.y,15/w) | |
94 | for lawlz,Evil in pairs(Evil)do | |
95 | if player.Name==Evil then | |
96 | asdlal:remove() | |
97 | asdlal=new('WedgePart') | |
98 | asdlal.formFactor=3 | |
99 | asdlal.BrickColor=BrickColor.White() | |
100 | asdlal.Size=vnew(.25,.8,15/w) | |
101 | end | |
102 | end | |
103 | asdlal.Locked=true | |
104 | asdlal.CanCollide=false | |
105 | asdlal.Material='Slate' | |
106 | asdlal.Parent=pp | |
107 | mmm=new('Motor',pp) | |
108 | mmm.Part0=pp | |
109 | mmm.Part1=asdlal | |
110 | mmm.C0=fnew(0,0,-asdlal.Size.z/2) | |
111 | end | |
112 | if w==1 then | |
113 | ppmotor=new('Motor',WingRight) | |
114 | else | |
115 | ppmotor=new('Motor',nextpp) | |
116 | end | |
117 | table.insert(motors.right,ppmotor) | |
118 | ppmotor.Part0=ppmotor.Parent | |
119 | ppmotor.Part1=pp | |
120 | if w==1 then | |
121 | ppmotor.C0=rot(-.04,-math.pi/6,0)+vnew(.3,0,-.1) | |
122 | else | |
123 | ppmotor.C0=rot(-.1/(w/7),-.07,0)+vnew(0,pp.Size.y,0) | |
124 | end | |
125 | nextpp=pp | |
126 | end | |
127 | WingLeft=new('WedgePart') | |
128 | WingLeft.formFactor=3 | |
129 | WingLeft.Size=vnew(.04,.3,.5) | |
130 | WingLeft.CanCollide=false | |
131 | WingLeft.BrickColor=BrickColor.White() | |
132 | WingLeft.Parent=mainwingpart | |
133 | Lmotor=new('Motor',mainwingpart) | |
134 | Lmotor.Part0=Lmotor.Parent | |
135 | Lmotor.Part1=WingLeft | |
136 | Lmotor.C1=rot(0,-math.pi/1.5,0)+vnew(0.18,-.10,.8) | |
137 | nextpp=nil | |
138 | dan=-2 | |
139 | for w=1,15 do | |
140 | wait() | |
141 | dan=dan+1 | |
142 | pp=new('WedgePart') | |
143 | pp.Locked=true | |
144 | pp.BrickColor=BrickColor.White() | |
145 | pp.formFactor=3 | |
146 | if w==1 then | |
147 | pp.Size=vnew(.3,2.5,.8) | |
148 | else | |
149 | pp.Size=vnew(.3,1/(w/5),2/w) | |
150 | end | |
151 | pp.CanCollide=false | |
152 | pp.BrickColor=BrickColor.White() | |
153 | pp.CFrame=WingLeft.CFrame | |
154 | pp.Material='Slate' | |
155 | pp.Parent=WingLeft | |
156 | if dan==1 then | |
157 | dan=0 | |
158 | asdlal=new('WedgePart') | |
159 | asdlal.BrickColor=BrickColor.White() | |
160 | asdlal.formFactor=3 | |
161 | asdlal.Size=vnew(.25,pp.Size.y,15/w) | |
162 | for lawlz,Evil in pairs(Evil)do | |
163 | if player.Name==Evil then | |
164 | asdlal:remove() | |
165 | asdlal=new('WedgePart') | |
166 | asdlal.formFactor=3 | |
167 | asdlal.BrickColor=BrickColor.White() | |
168 | asdlal.Size=vnew(.25,.8,15/w) | |
169 | end | |
170 | end | |
171 | asdlal.Locked=true | |
172 | asdlal.CanCollide=false | |
173 | asdlal.Material='Slate' | |
174 | asdlal.Parent=pp | |
175 | mmm=new('Motor',pp) | |
176 | mmm.Part0=pp | |
177 | mmm.Part1=asdlal | |
178 | mmm.C0=fnew(0,0,-asdlal.Size.z/2) | |
179 | end | |
180 | if w==1 then | |
181 | ppmotor=new('Motor',WingLeft) | |
182 | else | |
183 | ppmotor=new('Motor',nextpp) | |
184 | end | |
185 | ppmotor.Part0=ppmotor.Parent | |
186 | table.insert(motors.left,ppmotor) | |
187 | ppmotor.Part1=pp | |
188 | if w==1 then | |
189 | ppmotor.C0=rot(-.04,math.pi/6,0)+vnew(-.3,0,-.1) | |
190 | else | |
191 | ppmotor.C0=rot(-.1/(w/7),.07,0)+vnew(0,pp.Size.y,0) | |
192 | end | |
193 | nextpp=pp | |
194 | end | |
195 | X(function() | |
196 | for i,v in pairs(motors.right)do | |
197 | v.C1=rot(.1,0,0) | |
198 | wait() | |
199 | end | |
200 | for i,v in pairs(motors.right)do | |
201 | v.C1=rot(0,-.1,-.1) | |
202 | wait() | |
203 | end | |
204 | end) | |
205 | X(function() | |
206 | for i,v in pairs(motors.left)do | |
207 | v.C1=rot(.1,0,0) | |
208 | wait() | |
209 | end | |
210 | for i,v in pairs(motors.left)do | |
211 | v.C1=rot(0,.1,.1) | |
212 | wait() | |
213 | end | |
214 | end) | |
215 | X(function() | |
216 | for i,v in pairs(motors.right)do | |
217 | v.C1=rot(.1,0,0) | |
218 | wait() | |
219 | end | |
220 | for i,v in pairs(motors.right)do | |
221 | v.C1=rot(0,-.1,0) | |
222 | wait() | |
223 | end | |
224 | end) | |
225 | X(function() | |
226 | for i,v in pairs(motors.left)do | |
227 | v.C1=rot(.1,0,0) | |
228 | wait() | |
229 | end | |
230 | for i,v in pairs(motors.left)do | |
231 | v.C1=rot(0,.1,0) | |
232 | wait() | |
233 | end | |
234 | end) | |
235 | Rmotor.MaxVelocity=.1 | |
236 | Lmotor.MaxVelocity=.1 | |
237 | Lmotor.DesiredAngle=.8 | |
238 | Rmotor.DesiredAngle=-.8 | |
239 | end | |
240 | leftarm=function(bool) | |
241 | X(function() | |
242 | newlarm=new('Motor6D') | |
243 | newlarm.Name='Left Shoulder' | |
244 | newlarm.Parent=player.Character.Torso | |
245 | newlarm.Part0=player.Character.Torso | |
246 | newlarm.Part1=player.Character['Left Arm'] | |
247 | wait()--hmm | |
248 | newlarm.C0=fnew(-1,.5,0,0,0,-1,0,1,0,1,0,0) | |
249 | newlarm.C1=fnew(.5,.5,0,0,0,-1,0,1,0,1,0,0) | |
250 | if bool==false then return newlarm end | |
251 | an=player.Character.Animate | |
252 | an.Disabled=true | |
253 | an.Disabled=false | |
254 | end) | |
255 | return newlarm | |
256 | end | |
257 | Name=function() | |
258 | name='' | |
259 | for LA=1,3 do | |
260 | name=name..string.char(math.random(0,255)) | |
261 | end | |
262 | return name | |
263 | end | |
264 | Lazer=function(m)wllwlw=false | |
265 | for i,v in pairs(Evil)do | |
266 | if v==player.Name then | |
267 | wllwlw=true break | |
268 | end | |
269 | end | |
270 | if wllwlw==false then return end | |
271 | if asdTroll~=nil then return end | |
272 | asdTroll='asd' | |
273 | rarm=rightarm(false) | |
274 | rarm.MaxVelocity=.2 | |
275 | rarm.DesiredAngle=math.rad(110) | |
276 | larm=leftarm(false) | |
277 | larm.MaxVelocity=.2 | |
278 | larm.DesiredAngle=-math.rad(110) | |
279 | lball=new('Part') | |
280 | life(lball,10) | |
281 | lball.Shape=0 | |
282 | lball.Size=vnew(1,1,1) | |
283 | lball.CanCollide=false | |
284 | lball.BottomSurface=0 | |
285 | lball.TopSurface=0 | |
286 | lball.Transparency=.5 | |
287 | lball.BrickColor=BrickColor.White() | |
288 | for i,v in pairs(Evil)do | |
289 | if player.Name==v then | |
290 | lball.BrickColor=BrickColor.White() | |
291 | end | |
292 | end | |
293 | lball.Parent=player.Character | |
294 | lweld=new('Weld',larm.Part1) | |
295 | lweld.Part0=lweld.Parent | |
296 | lweld.Part1=lball | |
297 | lweld.C0=fnew(0,-4,0) | |
298 | rball=new('Part') | |
299 | life(rball,10) | |
300 | rball.Shape=0 | |
301 | rball.Size=vnew(1,1,1) | |
302 | rball.Transparency=.5 | |
303 | rball.CanCollide=false | |
304 | rball.BottomSurface=0 | |
305 | rball.TopSurface=0 | |
306 | rball.BrickColor=BrickColor.White() | |
307 | for i,v in pairs(Evil)do | |
308 | if player.Name==v then | |
309 | rball.BrickColor=BrickColor.White() | |
310 | end | |
311 | end | |
312 | rball.Parent=player.Character | |
313 | rweld=new('Weld',rarm.Part1) | |
314 | rweld.Part0=rweld.Parent | |
315 | rweld.Part1=rball | |
316 | rweld.C0=fnew(0,-4,0) | |
317 | X(function() | |
318 | X(function() | |
319 | for KG=1,157 do wait() | |
320 | part=new('Part') | |
321 | life(part,.2) | |
322 | part.Transparency=.3 | |
323 | asdrandom=(math.random(5,20)/10)+KG/40 | |
324 | new('BlockMesh',part).Scale=vnew(asdrandom,asdrandom,asdrandom) | |
325 | part.Size=vnew(1,1,1) | |
326 | part.Anchored=true | |
327 | part.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+lball.Position | |
328 | part.Name='asd' | |
329 | part.BrickColor=BrickColor.White() | |
330 | for i,v in pairs(Evil)do | |
331 | if player.Name==v then | |
332 | part.BrickColor=BrickColor.White() | |
333 | end | |
334 | end | |
335 | part.Parent=lball | |
336 | end | |
337 | end) | |
338 | for KG2=1,157 do wait() | |
339 | part=new('Part') | |
340 | life(part,.2) | |
341 | part.Transparency=.3 | |
342 | asdrandom=(math.random(5,20)/10)+KG2/40 | |
343 | new('BlockMesh',part).Scale=vnew(asdrandom,asdrandom,asdrandom) | |
344 | part.Size=vnew(1,1,1) | |
345 | part.Anchored=true | |
346 | part.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+rball.Position | |
347 | part.Name='asd' | |
348 | part.BrickColor=BrickColor.White() | |
349 | for i,v in pairs(Evil)do | |
350 | if player.Name==v then | |
351 | part.BrickColor=BrickColor.White() | |
352 | end | |
353 | end | |
354 | part.Parent=rball | |
355 | end | |
356 | rball:remove() | |
357 | lball:remove() | |
358 | rightarm(true) | |
359 | leftarm(true) | |
360 | asdTroll=nil | |
361 | for wasd=1,200 do | |
362 | if pp~=nil then pp:remove()end | |
363 | if asdTroll~=nil then return end | |
364 | pos=m.Hit.p | |
365 | pp=new('WedgePart') | |
366 | life(pp,.1) | |
367 | pp.formFactor=3 | |
368 | pp.BrickColor=BrickColor.White() | |
369 | pp.Transparency=.2 | |
370 | pp.Size=vnew(6,1000,6) | |
371 | pp.CFrame=CFrame.new(pos.x,pos.y+(pp.Size.y/2),pos.z)+vnew(math.random(-3,3),0,math.random(-3,3)) | |
372 | exp=Instance.new('Explosion') | |
373 | exp.Position=pos+vnew(math.random(-3,3),0,math.random(-3,3)) | |
374 | exp.BlastRadius=30 | |
375 | exp.Parent=workspace | |
376 | Join=new('Part') | |
377 | Join.formFactor=0 | |
378 | Join.Size=vnew(1,1,1) | |
379 | new('SpecialMesh',Join).MeshType='Sphere' | |
380 | Join.Mesh.Scale=vnew(60,60,60) | |
381 | Join.Anchored=true | |
382 | Join.BottomSurface=0 | |
383 | Join.TopSurface=0 | |
384 | Join.BrickColor=BrickColor.White() | |
385 | Join.Transparency=.5 | |
386 | Join.CFrame=rot(0,math.rad(3.6*wasd)*2,0)+pos+vnew(math.random(-3,3),0,math.random(-3,3)) | |
387 | Join.Parent=pp | |
388 | pJoin=new('Part') | |
389 | life(pJoin,.4) | |
390 | new('BlockMesh',pJoin).Scale=vnew(10,10,10)+vnew((wasd/30),(wasd/30),(wasd/30)) | |
391 | pJoin.formFactor=0 | |
392 | pJoin.Size=vnew(1,1,1) | |
393 | pJoin.Anchored=true | |
394 | pJoin.BrickColor=BrickColor.White() | |
395 | pJoin.Transparency=.5 | |
396 | pJoin.CFrame=rot(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))+pos+vnew(math.random(-3,3),0,math.random(-3,3)) | |
397 | pJoin.Parent=workspace | |
398 | pp.Parent=player.Character | |
399 | wait() | |
400 | pp.BrickColor=BrickColor.White() | |
401 | end | |
402 | end) | |
403 | -- rightarm(true) | |
404 | end | |
405 | rightarm=function(bool) | |
406 | if pcall(function() | |
407 | newrarm=new('Motor6D') | |
408 | newrarm.Name='Right Shoulder' | |
409 | newrarm.Parent=player.Character.Torso | |
410 | newrarm.Part0=player.Character.Torso | |
411 | newrarm.Part1=player.Character['Right Arm'] | |
412 | newrarm.C0=fnew(1,.5,0,0,0,1,0,1,0,-1,0,0) | |
413 | newrarm.C1=fnew(-.5,.5,0,0,0,1,0,1,0,-1,0,0) | |
414 | if bool==false then return newlarm end | |
415 | pcall(function() | |
416 | an=player.Character.Animate | |
417 | an.Disabled=true | |
418 | an.Disabled=false | |
419 | end) | |
420 | end)then | |
421 | return newrarm | |
422 | end | |
423 | end | |
424 | light=function() | |
425 | if pcall(function()torso=player.Character.Torso end)then | |
426 | else | |
427 | return | |
428 | end | |
429 | larm=leftarm(false) | |
430 | tt=T:clone() | |
431 | life(tt,0) | |
432 | tt.Parent=workspace | |
433 | tt:play() | |
434 | Pl=new('WedgePart') | |
435 | life(Pl,20) | |
436 | Pl.CFrame=torso.CFrame+torso.CFrame.lookVector*6 | |
437 | Pl.Anchored=true | |
438 | Pl.CanCollide=false | |
439 | Pl.Parent=workspace | |
440 | leftarm(true) | |
441 | end | |
442 | bodys=function(asd) | |
443 | for i,v in pairs(torso:children())do | |
444 | if v:IsA('BodyVelocity')or v:IsA('BodyGyro')then | |
445 | v:remove() | |
446 | end | |
447 | end | |
448 | if asd==true then return end | |
449 | bv=new('BodyVelocity') | |
450 | bg=new('BodyGyro') | |
451 | bv.maxForce=vnew(math.huge,math.huge,math.huge) | |
452 | bv.velocity=vnew(0,0,0) | |
453 | bg.maxTorque=vnew(0,0,0) | |
454 | bg.Parent=torso | |
455 | bv.Parent=torso | |
456 | end | |
457 | ball=function(asd) | |
458 | for i,v in pairs(player.Character:children())do | |
459 | if v.Name=='Fly Ball'then | |
460 | v:remove() | |
461 | end | |
462 | end | |
463 | if asd==true then return end | |
464 | part=new('Part') | |
465 | part.Shape=0 | |
466 | part.BottomSurface=0 | |
467 | part.TopSurface=0 | |
468 | part.Size=torso.Size*5 | |
469 | part.Transparency=.5 | |
470 | part.BrickColor=BrickColor.White() | |
471 | part.CanCollide=false | |
472 | part.CFrame=torso.CFrame | |
473 | part.Name='Fly Ball' | |
474 | part.Parent=player.Character | |
475 | weld=new('Weld') | |
476 | weld.Parent=torso | |
477 | weld.Part0=weld.Parent | |
478 | weld.Part1=part | |
479 | part.Touched:connect(function() | |
480 | for i=1,5 do | |
481 | wait() | |
482 | part.Transparency=.5-i/10 | |
483 | end | |
484 | part.Transparency=.5 | |
485 | end) | |
486 | end | |
487 | script.Parent.Selected:connect(function(m) | |
488 | torso=player.Character.Torso | |
489 | bodys(true) | |
490 | m.KeyDown:connect(function(k) | |
491 | if k=='q'then | |
492 | fly=fly-10 | |
493 | if fly<0 then | |
494 | fly=10 | |
495 | end | |
496 | elseif k=='r'then | |
497 | wing() | |
498 | elseif k=='f'then | |
499 | Lazer(m) | |
500 | elseif k=='t'then | |
501 | X(function()player.Character.WingMain:remove()end) | |
502 | elseif k=='e'then | |
503 | fly=fly+10 | |
504 | elseif k=='y'then | |
505 | MUp=false | |
506 | bodys(false) | |
507 | elseif k=='p'then | |
508 | print'asd' | |
509 | elseif k=='b'then | |
510 | fly=150 | |
511 | elseif k=='x'then | |
512 | X(function() | |
513 | if m.Target==workspace or m.Target==nil then return end | |
514 | ko=new('ObjectValue') | |
515 | game:service('Debris'):AddItem(ko,1) | |
516 | ko.Value=player | |
517 | ko.Name='creator' | |
518 | for i,v in pairs(m.Target.Parent:children())do | |
519 | if v:IsA('Humanoid')then | |
520 | ko.Parent=v | |
521 | v.Torso:BreakJoints() | |
522 | X(function() | |
523 | for asd=1,100 do | |
524 | wait() | |
525 | part=new('WedgePart') | |
526 | game:service('Debris'):AddItem(part,.2) | |
527 | part.formFactor=0 | |
528 | part.Transparency=.3 | |
529 | part.Anchored=true | |
530 | part.CanCollide=false | |
531 | part.CFrame=rot(math.rad(math.random(1,180)),math.rad(math.random(1,180)),math.rad(math.random(1,180)))+v.Torso.Position | |
532 | part.Size=vnew(2,2,2) | |
533 | part.BrickColor=BrickColor.White() | |
534 | random=math.random(part.Size.x,part.Size.x*2) | |
535 | new('BlockMesh',part).Scale=vnew(random,random,random) | |
536 | part.Parent=workspace | |
537 | end | |
538 | end) | |
539 | end | |
540 | end | |
541 | end) | |
542 | end | |
543 | end) | |
544 | m.Button1Down:connect(function() | |
545 | ball(true) | |
546 | bodys(false) | |
547 | MUp=false | |
548 | rightarm(false) | |
549 | leftarm(false) | |
550 | bg.maxTorque=Vector3.new(900000,900000,900000) | |
551 | bg.cframe=fnew(torso.Position,m.hit.p)*rot(math.rad(-60),0,0) | |
552 | bv.velocity=fnew(torso.Position,m.hit.p).lookVector*fly | |
553 | end) | |
554 | m.Move:connect(function() | |
555 | if MUp==true then return end | |
556 | torso=player.Character.Torso | |
557 | X(function() | |
558 | bg.maxTorque=vnew(math.huge,math.huge,math.huge) | |
559 | bg.cframe=fnew(torso.Position,m.hit.p)*rot(math.rad(-60),0,0) | |
560 | bv.velocity=fnew(torso.Position,m.hit.p).lookVector*fly | |
561 | end) | |
562 | end) | |
563 | m.Button1Up:connect(function() | |
564 | MUp=true | |
565 | ball(true) | |
566 | bodys(false) | |
567 | rightarm(true) | |
568 | leftarm(true) | |
569 | bv.maxForce=vnew(10000,10000,10000) | |
570 | delay(2,function()if MUp==true then bodys(true)end end) | |
571 | torso.Velocity=vnew(0,0,0) | |
572 | torso.RotVelocity=vnew(0,0,0) | |
573 | torso.CFrame=fnew(torso.Position,m.hit.p)*rot(0,0,0) | |
574 | torso.Velocity=vnew(0,0,0) | |
575 | torso.RotVelocity=vnew(0,0,0) | |
576 | end) | |
577 | end) | |
578 | bin.Deselected:connect(function() | |
579 | X(function() | |
580 | ball(true) | |
581 | bodys(true) | |
582 | torso.Velocity=vnew(0,0,0) | |
583 | torso.RotVelocity=vnew(0,0,0) | |
584 | end) | |
585 | end) | |
586 | function onTouched(part) | |
587 | local h = part.Parent:findFirstChild("Humanoid") | |
588 | if h~=nil then | |
589 | h.Health = 0 | |
590 | end | |
591 | end | |
592 | script.Parent.Touched:connect(onTouched) |