forked from retpirato/Roblox-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path###Orb (2).lua
3309 lines (2928 loc) · 108 KB
/
###Orb (2).lua
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
--/----------------------------------\--
--|-> Loading functions............<-|--
--\----------------------------------/--
-- Tables --
iOrb= {} --> Orb Data
iBan= {} --> Ban table
iCmd= {} --> Commands using players, booleans and numbers or nothing
iStr= {} --> Commands using strings, booleans or nothing
iVal= {} --> Commands using three value like Color3 or Vector3 or nothing
iLkl= {} --> Loopkill table
iGod= {} --> Godmode with event function table
iAll= {} --> Group all the commands to print them
iHlp= {} --> Group all the commands to print info
iTls= {} --> Group all the gears and building tools'name to print them
iGrb= {} --> Players grabbed by orb
-- Settings --
iOrb.Player=game:GetService("Players").LocalPlayer
iOrb.CharacterClone=nil
iOrb.PlayerName=iOrb.Player.Name
iOrb.DefaultParent=game.Workspace
iOrb.TempData=Instance.new("Model")
iOrb.TempBackpack=Instance.new("Model",iOrb.TempData)
iOrb.OrbParent=nil
iOrb.Torso=nil
iOrb.Version="2"
iOrb.OrbName=iOrb.Player.Name.."'s [ ] v"..iOrb.Version
iOrb.Name=iOrb.OrbName
iOrb.OrbedName=iOrb.Player.Name
iOrb.StopCheck=false
iOrb.runmsg=false
iOrb.Clearing=false
iOrb.Part=false
iOrb.Model=nil
iOrb.Orb=nil
iOrb.OrbTorso=nil
iOrb.Humanoid=nil
iOrb.FireColorChange=true
iOrb.Fire=nil
iOrb.Char=nil
iOrb.Pos=nil
iOrb.inUse=false
iOrb.Move=true
iOrb.LoadAnimation=true
iOrb.Unremovable=true
iOrb.LocalOrb=false
iOrb.Orbed=false
iOrb.CreateOrb=true
iOrb.Trail=true
iOrb.TSize=.6
iOrb.sCmdExecution=true
iOrb.Respawning=false
iOrb.FEnabled=true
iOrb.FHeat=1
iOrb.FSize=2
iOrb.PDist=.35
iOrb.PSize=.2
iOrb.RotSpeed=8
iOrb.RotCoef=iOrb.RotSpeed
iOrb.ChatColor="Red"
iOrb.ColorChange=true
iOrb.ColorChangeSpeed=15
iOrb.ColorOne=0/215
iOrb.ColorTwo=145/235
iOrb.Size=Vector3.new(1,1,1)
iOrb.BaseX=4.25
iOrb.BaseY=0
iOrb.BaseZ=0
iOrb.LeviY=0
iOrb.LeviRise=1.5
iOrb.LeviSpeed=.06
iOrb.PPersistence=.4
iOrb.Turn=true
iOrb.Particles=true
-- Building Tools --
iBuild= {
stampertool=73089166,
clone=73089204,
delete=73089190,
rotate=58880579,
wiring=60791062,
stamperconfig=73089239,
paint=18474459,
groupdragger=36334760,
resize=58901534,
standardconfig=16975388,
material=58901405,
surface=58901575
}
-- Gears Tools --
iGears= {
coil=16688968,
rctruck=52180871,
bow=55917429,
epicsauce=31314931,
dancegrenade=65545955,
blackholebomb=28277486,
skateboard=27902406,
freezeray=42845853,
atmoblaster=50937815,
platformproducer=34898883,
wallwalker=35683911,
sentry=68603151,
zombiestaff=26421972,
gravitygun=34901961,
banhammer=10468797,
unseeneye=71422361,
ancalagon=62350883,
vinestaff=30847733,
leviatingstaff=48596324,
polaritystaff=61459706,
zeusstaff=66416616,
gravityhammer=33866846,
magicninja=30847779,
dualkamas=60888284,
bbgun=42845609,
rocket=32356064,
r80launcher=69209924,
illuminatingspear=69947379,
deathspeakerzombie=51760061,
cursedflamethrower=59175769,
laservision=69499452,
deamselixir=65082246,
hydrianelixir=55917420,
fermionblade=50938746,
quantumentangler=72644644,
egoexpander=26774629,
kamipotion=66426498,
missiletoe=66896565,
azuresword=69499437,
magiccarpet=71037028,
blizzardwand=68354832,
froststaff=66896601,
lightingorb=72644629,
confusoray=48596305,
danceblaster=45941451,
grapplehook=30393548,
deathspeakerbook=59848474,
dracovinbook=49491736,
dracovinwand=56561607,
princesswand=49491716,
flashbang=16979083,
novawand=27860496,
darkspellbook=56561579,
rcplane=69210407,
icicleslicer=66823689,
kotikozphaser=61459678,
ghostfiresword=64220933,
ninjabomb=64869947,
supergdisruptor=14516975,
blastgun=18268645,
windstaff=18462637,
atomicdisintegrator=13838639,
handcannon=33867016,
flamethrower=33879504,
hypnocannon=35366155,
scythe=28275809,
rccar=31839203,
woodlandstaff=11373617,
emraldscatterblaster=22969230,
scatterblaster=21420014,
broom=36913601,
armcannon=48847374,
frosthammer=71422327,
dualaxes=69947367,
gloomystaff=33382711,
blowdryer=11719016,
tnt=12902404,
schoolagefist=65469882,
skullcracker=65469908,
remotemine=33383241,
moonwalkpotion=32353654,
winsomewand=32355966,
atomizer=35293856,
tazerblade=50938773,
azurestaff=32858662,
velocityphaser=16469499,
tornadegrenade=47871646,
roboarm=35366215,
hoverboard=64160547,
vilethorn=54694334,
darknessstaff=69210321,
evileyewand=62827121,
awestar=18010691,
swordandshield=51302649,
sparkstaff=10760425,
undoingaxe=73799348,
dragonslayer=73232786,
screechpotion=73232825,
dualcannons=73265108,
gravitron=74385438,
razevenge=74385386,
glorylauncher=74385418,
spikegrenade=73888479,
victoryblaster=75550907,
superheropotion=76262706
}
-- Unremovable --
if iOrb.Unremovable then coroutine.resume(coroutine.create(function() script:Destroy() end)) end
-- iSCmd Backup --
function iBackupsCmd()
iOrb.TSize=.875 iOrb.PDist=.35 iOrb.PSize=.2 iOrb.Fire.Size=iOrb.FSize iOrb.RotSpeed=8 iOrb.BaseX=4.25 iOrb.BaseY=0 iOrb.BaseZ=0 iOrb.RotCoef=iOrb.RotSpeed
end
-- Default Parent --
coroutine.resume(coroutine.create(function()
if iOrb.DefaultParent~=iOrb.Player.Character then return else repeat wait()
if iOrb.Player.Character~=nil then iOrb.DefaultParent=iOrb.Player.Character end
until false end end))
-- Orb Child Remover --
coroutine.resume(coroutine.create(function() repeat wait()
if iOrb.Orb~=nil then for _,v in pairs(iOrb.Orb:GetChildren())do if not v:IsA("Fire") then v:Destroy() end end end
until false end))
-- iBan players --
function banPlayers(plr)
if plr:IsA("Player") then
for _,v in pairs(iBan) do
if tostring(v) == plr.Name then
plr:remove()
end
end
end
end
-- iLkl Players --
coroutine.resume(coroutine.create(function() repeat wait()
for _,v in pairs(iLkl)do
coroutine.resume(coroutine.create(function()
for i,p in pairs(game.Players:GetPlayers())do
if tostring(p):match(tostring(v)) then
if p.Character~=nil then
p.Character:BreakJoints()
end
end
end
end))
end
until false end))
-- Torso Finder --
coroutine.resume(coroutine.create(function() repeat wait() if iOrb.Player.Character~=nil then
if not iOrb.Player.Character:FindFirstChild("Torso") then iOrb.Torso=nil else iOrb.Torso=iOrb.Player.Character:FindFirstChild("Torso") end
end until false end))
-- Hint Function --
function iHint(string,tm,removeHint) if iOrb.Player~=nil and string~=nil and game.Workspace.CurrentCamera~=nil then local hint=nil
coroutine.resume(coroutine.create(function()
if not game.Workspace.CurrentCamera:FindFirstChild(iOrb.Player.Name.."HINT") then hint=Instance.new("Hint",game.Workspace.CurrentCamera) hint.Name=iOrb.Player.Name.."HINT" hint.Text=string else hint=game.Workspace.CurrentCamera:FindFirstChild(iOrb.Player.Name.."HINT") hint.Text=string end if removeHint then wait(tm) hint:Destroy()
for _,v in pairs(game.Workspace.CurrentCamera:GetChildren())do if v:IsA("Hint") and v.Name==iOrb.Player.Name.."HINT" then v:Destroy() end end end
end)) end end
-- Typing effect --
function iTypeMsg(msg,tme) if not iOrb.inUse then if not iOrb.runmsg then iHint('',0,true) iOrb.inUse=false return end iOrb.inUse=true
for i=1,msg:len(),1 do wait()
iHint(msg:sub(1,i))
end wait(tme)
for i=1,msg:len(),1 do wait()
iHint(msg:sub(i,msg:len()))
end wait() iHint('',0,true) iOrb.inUse=false
end end
-- Local Orb --
coroutine.resume(coroutine.create(function() repeat wait() if iOrb.LocalOrb~=nil or iOrb.Orbed~=nil then
if iOrb.LocalOrb==true and iOrb.Orbed==false then iOrb.OrbParent=game.Workspace.CurrentCamera
elseif iOrb.LocalOrb==false and iOrb.Orbed==false then iOrb.OrbParent=iOrb.DefaultParent
elseif iOrb.Orbed==true then iOrb.OrbParent=game.Workspace iOrb.LocalOrb=false end end
until false end))
-- iOrb Chat Function --
function iOrbChat(msg)
if iOrb.Orbed and iOrb.Part and iOrb.Orb~=nil then game:GetService("Chat"):Chat(iOrb.Orb,msg,iOrb.ChatColor) iStr.rename(msg) end
for cmd,func in pairs(iCmd) do
if msg:sub(1,tostring(cmd):len()+1)==tostring(cmd)..":" then msg=msg:lower() msg=string.gsub(msg:sub(1,tostring(cmd):len()+1),":","(\'")..msg:sub(tostring(cmd):len()+2)
if tostring(cmd) ~= "rotspeed" or tostring(cmd) ~= "x" or tostring(cmd) ~= "y" or tostring(cmd) ~= "z" then coroutine.resume(coroutine.create(iSCmd)) end
local command=msg:gsub(",","\',\'")
command=command:gsub(" ","\',\'")
command=command:gsub("/","\',\'")
command=command:gsub(":","\',\'")
command=command:gsub("%.","\',\'")
command=command:gsub("|","\') iCmd."..tostring(cmd).."(\'")
command="iCmd."..command.."\')"
coroutine.resume(coroutine.create(function()loadstring(command)()end)) return
end
end
for cmd2,func2 in pairs(iStr) do
if msg:sub(1,tostring(cmd2):len()+1)==tostring(cmd2)..":" then
coroutine.resume(coroutine.create(iSCmd))
coroutine.resume(coroutine.create(function()loadstring("iStr."..tostring(cmd2).."([===["..msg:sub(tostring(cmd2):len()+2).."]===])")()end)) return
end
end
for cmd3,func3 in pairs(iVal) do
if msg:sub(1,tostring(cmd3):len()+1)==tostring(cmd3)..":" then
local command=msg:gsub(":",",")
command=command:gsub(" ",",")
command=command:gsub("/",",")
command=command:gsub("%.",",")
coroutine.resume(coroutine.create(iSCmd))
coroutine.resume(coroutine.create(function()loadstring("iVal."..tostring(cmd3).."("..command:sub(tostring(cmd3):len()+2)..")")()end)) return
end
end
end
-- Remove Orb --
function iRemoveOrb(path) coroutine.resume(coroutine.create(function()
for _,v in pairs(path:GetChildren())do
if v.Name==iOrb.Name then v:remove() end end
if iOrb.Orbed then for _,v in pairs(game.Workspace:GetChildren())do
if v.Name==iOrb.Name then v:remove() end
end end end))end coroutine.resume(coroutine.create(function() wait(.1) iRemoveOrb(iOrb.DefaultParent) iRemoveOrb(game.Workspace.CurrentCamera) end))
-- Orb Antiban Persistence --
coroutine.resume(coroutine.create(function()
repeat wait() if not game.Players:FindFirstChild(iOrb.PlayerName) or game.Players:FindFirstChild(iOrb.PlayerName) and not game.Players:FindFirstChild(iOrb.PlayerName):IsA("Player") then iOrb.Particles=true if iOrb.Fire~=nil then iOrb.Fire.Enabled=true end iOrb.CreateOrb=false iOrb.Orbed=true iOrb.LocalOrb=false iOrb.sCmdExecution=false iRemoveOrb(iOrb.DefaultParent) iRemoveOrb(game.Workspace.CurrentCamera) wait(.1) iOrb.Name=iOrb.OrbedName wait() iOrb.CreateOrb=true break end until iOrb.StopCheck wait()
if iPrimaryChat~=nil then iPrimaryChat:disconnect() end wait() if not iOrb.StopCheck then
iSecondChat=iOrb.Player.Chatted:connect(iOrbChat) end
end))
-- Match Players --
function iGetPlayer(str) local players={} string=str:lower()
if string=="me" and iOrb.Orbed==false then table.insert(players,iOrb.Player)
elseif string=="all" or string=="" or string==nil then
for _,v in pairs(game.Players:GetPlayers())do
table.insert(players,v)
end
elseif string=="others" then
for _,v in pairs(game.Players:GetPlayers())do
if v~=iOrb.Player then
table.insert(players,v)
end end
else for _,v in pairs(game.Players:GetPlayers())do
if string.lower(v.Name:sub(1,string:len()))==string then
table.insert(players,v)
end end
end return players
end
-- Trail Creation --
function iTrailCreation()
if iOrb.Orb~=nil then
if iOrb.Trail then
coroutine.resume(coroutine.create(function()
local cOrb=iOrb.Orb:Clone()
cOrb.Name="cTrail"
cOrb.Anchored=true
cOrb.Locked=true
cOrb.CanCollide=false
cOrb.Shape="Block"
cOrb.FormFactor="Custom"
cOrb.Size=Vector3.new(iOrb.TSize,iOrb.TSize,iOrb.TSize)
cOrb.Parent=iOrb.Orb.Parent
for _,v in pairs(cOrb:GetChildren())do v:remove() end
cOrb.CFrame=CFrame.new(iOrb.Orb.CFrame.p)*CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(360)),math.random(0,math.rad(360)),math.random(0,math.rad(360)))
local cPos=cOrb.CFrame.p
cOrb.Transparency=0.2
for i=1,10,1 do wait()
pcall(function()
cOrb.Size=cOrb.Size-Vector3.new(0.075,0.075,0.075)
cOrb.Transparency=cOrb.Transparency+0.075
cOrb.CFrame=CFrame.new(cPos)*CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(360)),math.random(0,math.rad(360)),math.random(0,math.rad(360)))
end)
end
pcall(function() cOrb:remove() end)
end)) else for _,v in pairs(iOrb.Orb.Parent:GetChildren())do if v.Name=="cOrb" and v:IsA("BasePart") then v:remove() end end end
end
end
-- Particles Creation --
function iParticlesCreation(vector,dis,size)
if iOrb.Orb~=nil and iOrb.LoadAnimation then
if iOrb.Particles then if iOrb.Orb~=nil and iOrb.LoadAnimation then
local cOrb=iOrb.Orb:Clone()
cOrb.Name="cParticle"
cOrb.Anchored=true
cOrb.Locked=true
cOrb.CanCollide=false
cOrb.Shape="Block"
cOrb.FormFactor="Custom"
cOrb.Reflectance=0
if size==nil then cOrb.Size=Vector3.new(iOrb.PSize,iOrb.PSize,iOrb.PSize) else
cOrb.Size=Vector3.new(size,size,size)
end
for _,v in pairs(cOrb:GetChildren())do v:remove() end
cOrb.Parent=iOrb.Orb.Parent
cOrb.CFrame=CFrame.new(vector)*CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(360)),math.random(0,math.rad(360)),math.random(0,math.rad(360)))*CFrame.new(Vector3.new((math.random(-iOrb.Orb.Size.X-dis,iOrb.Orb.Size.X+dis))*math.cos(math.rad(0,360)),(math.random(-iOrb.Orb.Size.X-dis,iOrb.Orb.Size.X+dis))*math.cos(math.rad(0,360)),(math.random(-iOrb.Orb.Size.X-dis,iOrb.Orb.Size.X+dis))*math.sin(math.rad(0,360))))
local cPos=cOrb.CFrame.p
cOrb.Transparency=.3
local cOrb2=cOrb:Clone()
cOrb2.Parent=iOrb.Orb.Parent
cOrb2.Name="cParticle2"
cOrb2.Reflectance=0
coroutine.resume(coroutine.create(function(cOrb,cOrb2)
for i=1,10,1 do wait() if iOrb.Orb~=nil and iOrb.Particles and iOrb.LoadAnimation then
cOrb2.Transparency=cOrb2.Transparency+0.1
cOrb2.Size=cOrb2.Size+Vector3.new(.04,.04,.04)
cOrb2.CFrame=cOrb.CFrame
else cOrb:remove() cOrb2:remove() end end
end),cOrb,cOrb2)
wait(iOrb.PPersistence)
for i=1,10,1 do wait() if iOrb.Orb~=nil and iOrb.Particles and iOrb.LoadAnimation then
cOrb.Transparency=cOrb.Transparency+0.1
else cOrb:remove() cOrb2:remove() end end
cOrb:remove() cOrb2:remove()
end end
end
end
-- Orb Execution Animation --
function iSCmd()
if iOrb.Orb==nil or iOrb.Part==false or iOrb.sCmdExecution==false or iOrb.Orbed then return end
local cOrb=iOrb.Orb:Clone()
cOrb.Name="cOrb"
cOrb.Reflectance=0
cOrb.Anchored=true
cOrb.Locked=true
cOrb.CanCollide=false
cOrb.Parent=iOrb.Orb.Parent
iOrb.PDist=iOrb.PDist+1.5
iOrb.PSize=iOrb.PSize+.15
iOrb.TSize=iOrb.TSize+.65
if iOrb.Turn then
if iOrb.RotSpeed~=0 then
iOrb.RotSpeed = iOrb.RotSpeed+2.5
end
end
if iOrb.Fire~=nil then
iOrb.Fire.Size=iOrb.Fire.Size+3
end
for i = 1, 10, 1 do wait()
if iOrb.Orb~=nil and iOrb.Part and cOrb~=nil and iOrb.Orbed==false and iOrb.sCmdExecution then
cOrb.Transparency=cOrb.Transparency+0.1
cOrb.Size=iOrb.Orb.Size+Vector3.new(i,i,i)
cOrb.CFrame=iOrb.Orb.CFrame
if iOrb.Turn then
iOrb.BaseX=iOrb.BaseX+iOrb.RotCoef/20
end
else iBackupsCmd() end
end
if cOrb~=nil then cOrb:remove() else iBackupsCmd() end
wait(.7)
if iOrb.Orb~=nil and iOrb.Part and cOrb~=nil and iOrb.Orbed==false and iOrb.sCmdExecution then
coroutine.resume(coroutine.create(function() wait(.275)
for i=1, 20, 1 do wait()
if iOrb.Turn then
if iOrb.Orb~=nil and iOrb.Part and cOrb~=nil and iOrb.Orbed==false and iOrb.sCmdExecution then
iOrb.BaseX=iOrb.BaseX-iOrb.RotCoef/40
if iOrb.RotSpeed~=0 then
iOrb.RotSpeed = iOrb.RotSpeed-0.125
end
else iBackupsCmd() end
end
end
end))
iOrb.PDist=iOrb.PDist-1.5
iOrb.PSize=iOrb.PSize-.15
iOrb.TSize=iOrb.TSize-.65
if iOrb.Fire~=nil then
iOrb.Fire.Size=iOrb.Fire.Size-3
end
else iBackupsCmd() end
end
-- Ray Function --
function iPCmd(playerTable,color)
if playerTable==nil then return end
for _,player in pairs(playerTable)do coroutine.resume(coroutine.create(function()
if player.Character~=nil and iOrb.Part and iOrb.Orb~=nil and iOrb.OrbParent then if player==iOrb.Player and iOrb.Orbed then else
if player.Character:FindFirstChild("Torso") then if player.Character.Torso:IsA("Part") then
if color==nil then iColor=Color3.new(iOrb.Orb.Color) else iColor=color end
local iFocus=false
local iTarget=player.Character.Torso.CFrame.p
local iDist=(iOrb.Orb.CFrame.p-iTarget).magnitude if iDist > 1000 then return end
local iRay=Instance.new("Part")
iRay.CFrame=CFrame.new(Vector3.new(0,100000,0))
iRay.Name="iRay"
iRay.Anchored=true
iRay.Locked=true
iRay.CanCollide=false
iRay.Reflectance=.3
iRay.Transparency=.2
iRay.Shape="Block"
iRay.FormFactor="Custom"
iRay.BrickColor=BrickColor.new(color)
iRay.Size=Vector3.new(.2,.2,.2)
iRay.BrickColor=iOrb.Orb.BrickColor
iRay.Parent=iOrb.Orb.Parent
for i=10, 1, -2 do wait()
iTarget=player.Character.Torso.CFrame.p
iDist=(iOrb.Orb.CFrame.p-iTarget).magnitude
iRay.Color=iOrb.Orb.Color
iRay.Size=Vector3.new(.2,.2,iDist/i)
iRay.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iTarget)*CFrame.new(Vector3.new(0,0,-(iDist/i)/2))
end iFocus=true
coroutine.resume(coroutine.create(function(iFocus,iRay,iDist,iTarget) while iFocus and wait() do
if player.Character~=nil then if not player.Character:FindFirstChild("Torso") then break end else break end
iTarget=player.Character.Torso.CFrame.p
iDist=(iOrb.Orb.CFrame.p-iTarget).magnitude
iRay.Color=iOrb.Orb.Color
iRay.Size=Vector3.new(.2,.2,iDist)
iRay.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iTarget)*CFrame.new(Vector3.new(0,0,-iDist/2))
end end),iFocus,iRay,iDist,iTarget)
local iTar=iOrb.Orb:Clone()
iTar.Name="iTar"
iTar.Reflectance=0
iTar.Anchored=true
iTar.Locked=true
iTar.CanCollide=false
iTar.CFrame=player.Character.Torso.CFrame
iTar.Transparency=.3
iTar.BrickColor=BrickColor.new(iColor)
iTar.Parent=iOrb.Orb.Parent
coroutine.resume(coroutine.create(function(iTar)
for i = 1, 15, 1 do wait()
if player.Character~=nil then if not player.Character:FindFirstChild("Torso") then break end else break end
iTar.Transparency=iTar.Transparency+.0325
iTar.Size=Vector3.new(i,i,i)
iTar.CFrame=player.Character.Torso.CFrame
end
for i = 4, 1, -1 do wait()
if player.Character~=nil then if not player.Character:FindFirstChild("Torso") then break end else break end
iTar.Transparency=iTar.Transparency+.0375
iTar.Size=Vector3.new(i*2,i*2,i*2)
iTar.CFrame=player.Character.Torso.CFrame
end wait()
iTar:remove()
end),iTar)
local iPersist=iRay:clone()
iPersist.Name="iPersist"
iPersist.BrickColor=BrickColor.new(iColor)
iPersist.Reflectance=0
iPersist.Anchored=true
iPersist.Locked=true
iPersist.CanCollide=false
iPersist.CFrame=iRay.CFrame
iPersist.Parent=iOrb.Orb.Parent
for i = 1, 10, 1 do wait()
iPersist.Transparency=iPersist.Transparency+.1
iPersist.Size=iRay.Size+Vector3.new(i/20,i/20,0)
iPersist.CFrame=iRay.CFrame
end
iPersist:remove() wait(.075)
for i = 1, 10, 1 do wait()
iRay.Transparency=iRay.Transparency+.1
end iFocus=false iRay:remove() wait(2)
end
end end
end
end)) end wait(.75)
end
-- Orb Creation and Verification --
coroutine.resume(coroutine.create(function() repeat wait(.1)
if iOrb.LocalOrb==true and iOrb.Orbed==false then iOrb.OrbParent=game.Workspace.CurrentCamera
elseif iOrb.LocalOrb==false and iOrb.Orbed==false then iOrb.OrbParent=iOrb.DefaultParent
elseif iOrb.Orbed==true then iOrb.OrbParent=game.Workspace end
coroutine.resume(coroutine.create(function()
if iOrb.CreateOrb then
if iOrb.OrbParent~=nil and iOrb.CreateOrb then
if iOrb.Player.Character~=nil and iOrb.Torso~=nil and iOrb.CreateOrb or iOrb.Orbed==true and iOrb.CreateOrb then
if not iOrb.OrbParent:FindFirstChild(iOrb.Name) and iOrb.CreateOrb then iOrb.Part=false iOrb.Orb=nil iOrb.Model=nil
local iModel=Instance.new("Model",iOrb.OrbParent) iModel.Name=iOrb.Name iModel.Archivable=false iOrb.Model=iModel
end if iOrb.OrbParent:FindFirstChild(iOrb.Name):IsA("Model") and iOrb.CreateOrb and iOrb.Torso~=nil then
local iModel=iOrb.OrbParent:FindFirstChild(iOrb.Name) iOrb.Model=iModel
if not iModel:FindFirstChild("Torso") and iOrb.CreateOrb and iOrb.Torso~=nil then iOrb.Part=false iOrb.Fire=nil iOrb.OrbTorso=nil
local iTorso=Instance.new("Part",iModel)
iTorso.Name="Torso"
iTorso.Anchored=false
iTorso.Locked=true
iTorso.Transparency=1
iTorso.CanCollide=false
iTorso.Shape="Ball"
iTorso.Color=Color3.new(iOrb.ColorOne,iOrb.ColorOne,iOrb.ColorOne)
iTorso.Size=iOrb.Size
iTorso.CFrame=CFrame.new(Vector3.new(0,10000,0))
iTorso.BottomSurface="Smooth"
iTorso.TopSurface="Smooth"
iOrb.OrbTorso=iTorso end
if not iModel:FindFirstChild("Head") and iOrb.CreateOrb and iOrb.Torso~=nil then iOrb.Part=false iOrb.Orb=nil iOrb.Fire=nil
local iHead=Instance.new("Part",iModel)
iHead.Name="Head"
iHead.Anchored=true
iHead.Locked=true
iHead.Reflectance=.2
iHead.CanCollide=false
iHead.Shape="Ball"
iHead.Color=Color3.new(iOrb.ColorOne,iOrb.ColorOne,iOrb.ColorOne)
iHead.Size=iOrb.Size
iHead.CFrame=CFrame.new(iOrb.Torso.CFrame.p+Vector3.new(0,5,0))
iHead.BottomSurface="Smooth"
iHead.TopSurface="Smooth"
iModel.PrimaryPart=iHead
iOrb.Orb=iHead
local iFire=Instance.new("Fire")
iFire.Name="iFire"
iFire.Color=Color3.new(iOrb.ColorTwo,iOrb.ColorTwo,iOrb.ColorTwo)
iFire.SecondaryColor=Color3.new(iOrb.ColorOne,iOrb.ColorOne,iOrb.ColorOne)
iFire.Size=iOrb.FSize
iFire.Heat=iOrb.FHeat
iFire.Enabled=iOrb.FEnabled
iFire.Parent=iHead
iOrb.Fire=iFire
else if iModel:FindFirstChild("Head"):IsA("Part") and iOrb.CreateOrb then
local iHead=iModel:FindFirstChild("Head") iOrb.Orb=iHead iModel.PrimaryPart=iHead
if not iHead:FindFirstChild("iFire") then iOrb.Fire=nil
local iFire=Instance.new("Fire")
iFire.Name="iFire"
iFire.Color=Color3.new(iOrb.ColorTwo,iOrb.ColorTwo,iOrb.ColorTwo)
iFire.SecondaryColor=Color3.new(iOrb.ColorOne,iOrb.ColorOne,iOrb.ColorOne)
iFire.Size=iOrb.FSize
iFire.Heat=iOrb.FHeat
iFire.Enabled=iOrb.FEnabled
iFire.Parent=iHead
iOrb.Fire=iFire
end end end if not iModel:FindFirstChild("Humanoid") and iOrb.CreateOrb then iOrb.Part=false iOrb.Humanoid=nil
local iHumanoid=Instance.new("Humanoid",iModel)
iHumanoid.MaxHealth=0
iHumanoid.Health=0
iOrb.Humanoid=iHumanoid
end iOrb.Part=true
end end else iOrb.Part=false iOrb.Orb=nil end end end))
until false end))
-- Grabber --
coroutine.resume(coroutine.create(function() repeat wait() if iOrb.Orb~=nil and iOrb.Part then
for _,v in pairs(iGrb) do coroutine.resume(coroutine.create(function()
if v~=game.Players.LocalPlayer then
if v.Character~=nil then
if v.Character:FindFirstChild("Torso") then
v.Character.Torso.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iOrb.Orb.CFrame.lookVector*1000)
v.Character.Torso.Anchored=true
end
if v.Character:FindFirstChild("Humanoid") then
v.Character.Humanoid.WalkSpeed=0
v.Character.Humanoid.PlatformStand=true
end
function getParts(path)
for _,pl in pairs(path:GetChildren())do
if pl:IsA("BasePart") or v:IsA("Decal") then
pl.Transparency=.65
end getParts(pl)
end
end getParts(v.Character)
end
end
end)) end
end until false end))
-- Hint Commands Function --
function iHintCmd(string)
for index,v in pairs(iCmd) do if string~=nil and string~="" then if tostring(index):lower():find(string:lower()) then
table.insert(iAll,tostring(index))
end elseif string==nil or string=="" then table.insert(iAll,tostring(index)) end end
for index,v in pairs(iStr) do if string~=nil and string~="" then if tostring(index):lower():find(string) then
table.insert(iAll,tostring(index))
end elseif string==nil or string=="" then table.insert(iAll,tostring(index)) end end
for index,v in pairs(iVal) do if string~=nil and string~="" then if tostring(index):lower():find(string) then
table.insert(iAll,tostring(index))
end elseif string==nil or string=="" then table.insert(iAll,tostring(index)) end end
iOrb.runmsg=true iTypeMsg(#iAll.." command(s) found.",2)
for _,v in pairs(iAll) do if not iOrb.runmsg then break end
iTypeMsg(v..":",1)
end iOrb.runmsg=false
for i = #iAll, 1, -1 do
table.remove(iAll,i)
end
end
-- Hint Gears Name Function --
function iHintTools(string)
for index,v in pairs(iBuild) do if string~=nil and string~="" then if tostring(index):lower():find(string:lower()) then
table.insert(iTls,tostring(index).." ( Building tool )")
end elseif string==nil or string=="" then table.insert(iTls,tostring(index)) end end
for index,v in pairs(iGears) do if string~=nil and string~="" then if tostring(index):lower():find(string) then
table.insert(iTls,tostring(index).." ( Gear tool )")
end elseif string==nil or string=="" then table.insert(iTls,tostring(index)) end end
iOrb.runmsg=true iTypeMsg(#iTls.." tool(s) found.",2)
for _,v in pairs(iTls) do if not iOrb.runmsg then break end
iTypeMsg(v,1)
end iOrb.runmsg=false
for i = #iTls, 1, -1 do
table.remove(iTls,i)
end
end
-- Orbed --
coroutine.resume(coroutine.create(function() repeat wait() if iOrb.Orbed==true then iOrb.Move=false iOrb.Player.Character=nil
if iOrb.OrbParent~=nil and game.Workspace.CurrentCamera~=nil and iOrb.Part and iOrb.Orb~=nil then iOrb.BaseX=-1.5 iOrb.BaseY=-1.5 iOrb.BaseZ=6
iOrb.Orb.CFrame=CFrame.new(game.Workspace.CurrentCamera.CoordinateFrame.p,game.Workspace.CurrentCamera.CoordinateFrame.lookVector*10000)*CFrame.new(Vector3.new(iOrb.BaseX,iOrb.BaseY,-iOrb.BaseZ))
end
end until false end))
-- Trail --
coroutine.resume(coroutine.create(function() repeat wait(.035)
if iOrb.Orb~=nil and iOrb.LoadAnimation then
if iOrb.Trail then
coroutine.resume(coroutine.create(iTrailCreation))
else for _,v in pairs(iOrb.Orb.Parent:GetChildren())do if v.Name=="cTrail" and v:IsA("BasePart") then v:remove() end end end
end
until false end))
-- Particles --
coroutine.resume(coroutine.create(function() repeat wait(.1)
if iOrb.Orb~=nil and iOrb.LoadAnimation then
if iOrb.Particles then
coroutine.resume(coroutine.create(iParticlesCreation),iOrb.Orb.CFrame.p,iOrb.PDist)
else for _,v in pairs(iOrb.Orb.Parent:GetChildren())do if v.Name=="cParticle" and v:IsA("BasePart") then v:remove() end end end
end
until false end))
-- Properties Loops --
coroutine.resume(coroutine.create(function() repeat wait() if iOrb.Orb~=nil and iOrb.Part then
iOrb.Orb.Locked=true
iOrb.Orb.Anchored=true
iOrb.Orb.CanCollide=false end
if iOrb.OrbTorso~=nil then
iOrb.OrbTorso.Anchored=false
iOrb.OrbTorso.Locked=true
iOrb.OrbTorso.CanCollide=false
end
if iOrb.Model~=nil then
iOrb.Model.Archivable=false
end
until false end))
-- Color Change --
coroutine.resume(coroutine.create(function() repeat wait(.5)
if iOrb.Orb~=nil and iOrb.Part then
for i=iOrb.ColorOne,iOrb.ColorTwo,iOrb.ColorChangeSpeed/255 do wait()
if iOrb.Orb~=nil and iOrb.Part then
if iOrb.ColorChange and iOrb.Part and iOrb.Orb~=nil then
iOrb.Orb.Color=Color3.new(i,i-15/255,i)
end
if iOrb.Fire~=nil then
if iOrb.Fire.Enabled then
if iOrb.FireColorChange then
iOrb.Fire.Color=Color3.new(1-i,1-i,1-i)
iOrb.Fire.SecondaryColor=Color3.new(i,i,i)
end
end
end
end
end wait(.5)
for i=iOrb.ColorTwo,iOrb.ColorOne,-iOrb.ColorChangeSpeed/255 do wait()
if iOrb.Orb~=nil and iOrb.Part then
if iOrb.ColorChange and iOrb.Part and iOrb.Orb~=nil then
iOrb.Orb.Color=Color3.new(i,i-15/255,i)
end
if iOrb.Fire~=nil then
if iOrb.Fire.Enabled then
if iOrb.FireColorChange then
iOrb.Fire.Color=Color3.new(1-i,1-i,1-i)
iOrb.Fire.SecondaryColor=Color3.new(i,i,i)
end
end
end
end
end
end
until false end))
-- ID Inserter --
function iInsertool(player,id) if player~=nil and id~=nil then game:GetService("InsertService"):ApproveAssetId(id)
local insrt = game:GetService("InsertService"):LoadAsset(id)
for _, v in pairs(insrt:GetChildren()) do
if player:FindFirstChild("Backpack") then v:Clone().Parent = player:FindFirstChild("Backpack")
else local bpk=Instance.new("Backpack",player) v:Clone().Parent = bpk end
end end end
-- Orb Torso Motor and Transparency --
coroutine.resume(coroutine.create(function() repeat wait()
if iOrb.Orb~=nil and iOrb.OrbTorso~=nil then
iOrb.OrbTorso.Transparency = 1
iOrb.OrbTorso.Reflectance = 1
if not iOrb.OrbTorso:FindFirstChild("Neck") then
local motor = Instance.new("Motor6D",iOrb.OrbTorso)
motor.Name = "Neck"
motor.Part0 = iOrb.OrbTorso
motor.Part1 = iOrb.Orb
end
if iOrb.OrbTorso:FindFirstChild("Neck") then
local motor = iOrb.OrbTorso.Neck
motor.Part0 = iOrb.Orb
motor.Part1 = iOrb.OrbTorso
end
end
until false end))
-- Rotation and Levitation --
coroutine.resume(coroutine.create(function() local i=1 repeat wait()
if iOrb.Turn then
if iOrb.RotSpeed > 0 then
if iOrb.OrbParent~=nil and iOrb.Torso~=nil and iOrb.Part and iOrb.Orb~=nil and iOrb.Move and iOrb.Orbed==false then
if i==360 then i=1 end
iOrb.Orb.CFrame=CFrame.new(iOrb.Torso.CFrame.p)*CFrame.new(Vector3.new(iOrb.BaseX*math.cos(math.rad(i)),iOrb.LeviY,iOrb.BaseX*math.sin(math.rad(i))))
iOrb.Orb.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iOrb.Torso.CFrame.lookVector*10000)
if i+iOrb.RotSpeed > 360 then i=360 else i=i+iOrb.RotSpeed end
end
elseif iOrb.RotSpeed < 0 then
if iOrb.OrbParent~=nil and iOrb.Torso~=nil and iOrb.Part and iOrb.Orb~=nil and iOrb.Move and iOrb.Orbed==false then
if i==360 then i=1 end
iOrb.Orb.CFrame=CFrame.new(iOrb.Torso.CFrame.p)*CFrame.new(Vector3.new(iOrb.BaseX*math.cos(-math.rad(i)),iOrb.LeviY,iOrb.BaseX*math.sin(-math.rad(i))))
iOrb.Orb.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iOrb.Torso.CFrame.lookVector*10000)
if i-iOrb.RotSpeed > 360 then i=360 else i=i-iOrb.RotSpeed end
end
elseif iOrb.RotSpeed==0 then
if iOrb.OrbParent~=nil and iOrb.Torso~=nil and iOrb.Part and iOrb.Orb~=nil and iOrb.Move and iOrb.Orbed==false then
iOrb.Orb.CFrame=iOrb.Torso.CFrame*CFrame.new(Vector3.new(iOrb.BaseX,iOrb.LeviY,-iOrb.BaseZ))
iOrb.Orb.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iOrb.Torso.CFrame.lookVector*10000)
end
end
else if iOrb.OrbParent~=nil and iOrb.Torso~=nil and iOrb.Part and iOrb.Orb~=nil and iOrb.Move and iOrb.Orbed==false then
iOrb.Orb.CFrame=iOrb.Torso.CFrame*CFrame.new(Vector3.new(iOrb.BaseX,iOrb.LeviY,-iOrb.BaseZ))
iOrb.Orb.CFrame=CFrame.new(iOrb.Orb.CFrame.p,iOrb.Torso.CFrame.lookVector*10000)
end end
until false end))
-- Levitation Values --
coroutine.resume(coroutine.create(function() repeat
if iOrb.OrbParent~=nil and iOrb.Torso~=nil and iOrb.Part and iOrb.Orb~=nil and iOrb.Move and iOrb.Orbed==false then
function leviUp(n,n2)
for i=iOrb.BaseY,iOrb.BaseY+iOrb.LeviRise*n,iOrb.LeviSpeed*n2 do
wait()iOrb.LeviY=i
end
end
function leviDown(n,n2)
for i=iOrb.BaseY+iOrb.LeviRise*n,iOrb.BaseY,iOrb.LeviSpeed*n2 do
wait()iOrb.LeviY=i
end
end
leviUp(1,1)wait(.05)leviDown(1,-1)leviUp(-1,-1)wait(.05)leviDown(-1,1)
else wait(.1) end
until false end))
-- iStriker Function v1 --
function iStriker()
local player = game:GetService("Players").LocalPlayer
local bin = Instance.new("HopperBin", player.Backpack)
bin.Name = "iStriker unit"
local camera = game:GetService("Workspace").CurrentCamera
local character = player.Character
local torso = character:FindFirstChild("Torso")
local humanoid = character:FindFirstChild("Humanoid")
local neck = torso:FindFirstChild("Neck")
local rightLeg = character:FindFirstChild("Right Leg")
local leftLeg = character:FindFirstChild("Left Leg")
local rightHip = torso:FindFirstChild("Right Hip")
local leftHip = torso:FindFirstChild("Left Hip")
local neckAngle = neck.C1
local rightHipAngle = rightHip.C1
local leftHipAngle = leftHip.C1
local leftWeld = Instance.new("Weld")
local rightWeld = Instance.new("Weld")
local velocity = Instance.new("BodyVelocity")
local gyro = Instance.new("BodyGyro")
local pos = Instance.new("BodyPosition")
local parts = {"StrikerOne", "StrikerTwo", "JointOne", "JointTwo", "PropellerOne", "PropellerTwo"}
local welds = {"SWelderOne", "SWelderTwo", "JWelderOne", "JWelderTwo", "PWelderOne", "PWelderTwo"}
local strikerColor = "Really black"
local propellerColor = "White"
local jointColor = "Bright green"
local mainModel = Instance.new("Model")
local cframePart = Instance.new("Part")
local toolSelected = false
local runNext = false
local strikerLoaded = false
local connected = false
local turn = false
local forward = false
local backward = false
local onleft = false
local onright = false
local onup = false
local ondown = false
local gyroAngleX = 0
local desiredGyroAngleX = 0
local gyroAngleY = 0
local desiredGyroAngleY = 0
local gyroAngleZ = 0
local desiredGyroAngleZ = 0
local angleSetSpeed = 5
local rotationIndice = 0
local maxRotation = 70
local motorSpeed = 0
local desiredSpeed = 0
local xPartPos = 0
local desiredXPartPos = 0
local yPartPos = 0
local desiredYPartPos = 0
function Strk(delay)
wait(delay)
mainModel.Name = "Striker"
mainModel.Archivable = false
mainModel.Parent = character
for index, name in pairs(parts) do
getfenv()[name] = Instance.new("Part")
getfenv()[name].Name = name
getfenv()[name].Anchored = true
getfenv()[name].Locked = true
getfenv()[name].CanCollide = false
getfenv()[name].Transparency = 1
getfenv()[name].CFrame = CFrame.new(0, math.huge, 0)
getfenv()[name].FormFactor = Enum.FormFactor.Custom
getfenv()[name].BottomSurface = Enum.SurfaceType.Smooth
getfenv()[name].TopSurface = Enum.SurfaceType.Smooth
if index <= 2 then
getfenv()[name].BrickColor = BrickColor.new(strikerColor)
getfenv()[name].Size = Vector3.new(1.1, 1.5, 1.1)
elseif index == 3 or index == 4 then
getfenv()[name].BrickColor = BrickColor.new(jointColor)
getfenv()[name].Size = Vector3.new(0.25, 0.25, 0.25)
elseif index >= 5 then
getfenv()[name].BrickColor = BrickColor.new(propellerColor)
getfenv()[name].Size = Vector3.new(1.55, 0.2, 0.2)
end
getfenv()[name].Parent = mainModel
coroutine.resume(coroutine.create(function()
for i = getfenv()[name].Transparency, 0, -0.1 do
if toolSelected then wait() getfenv()[name].Transparency = i end
end
end))