-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNukeGUI
5217 lines (5054 loc) · 239 KB
/
NukeGUI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- OP Nuke Server Made By tco_riley
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Label = Instance.new("TextLabel")
local NUKETHESERVER = Instance.new("TextButton")
--Properties:
ScreenGui.Parent = game.CoreGui
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Frame.Position = UDim2.new(0.645735741, 0, 0.159045726, 0)
Frame.Size = UDim2.new(0, 199, 0, 183)
Frame.Active = true
Frame.Draggable = true
Label.Name = "Label"
Label.Parent = Frame
Label.BackgroundColor3 = Color3.fromRGB(170, 0, 255)
Label.Position = UDim2.new(-0.00502512557, 0, 0, 0)
Label.Size = UDim2.new(0, 200, 0, 32)
Label.Font = Enum.Font.SciFi
Label.Text = "Nuke Server | Made By tco_riley"
Label.TextColor3 = Color3.fromRGB(0, 0, 0)
Label.TextSize = 14.000
NUKETHESERVER.Name = "NUKE THE SERVER"
NUKETHESERVER.Parent = Frame
NUKETHESERVER.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
NUKETHESERVER.Position = UDim2.new(0.105527639, 0, 0.475409806, 0)
NUKETHESERVER.Size = UDim2.new(0, 156, 0, 41)
NUKETHESERVER.Font = Enum.Font.SciFi
NUKETHESERVER.Text = "NUKE THE SERVER"
NUKETHESERVER.TextColor3 = Color3.fromRGB(0, 0, 0)
NUKETHESERVER.TextSize = 14.000
NUKETHESERVER.MouseButton1Down:connect(function()
-- made by tco_riley -- nuke script
function sandbox(var,func)
local env = getfenv(func)
local newenv = setmetatable({},{
__index = function(self,k)
if k=="script" then
return var
else
return env[k]
end
end,
})
setfenv(func,newenv)
return func
end
cors = {}
mas = Instance.new("Model",game:GetService("Lighting"))
Model0 = Instance.new("Model")
Model1 = Instance.new("Model")
Part2 = Instance.new("Part")
CylinderMesh3 = Instance.new("CylinderMesh")
ObjectValue4 = Instance.new("ObjectValue")
Part5 = Instance.new("Part")
BlockMesh6 = Instance.new("BlockMesh")
Part7 = Instance.new("Part")
CylinderMesh8 = Instance.new("CylinderMesh")
Part9 = Instance.new("Part")
CylinderMesh10 = Instance.new("CylinderMesh")
Weld11 = Instance.new("Weld")
Weld12 = Instance.new("Weld")
Part13 = Instance.new("Part")
Script14 = Instance.new("Script")
BlockMesh15 = Instance.new("BlockMesh")
Part16 = Instance.new("Part")
CylinderMesh17 = Instance.new("CylinderMesh")
Part18 = Instance.new("Part")
BlockMesh19 = Instance.new("BlockMesh")
Weld20 = Instance.new("Weld")
Weld21 = Instance.new("Weld")
Weld22 = Instance.new("Weld")
Part23 = Instance.new("Part")
BlockMesh24 = Instance.new("BlockMesh")
Part25 = Instance.new("Part")
BlockMesh26 = Instance.new("BlockMesh")
Part27 = Instance.new("Part")
CylinderMesh28 = Instance.new("CylinderMesh")
Part29 = Instance.new("Part")
BlockMesh30 = Instance.new("BlockMesh")
Part31 = Instance.new("Part")
BlockMesh32 = Instance.new("BlockMesh")
ObjectValue33 = Instance.new("ObjectValue")
VehicleSeat34 = Instance.new("VehicleSeat")
Sound35 = Instance.new("Sound")
Script36 = Instance.new("Script")
Script37 = Instance.new("Script")
BlockMesh38 = Instance.new("BlockMesh")
Script39 = Instance.new("Script")
ScreenGui40 = Instance.new("ScreenGui")
Frame41 = Instance.new("Frame")
TextButton42 = Instance.new("TextButton")
TextButton43 = Instance.new("TextButton")
TextButton44 = Instance.new("TextButton")
TextButton45 = Instance.new("TextButton")
Script46 = Instance.new("Script")
ObjectValue47 = Instance.new("ObjectValue")
Frame48 = Instance.new("Frame")
TextButton49 = Instance.new("TextButton")
Script50 = Instance.new("Script")
TextButton51 = Instance.new("TextButton")
Script52 = Instance.new("Script")
TextLabel53 = Instance.new("TextLabel")
TextButton54 = Instance.new("TextButton")
Script55 = Instance.new("Script")
TextButton56 = Instance.new("TextButton")
Script57 = Instance.new("Script")
TextLabel58 = Instance.new("TextLabel")
NumberValue59 = Instance.new("NumberValue")
NumberValue60 = Instance.new("NumberValue")
NumberValue61 = Instance.new("NumberValue")
Frame62 = Instance.new("Frame")
TextLabel63 = Instance.new("TextLabel")
TextLabel64 = Instance.new("TextLabel")
TextLabel65 = Instance.new("TextLabel")
TextLabel66 = Instance.new("TextLabel")
TextLabel67 = Instance.new("TextLabel")
TextLabel68 = Instance.new("TextLabel")
TextLabel69 = Instance.new("TextLabel")
TextLabel70 = Instance.new("TextLabel")
TextButton71 = Instance.new("TextButton")
Script72 = Instance.new("Script")
Script73 = Instance.new("Script")
NumberValue74 = Instance.new("NumberValue")
Part75 = Instance.new("Part")
BlockMesh76 = Instance.new("BlockMesh")
Part77 = Instance.new("Part")
CylinderMesh78 = Instance.new("CylinderMesh")
Part79 = Instance.new("Part")
CylinderMesh80 = Instance.new("CylinderMesh")
Script81 = Instance.new("Script")
Part82 = Instance.new("Part")
Fire83 = Instance.new("Fire")
Smoke84 = Instance.new("Smoke")
Smoke85 = Instance.new("Smoke")
Smoke86 = Instance.new("Smoke")
Smoke87 = Instance.new("Smoke")
Smoke88 = Instance.new("Smoke")
BillboardGui89 = Instance.new("BillboardGui")
ImageLabel90 = Instance.new("ImageLabel")
Script91 = Instance.new("Script")
SpecialMesh92 = Instance.new("SpecialMesh")
Script93 = Instance.new("Script")
Script94 = Instance.new("Script")
Sound95 = Instance.new("Sound")
Sky96 = Instance.new("Sky")
Part97 = Instance.new("Part")
Sound98 = Instance.new("Sound")
Sound99 = Instance.new("Sound")
SpecialMesh100 = Instance.new("SpecialMesh")
PointLight101 = Instance.new("PointLight")
Smoke102 = Instance.new("Smoke")
Sound103 = Instance.new("Sound")
Model104 = Instance.new("Model")
Part105 = Instance.new("Part")
SpecialMesh106 = Instance.new("SpecialMesh")
Part107 = Instance.new("Part")
SpecialMesh108 = Instance.new("SpecialMesh")
Smoke109 = Instance.new("Smoke")
BillboardGui110 = Instance.new("BillboardGui")
ImageLabel111 = Instance.new("ImageLabel")
Script112 = Instance.new("Script")
Smoke113 = Instance.new("Smoke")
Smoke114 = Instance.new("Smoke")
Smoke115 = Instance.new("Smoke")
StringValue116 = Instance.new("StringValue")
StringValue117 = Instance.new("StringValue")
StringValue118 = Instance.new("StringValue")
Script119 = Instance.new("Script")
Script120 = Instance.new("Script")
Sound121 = Instance.new("Sound")
Sky122 = Instance.new("Sky")
Part123 = Instance.new("Part")
BlockMesh124 = Instance.new("BlockMesh")
Part125 = Instance.new("Part")
BlockMesh126 = Instance.new("BlockMesh")
Part127 = Instance.new("Part")
BlockMesh128 = Instance.new("BlockMesh")
Part129 = Instance.new("Part")
BlockMesh130 = Instance.new("BlockMesh")
Part131 = Instance.new("Part")
BlockMesh132 = Instance.new("BlockMesh")
Part133 = Instance.new("Part")
BlockMesh134 = Instance.new("BlockMesh")
Part135 = Instance.new("Part")
BlockMesh136 = Instance.new("BlockMesh")
Part137 = Instance.new("Part")
BlockMesh138 = Instance.new("BlockMesh")
Part139 = Instance.new("Part")
BlockMesh140 = Instance.new("BlockMesh")
Part141 = Instance.new("Part")
BlockMesh142 = Instance.new("BlockMesh")
Part143 = Instance.new("Part")
BlockMesh144 = Instance.new("BlockMesh")
Part145 = Instance.new("Part")
BlockMesh146 = Instance.new("BlockMesh")
Part147 = Instance.new("Part")
BlockMesh148 = Instance.new("BlockMesh")
Part149 = Instance.new("Part")
BlockMesh150 = Instance.new("BlockMesh")
Part151 = Instance.new("Part")
BlockMesh152 = Instance.new("BlockMesh")
Part153 = Instance.new("Part")
BlockMesh154 = Instance.new("BlockMesh")
Part155 = Instance.new("Part")
BlockMesh156 = Instance.new("BlockMesh")
Part157 = Instance.new("Part")
BlockMesh158 = Instance.new("BlockMesh")
Part159 = Instance.new("Part")
CylinderMesh160 = Instance.new("CylinderMesh")
Part161 = Instance.new("Part")
BlockMesh162 = Instance.new("BlockMesh")
Part163 = Instance.new("Part")
BlockMesh164 = Instance.new("BlockMesh")
Part165 = Instance.new("Part")
BlockMesh166 = Instance.new("BlockMesh")
WedgePart167 = Instance.new("WedgePart")
SpecialMesh168 = Instance.new("SpecialMesh")
WedgePart169 = Instance.new("WedgePart")
SpecialMesh170 = Instance.new("SpecialMesh")
WedgePart171 = Instance.new("WedgePart")
SpecialMesh172 = Instance.new("SpecialMesh")
WedgePart173 = Instance.new("WedgePart")
SpecialMesh174 = Instance.new("SpecialMesh")
WedgePart175 = Instance.new("WedgePart")
SpecialMesh176 = Instance.new("SpecialMesh")
WedgePart177 = Instance.new("WedgePart")
SpecialMesh178 = Instance.new("SpecialMesh")
WedgePart179 = Instance.new("WedgePart")
SpecialMesh180 = Instance.new("SpecialMesh")
WedgePart181 = Instance.new("WedgePart")
SpecialMesh182 = Instance.new("SpecialMesh")
WedgePart183 = Instance.new("WedgePart")
SpecialMesh184 = Instance.new("SpecialMesh")
WedgePart185 = Instance.new("WedgePart")
SpecialMesh186 = Instance.new("SpecialMesh")
WedgePart187 = Instance.new("WedgePart")
SpecialMesh188 = Instance.new("SpecialMesh")
WedgePart189 = Instance.new("WedgePart")
SpecialMesh190 = Instance.new("SpecialMesh")
WedgePart191 = Instance.new("WedgePart")
SpecialMesh192 = Instance.new("SpecialMesh")
Model193 = Instance.new("Model")
Part194 = Instance.new("Part")
CylinderMesh195 = Instance.new("CylinderMesh")
Part196 = Instance.new("Part")
CylinderMesh197 = Instance.new("CylinderMesh")
Part198 = Instance.new("Part")
CylinderMesh199 = Instance.new("CylinderMesh")
Part200 = Instance.new("Part")
CylinderMesh201 = Instance.new("CylinderMesh")
Part202 = Instance.new("Part")
BlockMesh203 = Instance.new("BlockMesh")
Part204 = Instance.new("Part")
BlockMesh205 = Instance.new("BlockMesh")
Part206 = Instance.new("Part")
BlockMesh207 = Instance.new("BlockMesh")
Part208 = Instance.new("Part")
BlockMesh209 = Instance.new("BlockMesh")
Part210 = Instance.new("Part")
BlockMesh211 = Instance.new("BlockMesh")
Part212 = Instance.new("Part")
BlockMesh213 = Instance.new("BlockMesh")
Part214 = Instance.new("Part")
BlockMesh215 = Instance.new("BlockMesh")
Part216 = Instance.new("Part")
BlockMesh217 = Instance.new("BlockMesh")
Part218 = Instance.new("Part")
BlockMesh219 = Instance.new("BlockMesh")
Part220 = Instance.new("Part")
BlockMesh221 = Instance.new("BlockMesh")
Part222 = Instance.new("Part")
BlockMesh223 = Instance.new("BlockMesh")
Part224 = Instance.new("Part")
BlockMesh225 = Instance.new("BlockMesh")
Part226 = Instance.new("Part")
BlockMesh227 = Instance.new("BlockMesh")
Part228 = Instance.new("Part")
BlockMesh229 = Instance.new("BlockMesh")
Part230 = Instance.new("Part")
BlockMesh231 = Instance.new("BlockMesh")
Part232 = Instance.new("Part")
BlockMesh233 = Instance.new("BlockMesh")
Part234 = Instance.new("Part")
BlockMesh235 = Instance.new("BlockMesh")
Part236 = Instance.new("Part")
BlockMesh237 = Instance.new("BlockMesh")
Part238 = Instance.new("Part")
BlockMesh239 = Instance.new("BlockMesh")
Part240 = Instance.new("Part")
BlockMesh241 = Instance.new("BlockMesh")
Part242 = Instance.new("Part")
BlockMesh243 = Instance.new("BlockMesh")
Part244 = Instance.new("Part")
BlockMesh245 = Instance.new("BlockMesh")
Part246 = Instance.new("Part")
BlockMesh247 = Instance.new("BlockMesh")
Part248 = Instance.new("Part")
CylinderMesh249 = Instance.new("CylinderMesh")
Part250 = Instance.new("Part")
BlockMesh251 = Instance.new("BlockMesh")
Part252 = Instance.new("Part")
BlockMesh253 = Instance.new("BlockMesh")
Part254 = Instance.new("Part")
BlockMesh255 = Instance.new("BlockMesh")
Part256 = Instance.new("Part")
BlockMesh257 = Instance.new("BlockMesh")
Part258 = Instance.new("Part")
BlockMesh259 = Instance.new("BlockMesh")
Part260 = Instance.new("Part")
BlockMesh261 = Instance.new("BlockMesh")
Part262 = Instance.new("Part")
BlockMesh263 = Instance.new("BlockMesh")
Part264 = Instance.new("Part")
BlockMesh265 = Instance.new("BlockMesh")
Part266 = Instance.new("Part")
BlockMesh267 = Instance.new("BlockMesh")
Part268 = Instance.new("Part")
BlockMesh269 = Instance.new("BlockMesh")
Part270 = Instance.new("Part")
BlockMesh271 = Instance.new("BlockMesh")
Part272 = Instance.new("Part")
BlockMesh273 = Instance.new("BlockMesh")
Part274 = Instance.new("Part")
BlockMesh275 = Instance.new("BlockMesh")
Part276 = Instance.new("Part")
BlockMesh277 = Instance.new("BlockMesh")
Part278 = Instance.new("Part")
BlockMesh279 = Instance.new("BlockMesh")
Part280 = Instance.new("Part")
BlockMesh281 = Instance.new("BlockMesh")
Part282 = Instance.new("Part")
BlockMesh283 = Instance.new("BlockMesh")
Part284 = Instance.new("Part")
BlockMesh285 = Instance.new("BlockMesh")
Part286 = Instance.new("Part")
BlockMesh287 = Instance.new("BlockMesh")
Part288 = Instance.new("Part")
BlockMesh289 = Instance.new("BlockMesh")
Part290 = Instance.new("Part")
BlockMesh291 = Instance.new("BlockMesh")
Part292 = Instance.new("Part")
BlockMesh293 = Instance.new("BlockMesh")
WedgePart294 = Instance.new("WedgePart")
SpecialMesh295 = Instance.new("SpecialMesh")
WedgePart296 = Instance.new("WedgePart")
SpecialMesh297 = Instance.new("SpecialMesh")
WedgePart298 = Instance.new("WedgePart")
SpecialMesh299 = Instance.new("SpecialMesh")
WedgePart300 = Instance.new("WedgePart")
SpecialMesh301 = Instance.new("SpecialMesh")
VehicleSeat302 = Instance.new("VehicleSeat")
WedgePart303 = Instance.new("WedgePart")
SpecialMesh304 = Instance.new("SpecialMesh")
WedgePart305 = Instance.new("WedgePart")
SpecialMesh306 = Instance.new("SpecialMesh")
WedgePart307 = Instance.new("WedgePart")
SpecialMesh308 = Instance.new("SpecialMesh")
WedgePart309 = Instance.new("WedgePart")
SpecialMesh310 = Instance.new("SpecialMesh")
WedgePart311 = Instance.new("WedgePart")
SpecialMesh312 = Instance.new("SpecialMesh")
WedgePart313 = Instance.new("WedgePart")
SpecialMesh314 = Instance.new("SpecialMesh")
WedgePart315 = Instance.new("WedgePart")
SpecialMesh316 = Instance.new("SpecialMesh")
WedgePart317 = Instance.new("WedgePart")
SpecialMesh318 = Instance.new("SpecialMesh")
WedgePart319 = Instance.new("WedgePart")
SpecialMesh320 = Instance.new("SpecialMesh")
WedgePart321 = Instance.new("WedgePart")
SpecialMesh322 = Instance.new("SpecialMesh")
WedgePart323 = Instance.new("WedgePart")
SpecialMesh324 = Instance.new("SpecialMesh")
WedgePart325 = Instance.new("WedgePart")
SpecialMesh326 = Instance.new("SpecialMesh")
WedgePart327 = Instance.new("WedgePart")
SpecialMesh328 = Instance.new("SpecialMesh")
WedgePart329 = Instance.new("WedgePart")
SpecialMesh330 = Instance.new("SpecialMesh")
WedgePart331 = Instance.new("WedgePart")
SpecialMesh332 = Instance.new("SpecialMesh")
WedgePart333 = Instance.new("WedgePart")
SpecialMesh334 = Instance.new("SpecialMesh")
WedgePart335 = Instance.new("WedgePart")
SpecialMesh336 = Instance.new("SpecialMesh")
WedgePart337 = Instance.new("WedgePart")
SpecialMesh338 = Instance.new("SpecialMesh")
Part339 = Instance.new("Part")
BlockMesh340 = Instance.new("BlockMesh")
Part341 = Instance.new("Part")
BlockMesh342 = Instance.new("BlockMesh")
Part343 = Instance.new("Part")
BlockMesh344 = Instance.new("BlockMesh")
Part345 = Instance.new("Part")
BlockMesh346 = Instance.new("BlockMesh")
Part347 = Instance.new("Part")
BlockMesh348 = Instance.new("BlockMesh")
Part349 = Instance.new("Part")
BlockMesh350 = Instance.new("BlockMesh")
Part351 = Instance.new("Part")
BlockMesh352 = Instance.new("BlockMesh")
Part353 = Instance.new("Part")
BlockMesh354 = Instance.new("BlockMesh")
Part355 = Instance.new("Part")
BlockMesh356 = Instance.new("BlockMesh")
Part357 = Instance.new("Part")
BlockMesh358 = Instance.new("BlockMesh")
Part359 = Instance.new("Part")
BlockMesh360 = Instance.new("BlockMesh")
Part361 = Instance.new("Part")
BlockMesh362 = Instance.new("BlockMesh")
Part363 = Instance.new("Part")
BlockMesh364 = Instance.new("BlockMesh")
Part365 = Instance.new("Part")
BlockMesh366 = Instance.new("BlockMesh")
Part367 = Instance.new("Part")
BlockMesh368 = Instance.new("BlockMesh")
Part369 = Instance.new("Part")
BlockMesh370 = Instance.new("BlockMesh")
Part371 = Instance.new("Part")
CylinderMesh372 = Instance.new("CylinderMesh")
Part373 = Instance.new("Part")
BlockMesh374 = Instance.new("BlockMesh")
Part375 = Instance.new("Part")
BlockMesh376 = Instance.new("BlockMesh")
Part377 = Instance.new("Part")
BlockMesh378 = Instance.new("BlockMesh")
Part379 = Instance.new("Part")
BlockMesh380 = Instance.new("BlockMesh")
Part381 = Instance.new("Part")
CylinderMesh382 = Instance.new("CylinderMesh")
Part383 = Instance.new("Part")
CylinderMesh384 = Instance.new("CylinderMesh")
Part385 = Instance.new("Part")
CylinderMesh386 = Instance.new("CylinderMesh")
WedgePart387 = Instance.new("WedgePart")
SpecialMesh388 = Instance.new("SpecialMesh")
WedgePart389 = Instance.new("WedgePart")
SpecialMesh390 = Instance.new("SpecialMesh")
WedgePart391 = Instance.new("WedgePart")
SpecialMesh392 = Instance.new("SpecialMesh")
WedgePart393 = Instance.new("WedgePart")
SpecialMesh394 = Instance.new("SpecialMesh")
WedgePart395 = Instance.new("WedgePart")
SpecialMesh396 = Instance.new("SpecialMesh")
WedgePart397 = Instance.new("WedgePart")
SpecialMesh398 = Instance.new("SpecialMesh")
WedgePart399 = Instance.new("WedgePart")
SpecialMesh400 = Instance.new("SpecialMesh")
WedgePart401 = Instance.new("WedgePart")
SpecialMesh402 = Instance.new("SpecialMesh")
WedgePart403 = Instance.new("WedgePart")
SpecialMesh404 = Instance.new("SpecialMesh")
WedgePart405 = Instance.new("WedgePart")
SpecialMesh406 = Instance.new("SpecialMesh")
WedgePart407 = Instance.new("WedgePart")
SpecialMesh408 = Instance.new("SpecialMesh")
Part409 = Instance.new("Part")
BlockMesh410 = Instance.new("BlockMesh")
Part411 = Instance.new("Part")
BlockMesh412 = Instance.new("BlockMesh")
Part413 = Instance.new("Part")
BlockMesh414 = Instance.new("BlockMesh")
Part415 = Instance.new("Part")
BlockMesh416 = Instance.new("BlockMesh")
Part417 = Instance.new("Part")
CylinderMesh418 = Instance.new("CylinderMesh")
Part419 = Instance.new("Part")
CylinderMesh420 = Instance.new("CylinderMesh")
Part421 = Instance.new("Part")
CylinderMesh422 = Instance.new("CylinderMesh")
Part423 = Instance.new("Part")
CylinderMesh424 = Instance.new("CylinderMesh")
Part425 = Instance.new("Part")
CylinderMesh426 = Instance.new("CylinderMesh")
Part427 = Instance.new("Part")
BlockMesh428 = Instance.new("BlockMesh")
WedgePart429 = Instance.new("WedgePart")
SpecialMesh430 = Instance.new("SpecialMesh")
WedgePart431 = Instance.new("WedgePart")
SpecialMesh432 = Instance.new("SpecialMesh")
Part433 = Instance.new("Part")
CylinderMesh434 = Instance.new("CylinderMesh")
Part435 = Instance.new("Part")
CylinderMesh436 = Instance.new("CylinderMesh")
Part437 = Instance.new("Part")
CylinderMesh438 = Instance.new("CylinderMesh")
Part439 = Instance.new("Part")
CylinderMesh440 = Instance.new("CylinderMesh")
Part441 = Instance.new("Part")
CylinderMesh442 = Instance.new("CylinderMesh")
Part443 = Instance.new("Part")
CylinderMesh444 = Instance.new("CylinderMesh")
Part445 = Instance.new("Part")
CylinderMesh446 = Instance.new("CylinderMesh")
Part447 = Instance.new("Part")
CylinderMesh448 = Instance.new("CylinderMesh")
Part449 = Instance.new("Part")
CylinderMesh450 = Instance.new("CylinderMesh")
Part451 = Instance.new("Part")
CylinderMesh452 = Instance.new("CylinderMesh")
Model0.Name = "MAZ-450 Scud Nuclear"
Model0.Parent = mas
Model1.Name = "turret"
Model1.Parent = Model0
Part2.Parent = Model1
Part2.Material = Enum.Material.Metal
Part2.BrickColor = BrickColor.new("Grime")
Part2.Rotation = Vector3.new(0, 90, 0)
Part2.FormFactor = Enum.FormFactor.Plate
Part2.Size = Vector3.new(2, 0.400000006, 3)
Part2.CFrame = CFrame.new(12.8898954, 10.3001108, 38.9598312, 3.06876391e-05, 6.20403944e-06, 1, -3.31463598e-05, 1, -6.68033636e-06, -1, -2.63205093e-05, 2.09769823e-05)
Part2.BackSurface = Enum.SurfaceType.Weld
Part2.BottomSurface = Enum.SurfaceType.Smooth
Part2.FrontSurface = Enum.SurfaceType.Weld
Part2.LeftSurface = Enum.SurfaceType.Weld
Part2.RightSurface = Enum.SurfaceType.Weld
Part2.TopSurface = Enum.SurfaceType.Weld
Part2.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part2.Position = Vector3.new(12.8898954, 10.3001108, 38.9598312)
Part2.Orientation = Vector3.new(0, 90, 0)
Part2.Color = Color3.new(0.498039, 0.556863, 0.392157)
CylinderMesh3.Parent = Part2
CylinderMesh3.Scale = Vector3.new(1.79999995, 1, 2)
CylinderMesh3.Scale = Vector3.new(1.79999995, 1, 2)
ObjectValue4.Name = "WER"
ObjectValue4.Parent = Model1
ObjectValue4.Value = Weld12
Part5.Parent = Model1
Part5.Material = Enum.Material.Metal
Part5.BrickColor = BrickColor.new("Grime")
Part5.Rotation = Vector3.new(-90, 0, -180)
Part5.FormFactor = Enum.FormFactor.Custom
Part5.Size = Vector3.new(3, 0.400000006, 0.399999976)
Part5.CFrame = CFrame.new(12.8898659, 10.7001324, 40.1598129, -1, 5.64619597e-07, 6.20732499e-06, 6.68464554e-06, 1.11793124e-05, 1, 1.02754129e-05, 1, -4.35367065e-06)
Part5.BackSurface = Enum.SurfaceType.Weld
Part5.BottomSurface = Enum.SurfaceType.Smooth
Part5.FrontSurface = Enum.SurfaceType.Weld
Part5.LeftSurface = Enum.SurfaceType.Weld
Part5.RightSurface = Enum.SurfaceType.Weld
Part5.TopSurface = Enum.SurfaceType.Weld
Part5.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part5.Position = Vector3.new(12.8898659, 10.7001324, 40.1598129)
Part5.Orientation = Vector3.new(-90, -180, 0)
Part5.Color = Color3.new(0.498039, 0.556863, 0.392157)
BlockMesh6.Parent = Part5
Part7.Parent = Model1
Part7.Material = Enum.Material.Metal
Part7.BrickColor = BrickColor.new("Grime")
Part7.Rotation = Vector3.new(90, 0, -90)
Part7.FormFactor = Enum.FormFactor.Symmetric
Part7.Size = Vector3.new(1, 1, 1)
Part7.CFrame = CFrame.new(13.8899441, 12.0000706, 38.9595375, 4.72349166e-05, 1, -3.85977728e-06, -4.47773564e-05, -4.33497553e-06, -1, -1, 3.75242453e-05, 3.79514786e-05)
Part7.BottomSurface = Enum.SurfaceType.Weld
Part7.TopSurface = Enum.SurfaceType.Weld
Part7.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part7.Position = Vector3.new(13.8899441, 12.0000706, 38.9595375)
Part7.Orientation = Vector3.new(90, 90, 0)
Part7.Color = Color3.new(0.498039, 0.556863, 0.392157)
CylinderMesh8.Parent = Part7
CylinderMesh8.Scale = Vector3.new(2, 1, 1.79999995)
CylinderMesh8.Scale = Vector3.new(2, 1, 1.79999995)
Part9.Name = "Connector"
Part9.Parent = Model1
Part9.Material = Enum.Material.Metal
Part9.BrickColor = BrickColor.new("Grime")
Part9.Rotation = Vector3.new(0, 90, 0)
Part9.CanCollide = false
Part9.FormFactor = Enum.FormFactor.Symmetric
Part9.Size = Vector3.new(2, 2, 3)
Part9.CFrame = CFrame.new(12.8898888, 9.10011101, 38.9598045, 1.50947981e-05, 5.43772376e-06, 1, -2.21862356e-05, 1, -5.9147028e-06, -1, -1.53604906e-05, 5.38406312e-06)
Part9.BackSurface = Enum.SurfaceType.Weld
Part9.BottomSurface = Enum.SurfaceType.Weld
Part9.LeftSurface = Enum.SurfaceType.Weld
Part9.TopSurface = Enum.SurfaceType.Weld
Part9.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part9.Position = Vector3.new(12.8898888, 9.10011101, 38.9598045)
Part9.Orientation = Vector3.new(0, 90, 0)
Part9.Color = Color3.new(0.498039, 0.556863, 0.392157)
CylinderMesh10.Parent = Part9
CylinderMesh10.Scale = Vector3.new(1.5, 1, 2)
CylinderMesh10.Scale = Vector3.new(1.5, 1, 2)
Weld11.Parent = Part9
Weld11.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Weld12.Parent = Part9
Weld12.C0 = CFrame.new(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Weld12.Part0 = Part9
Weld12.Part1 = Part79
Part13.Name = "Wpart"
Part13.Parent = Model1
Part13.Material = Enum.Material.Metal
Part13.BrickColor = BrickColor.new("Grime")
Part13.Rotation = Vector3.new(0, 90, 0)
Part13.FormFactor = Enum.FormFactor.Symmetric
Part13.Size = Vector3.new(2, 1, 2)
Part13.CFrame = CFrame.new(14.3899441, 12.0000477, 38.9595566, 1.52723678e-05, 5.4290017e-06, 1, -2.23110437e-05, 1, -5.90597438e-06, -1, -1.54852969e-05, 5.56163559e-06)
Part13.BottomSurface = Enum.SurfaceType.Smooth
Part13.LeftSurface = Enum.SurfaceType.Weld
Part13.RightSurface = Enum.SurfaceType.Weld
Part13.TopSurface = Enum.SurfaceType.Smooth
Part13.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part13.Position = Vector3.new(14.3899441, 12.0000477, 38.9595566)
Part13.Orientation = Vector3.new(0, 90, 0)
Part13.Color = Color3.new(0.498039, 0.556863, 0.392157)
Script14.Parent = Part13
table.insert(cors,sandbox(Script14,function()
b = script.Parent
c = script.Parent.Parent.Connector2
local weld = Instance.new("Weld")
weld.Part0 = c
weld.Part1 = b
weld.C0 = CFrame.new(0, 0, 1.5)
weld.Parent = c
script.Parent.Parent.WER2.Value = weld
end))
BlockMesh15.Parent = Part13
Part16.Parent = Model1
Part16.Material = Enum.Material.Metal
Part16.BrickColor = BrickColor.new("Grime")
Part16.Rotation = Vector3.new(90, 0, -90)
Part16.FormFactor = Enum.FormFactor.Symmetric
Part16.Size = Vector3.new(1, 1, 1)
Part16.CFrame = CFrame.new(14.8899441, 12.0000582, 38.9595566, 3.124254e-05, 1, -4.64493451e-06, -3.3536413e-05, -5.12120005e-06, -1, -1, 2.15318451e-05, 2.67105879e-05)
Part16.BottomSurface = Enum.SurfaceType.Weld
Part16.TopSurface = Enum.SurfaceType.Weld
Part16.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part16.Position = Vector3.new(14.8899441, 12.0000582, 38.9595566)
Part16.Orientation = Vector3.new(90, 90, 0)
Part16.Color = Color3.new(0.498039, 0.556863, 0.392157)
CylinderMesh17.Parent = Part16
CylinderMesh17.Scale = Vector3.new(1.89999998, 1, 1.60000002)
CylinderMesh17.Scale = Vector3.new(1.89999998, 1, 1.60000002)
Part18.Name = "Connector2"
Part18.Parent = Model1
Part18.Material = Enum.Material.Metal
Part18.BrickColor = BrickColor.new("Grime")
Part18.Rotation = Vector3.new(0, 90, 0)
Part18.FormFactor = Enum.FormFactor.Symmetric
Part18.Size = Vector3.new(1, 1, 1)
Part18.CFrame = CFrame.new(12.8899441, 12.0000563, 38.959549, 1.52723678e-05, 5.4290017e-06, 1, -2.23110437e-05, 1, -5.90597438e-06, -1, -1.54852969e-05, 5.56163559e-06)
Part18.BottomSurface = Enum.SurfaceType.Weld
Part18.TopSurface = Enum.SurfaceType.Weld
Part18.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part18.Position = Vector3.new(12.8899441, 12.0000563, 38.959549)
Part18.Orientation = Vector3.new(0, 90, 0)
Part18.Color = Color3.new(0.498039, 0.556863, 0.392157)
BlockMesh19.Parent = Part18
Weld20.Parent = Part18
Weld20.C0 = CFrame.new(0, 0, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Weld21.Parent = Part18
Weld21.C0 = CFrame.new(0, 0, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Weld22.Parent = Part18
Weld22.C0 = CFrame.new(0, 0, 1.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
Weld22.Part0 = Part18
Weld22.Part1 = Part13
Part23.Parent = Model1
Part23.Material = Enum.Material.Metal
Part23.BrickColor = BrickColor.new("Grime")
Part23.Rotation = Vector3.new(-90, 0, 180)
Part23.FormFactor = Enum.FormFactor.Plate
Part23.Size = Vector3.new(1, 0.400000006, 1.20000005)
Part23.CFrame = CFrame.new(13.8899651, 11.5000286, 37.7595558, -1, -3.11981494e-05, 4.64657705e-06, 5.12284532e-06, 3.350517e-05, 1, -2.14874563e-05, 1, -2.66793468e-05)
Part23.BackSurface = Enum.SurfaceType.Weld
Part23.BottomSurface = Enum.SurfaceType.Weld
Part23.FrontSurface = Enum.SurfaceType.Weld
Part23.LeftSurface = Enum.SurfaceType.Weld
Part23.RightSurface = Enum.SurfaceType.Weld
Part23.TopSurface = Enum.SurfaceType.Smooth
Part23.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part23.Position = Vector3.new(13.8899651, 11.5000286, 37.7595558)
Part23.Orientation = Vector3.new(-90, 180, 0)
Part23.Color = Color3.new(0.498039, 0.556863, 0.392157)
BlockMesh24.Parent = Part23
Part25.Parent = Model1
Part25.Material = Enum.Material.Metal
Part25.BrickColor = BrickColor.new("Grime")
Part25.Rotation = Vector3.new(-90, 0, 180)
Part25.FormFactor = Enum.FormFactor.Custom
Part25.Size = Vector3.new(3, 0.400000006, 0.399999976)
Part25.CFrame = CFrame.new(12.8899288, 10.7000723, 37.7598228, -1, -1.52280863e-05, 5.43084116e-06, 5.90815625e-06, -7.7088643e-08, 1, -5.51722951e-06, 1, 6.90283105e-06)
Part25.BackSurface = Enum.SurfaceType.Weld
Part25.BottomSurface = Enum.SurfaceType.Weld
Part25.FrontSurface = Enum.SurfaceType.Weld
Part25.LeftSurface = Enum.SurfaceType.Weld
Part25.RightSurface = Enum.SurfaceType.Weld
Part25.TopSurface = Enum.SurfaceType.Smooth
Part25.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part25.Position = Vector3.new(12.8899288, 10.7000723, 37.7598228)
Part25.Orientation = Vector3.new(-90, 180, 0)
Part25.Color = Color3.new(0.498039, 0.556863, 0.392157)
BlockMesh26.Parent = Part25
Part27.Parent = Model1
Part27.Material = Enum.Material.Metal
Part27.BrickColor = BrickColor.new("Grime")
Part27.Rotation = Vector3.new(90, 0, 0)
Part27.FormFactor = Enum.FormFactor.Plate
Part27.Size = Vector3.new(1, 0.400000006, 1)
Part27.CFrame = CFrame.new(13.8899403, 11.6000576, 37.3598328, 1, -1.52945649e-05, -5.42817907e-06, -5.90515128e-06, 2.23266634e-05, -1, 5.5838309e-06, 1, 1.55009166e-05)
Part27.BackSurface = Enum.SurfaceType.Weld
Part27.BottomSurface = Enum.SurfaceType.Smooth
Part27.FrontSurface = Enum.SurfaceType.Weld
Part27.LeftSurface = Enum.SurfaceType.Weld
Part27.RightSurface = Enum.SurfaceType.Weld
Part27.TopSurface = Enum.SurfaceType.Weld
Part27.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part27.Position = Vector3.new(13.8899403, 11.6000576, 37.3598328)
Part27.Orientation = Vector3.new(90, 0, 0)
Part27.Color = Color3.new(0.498039, 0.556863, 0.392157)
CylinderMesh28.Parent = Part27
CylinderMesh28.Offset = Vector3.new(0, 1.60000002, 0)
CylinderMesh28.Scale = Vector3.new(0.800000012, 8, 2)
CylinderMesh28.Scale = Vector3.new(0.800000012, 8, 2)
Part29.Parent = Model1
Part29.Material = Enum.Material.Metal
Part29.BrickColor = BrickColor.new("Grime")
Part29.Rotation = Vector3.new(180, 0, -180)
Part29.FormFactor = Enum.FormFactor.Plate
Part29.Size = Vector3.new(1, 0.800000012, 1)
Part29.CFrame = CFrame.new(13.8901453, 7.60008192, 38.9598312, -1, 6.80900757e-06, -1.28170986e-05, 7.24961728e-06, 1, -3.05093963e-05, 2.17730885e-05, -2.42142978e-05, -1)
Part29.BackSurface = Enum.SurfaceType.Weld
Part29.BottomSurface = Enum.SurfaceType.Weld
Part29.FrontSurface = Enum.SurfaceType.Weld
Part29.LeftSurface = Enum.SurfaceType.Weld
Part29.RightSurface = Enum.SurfaceType.Weld
Part29.TopSurface = Enum.SurfaceType.Smooth
Part29.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part29.Position = Vector3.new(13.8901453, 7.60008192, 38.9598312)
Part29.Orientation = Vector3.new(0, -180, 0)
Part29.Color = Color3.new(0.498039, 0.556863, 0.392157)
BlockMesh30.Parent = Part29
Part31.Parent = Model1
Part31.Material = Enum.Material.Metal
Part31.BrickColor = BrickColor.new("Grime")
Part31.FormFactor = Enum.FormFactor.Plate
Part31.Size = Vector3.new(1, 0.800000012, 1)
Part31.CFrame = CFrame.new(11.8901434, 7.60010433, 38.9599037, 1, 6.32152023e-06, 2.89539616e-06, -6.78039805e-06, 1, 3.84974592e-05, -1.22286801e-05, -3.19370556e-05, 1)
Part31.BackSurface = Enum.SurfaceType.Weld
Part31.BottomSurface = Enum.SurfaceType.Weld
Part31.FrontSurface = Enum.SurfaceType.Weld
Part31.LeftSurface = Enum.SurfaceType.Weld
Part31.RightSurface = Enum.SurfaceType.Weld
Part31.TopSurface = Enum.SurfaceType.Smooth
Part31.Color = Color3.new(0.498039, 0.556863, 0.392157)
Part31.Position = Vector3.new(11.8901434, 7.60010433, 38.9599037)
Part31.Color = Color3.new(0.498039, 0.556863, 0.392157)
BlockMesh32.Parent = Part31
ObjectValue33.Name = "WER2"
ObjectValue33.Parent = Model1
ObjectValue33.Value = Weld22
VehicleSeat34.Parent = Model1
VehicleSeat34.BrickColor = BrickColor.new("Really red")
VehicleSeat34.Rotation = Vector3.new(0, 90, 0)
VehicleSeat34.Size = Vector3.new(2, 0.400000006, 2)
VehicleSeat34.CFrame = CFrame.new(-23.1100998, 4.80056763, 33.6601639, -1.67083635e-05, 6.97150199e-06, 1, -2.32027105e-07, 0.999991715, -7.13226291e-06, -1.00000143, 1.9876245e-06, -2.00193008e-05)
VehicleSeat34.TopSurface = Enum.SurfaceType.Weld
VehicleSeat34.HeadsUpDisplay = false
VehicleSeat34.MaxSpeed = 50
VehicleSeat34.Color = Color3.new(1, 0, 0)
VehicleSeat34.Position = Vector3.new(-23.1100998, 4.80056763, 33.6601639)
VehicleSeat34.Orientation = Vector3.new(0, 90, 0)
VehicleSeat34.Color = Color3.new(1, 0, 0)
Sound35.Name = "Swiv"
Sound35.Parent = VehicleSeat34
Sound35.Pitch = 0.69999998807907
Sound35.SoundId = "http://www.roblox.com/asset/?id=31245465"
Sound35.Volume = 0
Sound35.PlayOnRemove = true
Script36.Name = "Control"
Script36.Parent = VehicleSeat34
table.insert(cors,sandbox(Script36,function()
while true do
wait()
if script.Parent.Steer == 2 then
script.Parent.Swiv:play()
script.Parent.Parent.WER.Value.C0 = script.Parent.Parent.WER.Value.C0 * CFrame.fromEulerAnglesXYZ(0,0.01,0)
elseif script.Parent.Steer == -2 then
script.Parent.Swiv:play()
script.Parent.Parent.WER.Value.C0 = script.Parent.Parent.WER.Value.C0 * CFrame.fromEulerAnglesXYZ(0,-0.01,0)
elseif script.Parent.Steer == 0 and script.Parent.Throttle == 0 then
script.Parent.Swiv:pause()
end
end
end))
Script37.Name = "Control2"
Script37.Parent = VehicleSeat34
table.insert(cors,sandbox(Script37,function()
angle = 0
while true do
wait()
if script.Parent.Throttle == 1 and angle < 160 then
script.Parent.Swiv:play()
angle = angle + 1
script.Parent.Angle.Value = angle
script.Parent.Parent.WER2.Value.C0 = script.Parent.Parent.WER2.Value.C0 * CFrame.fromEulerAnglesXYZ(-0.01,0,0)
elseif script.Parent.Throttle == -1 and angle > 0 then
script.Parent.Swiv:play()
angle = angle - 1
script.Parent.Angle.Value = angle
script.Parent.Parent.WER2.Value.C0 = script.Parent.Parent.WER2.Value.C0 * CFrame.fromEulerAnglesXYZ(0.01,0,0)
end
end
end))
BlockMesh38.Parent = VehicleSeat34
Script39.Name = "Pickup"
Script39.Parent = VehicleSeat34
table.insert(cors,sandbox(Script39,function()
script.Parent.ChildAdded:connect(function(w)
print("ChildAdded")
if w.className=="Weld" then
print("IsAWeld")
if w.Name=="SeatWeld" then
print("IsASeatWeld")
if w.Part1.Parent:findFirstChild("Humanoid")~=nil then
print("IsAHumanoid")
pl=game.Players:GetPlayerFromCharacter(w.Part1.Parent)
if pl~=nil then
print("IsAPlayer")
if pl.PlayerGui:findFirstChild("VehicleGui")~=nil then
print("found vehicle gui - deleting")
pl.PlayerGui:findFirstChild("VehicleGui").Parent=nil
print("deleted")
else
print("no gui found - adding")
newgui=script.Parent.VehicleGui:clone()
newgui.Parent=pl.PlayerGui
newgui.Vehicle.Value=script.Parent.Parent
print("added")
end
end
end
end
end
end)
script.Parent.ChildRemoved:connect(function(w)
print("ChildRemoved")
if w.className=="Weld" then
print("IsAWeld")
if w.Name=="SeatWeld" then
print("IsASeatWeld")
if w.Part1.Parent:findFirstChild("Humanoid")~=nil then
print("IsAHumanoid")
pl=game.Players:GetPlayerFromCharacter(w.Part1.Parent)
if pl~=nil then
print("IsAPlayer")
if pl.PlayerGui:findFirstChild("VehicleGui")~=nil then
print("found vehicle gui - deleting")
pl.PlayerGui:findFirstChild("VehicleGui").Parent=nil
print("deleted")
else
print("no gui found - wierd...")
end
end
end
end
end
end)
end))
ScreenGui40.Name = "VehicleGui"
ScreenGui40.Parent = VehicleSeat34
Frame41.Parent = ScreenGui40
Frame41.Transparency = 1
Frame41.Size = UDim2.new(0.200000003, 0, 0.0500000007, 0)
Frame41.Position = UDim2.new(0, 0, 0.800000012, 0)
Frame41.BackgroundColor3 = Color3.new(0.905882, 0.905882, 0.905882)
Frame41.BackgroundTransparency = 1
Frame41.BorderColor3 = Color3.new(0, 0, 0)
TextButton42.Name = "Machine"
TextButton42.Parent = Frame41
TextButton42.Transparency = 1
TextButton42.Size = UDim2.new(1, 0, 2, 0)
TextButton42.Style = Enum.ButtonStyle.RobloxButtonDefault
TextButton42.Text = "Machine Guns"
TextButton42.Position = UDim2.new(2, 0, -1, 0)
TextButton42.Active = false
TextButton42.Visible = false
TextButton42.BackgroundColor3 = Color3.new(0, 0, 1)
TextButton42.BackgroundTransparency = 1
TextButton42.BorderColor3 = Color3.new(0, 0, 0)
TextButton42.AutoButtonColor = false
TextButton42.FontSize = Enum.FontSize.Size24
TextButton42.TextColor3 = Color3.new(1, 1, 1)
TextButton43.Name = "SABOT"
TextButton43.Parent = Frame41
TextButton43.Transparency = 0.5
TextButton43.Size = UDim2.new(2, 0, 2, 0)
TextButton43.Text = "Launch Cruise Missile"
TextButton43.Position = UDim2.new(0.0350000001, 0, 1.5, 0)
TextButton43.BackgroundColor3 = Color3.new(0, 0, 0)
TextButton43.BackgroundTransparency = 0.5
TextButton43.BorderColor3 = Color3.new(0, 0, 0)
TextButton43.Font = Enum.Font.ArialBold
TextButton43.FontSize = Enum.FontSize.Size36
TextButton43.TextColor3 = Color3.new(1, 1, 1)
TextButton43.TextStrokeTransparency = 0
TextButton44.Name = "SMOKE"
TextButton44.Parent = Frame41
TextButton44.Size = UDim2.new(2, 0, 2, 0)
TextButton44.Style = Enum.ButtonStyle.RobloxButtonDefault
TextButton44.Text = "Fire SMOKE"
TextButton44.Position = UDim2.new(0.0500000007, 0, -3, 0)
TextButton44.Visible = false
TextButton44.BackgroundColor3 = Color3.new(0, 0, 1)
TextButton44.BorderColor3 = Color3.new(0, 0, 0)
TextButton44.FontSize = Enum.FontSize.Size48
TextButton44.TextColor3 = Color3.new(1, 1, 1)
TextButton45.Name = "HEAT"
TextButton45.Parent = Frame41
TextButton45.Transparency = 0.5
TextButton45.Size = UDim2.new(2, 0, 2, 0)
TextButton45.Text = "Fire 155mm Howitzer"
TextButton45.Position = UDim2.new(0.0250000115, 0, -1, 0)
TextButton45.Visible = false
TextButton45.BackgroundColor3 = Color3.new(0, 0, 0)
TextButton45.BackgroundTransparency = 0.5
TextButton45.BorderColor3 = Color3.new(0, 0, 0)
TextButton45.Font = Enum.Font.ArialBold
TextButton45.FontSize = Enum.FontSize.Size36
TextButton45.TextColor3 = Color3.new(1, 1, 1)
Script46.Parent = Frame41
table.insert(cors,sandbox(Script46,function()
repeat wait() until script.Parent.Parent.Vehicle.Value~=nil
db=false
held=false
v = script.Parent.Parent.Vehicle
f = script.Parent
sabot = script.Parent.SABOT
enable = script.Parent.Parent.red_roof
fakemiss = v.Value.FakeMissile
function launchsabot()
enable.Visible = true
v.Value.Effect.Smoke.Enabled = true
v.Value.Effect.Fire:Play()
v.Value.Effect.Transparency = .5
local v1=v.Value.Missile:clone()
v1.CFrame = v.Value.Missile.CFrame * CFrame.new(0, 0, -5)
v1.Smoke.Enabled = true
v1.Smoke1.Enabled = true
v1.Smoke2.Enabled = true
v1.Smoke3.Enabled = true
v1.Smoke4.Enabled = true
v1.Fire.Enabled = true
v1.Spark.Enabled = true
fakemiss:remove()
local vel=Instance.new("BodyVelocity")
vel.Parent=v1
v1.Velocity=v1.CFrame.lookVector*150
vel.velocity=v1.Velocity
v1.CanCollide=false
v1.Transparency= 0
v1.Parent=workspace
wait(12)
v1:remove()
v.Value.Effect.Transparency = 1
v.Value.Effect.Smoke.Enabled = false
wait(7)
v1:remove()
sabot.Visible = false
end
function sabotclick()
print("click missile")
if db==true then return end
db=true
sabot.Text="Reloading..."
launchsabot()
sabot.Visible = false
db=false
end
sabot.MouseButton1Click:connect(sabotclick)
end))
ObjectValue47.Name = "Vehicle"
ObjectValue47.Parent = ScreenGui40