-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnekov5.lua
More file actions
2907 lines (2076 loc) · 87.5 KB
/
nekov5.lua
File metadata and controls
2907 lines (2076 loc) · 87.5 KB
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
getgenv()._reanimate()
local folder = game:GetObjects('rbxassetid://10107385072')[1]
folder.Parent = workspace.non
local falsechar = folder:FindFirstChild('DefaultCharacter6')
falsechar:SetPrimaryPartCFrame(workspace.non.HumanoidRootPart.CFrame)
local limbs = {"Head","Torso","Left Leg","Right Leg","Left Arm","Right Arm"}
for _,v in ipairs(workspace.non:GetChildren()) do if v.Name == 'CharacterMesh' then v:Destroy() end end
workspace.non.Head:FindFirstChildOfClass('Decal').Transparency = 1
getgenv().RealRig.Head:FindFirstChildOfClass('Decal').Transparency=1
for _,v in ipairs(game.Players.LocalPlayer.Character:GetDescendants()) do if v:IsA('Accessory') then v.Handle.Transparency = 1 end end
for _,v in ipairs(getgenv().RealRig:GetChildren()) do if v:IsA('BasePart') then v.Transparency = 1 end end
for _,v in ipairs(falsechar:GetChildren()) do
print(v.Name, table.find(limbs, v.Name))
if table.find(limbs, v.Name) then
for _,t in ipairs(v:GetChildren()) do
if v.Name == 'Head' then
for _,c in ipairs(v:GetChildren()) do
if c.Name == 'BTWeld' then
c.Part0 = workspace.non.Head
end
end
end
if v.Name == 'Left Arm' then
for _,c in ipairs(v['Left Arm']:GetChildren()) do
if c.Name == 'BTWeld' and c.Part1.Name == 'Left Arm' then
c.Part1 = workspace.non['Left Arm']
end
end
end
if v.Name == 'Right Arm' then
v:FindFirstChild('Right Arm'):FindFirstChild('BTWeld').Part0 = workspace.non['Right Arm']
end
if v.Name == 'Left Leg' then
v.BTWeld.Part0 = workspace.non['Left Leg']
end
if v.Name == 'Right Leg' then
v.BTWeld.Part0 = workspace.non['Right Leg']
end
if v.Name == 'Torso' then
v.BTWeld.Part0 = workspace.non['Torso']
if v:FindFirstChild('Torso') then
for _,c in ipairs(v.Torso.Butt['Right Butt']:GetChildren()) do
if c.Part1.Name == 'Torso' then c.Part1 = workspace.non['Torso'] end
end
end
end
if not t:IsA('Motor6D') and not t:IsA('Attachment') then t.Parent = workspace.non[v.Name] end
end
end
end
--folder.explos.Parent = workspace.non
--local fakehef = folder:FindFirstChild('fakehef')
--fakehef.Parent = workspace.non
local rarmweld = Instance.new('Weld', workspace.non['Right Arm']['Right Arm'])
rarmweld.Part0 = workspace.non['Right Arm']['Right Arm']
rarmweld.Part1 = workspace.non['Right Arm']
rarmweld.C0 = CFrame.new(0,0,0)
rarmweld.Name = 'BTWeld'
falsechar.HumanoidRootPart:Destroy()
---------------------------
--/ \--
-- Script By: 123jl123 --
--\ /--
---------------------------
--local remote = NS ([=[
local TweenService = game:GetService("TweenService")
local RbxUtility = loadstring(game:HttpGet('https://raw.githubusercontent.com/Roblox/Core-Scripts/master/CoreScriptsRoot/Libraries/RbxUtility.lua'))()
local Create = RbxUtility.Create
local Player = game.Players.LocalPlayer
ZTfade=false
ZT=false
EffectPack = folder.Extras:Clone()
folder.Extras:Destroy()
local agresive = false
Target = Vector3.new()
Character= Player.Character
Torso = Character.Torso
Head = Character.Head
Humanoid = Character.Humanoid
LeftArm = Character["Left Arm"]
LeftLeg = Character["Left Leg"]
RightArm = Character["Right Arm"]
RightLeg = Character["Right Leg"]
RootPart = Character["HumanoidRootPart"]
local Anim="Idle"
local inairvel=0
local WalkAnimStep = 0
local sine = 0
local change = 1
Animstep = 0
WalkAnimMove=0.05
Combo = 0
local attack=false
local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint")
local Neck = Character.Torso:FindFirstChild("Neck")
local MAINRUINCOLOR = BrickColor.new("Lily white")
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
local forWFB = 0
local forWRL = 0
Effects=Instance.new("Folder",Character)
Effects.Name="Effects"
it=Instance.new
vt=Vector3.new
cf=CFrame.new
euler=CFrame.fromEulerAnglesXYZ
angles=CFrame.Angles
local cn = CFrame.new
mr=math.rad
mememode=false
IT = Instance.new
CF = CFrame.new
VT = Vector3.new
RAD = math.rad
C3 = Color3.new
UD2 = UDim2.new
BRICKC = BrickColor.new
ANGLES = CFrame.Angles
EULER = CFrame.fromEulerAnglesXYZ
COS = math.cos
ACOS = math.acos
SIN = math.sin
ASIN = math.asin
ABS = math.abs
MRANDOM = math.random
FLOOR = math.floor
local lastid= "http://www.roblox.com/asset/?id=876316256"
local s2=it("Sound",Character)
local CurId = 1
s2.EmitterSize = 30
local s2c=s2:Clone()
playsong = true
s2.SoundId = lastid
if playsong == true then
s2:play()
elseif playsong == false then
s2:stop()
end
lastsongpos= 0
crosshair = Instance.new("BillboardGui",Character)
crosshair.Size = UDim2.new(10,0,10,0)
crosshair.Enabled = false
imgl = Instance.new("ImageLabel",crosshair)
imgl.Position = UDim2.new(0,0,0,0)
imgl.Size = UDim2.new(1,0,1,0)
imgl.Image = "rbxassetid://578065407"
imgl.BackgroundTransparency = 1
imgl.ImageTransparency = .7
imgl.ImageColor3 = Color3.new(1,1,1)
crosshair.StudsOffset = Vector3.new(0,0,-1)
--//=================================\\
--|| LOCAL IDS
--\\=================================//
local GROWL = 1544355717
local ROAR = 528589382
local ECHOBLAST = 376976397
local CAST = 459523898
local ALCHEMY = 424195979
local BUILDUP = 698824317
local BIGBUILDUP = 874376217
local IMPACT = 231917744
local LARGE_EXPLOSION = 168513088
local TURNUP = 299058146
if Character:FindFirstChild("Animate")then
Character.Animate:Destroy()
end
function RemoveOutlines(part)
part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
end
CFuncs = {
Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
RemoveOutlines(Part)
return Part
end
}
,
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
if Mesh == "SpecialMesh" then
Msh.MeshType = MeshType
Msh.MeshId = MeshId
end
return Msh
end
}
,
Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale})
if Mesh == "SpecialMesh" then
Msh.MeshType = MeshType
Msh.MeshId = MeshId
end
return Msh
end
}
,
Weld = {Create = function(Parent, Part0, Part1, C0, C1)
local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1})
return Weld
end
}
,
Sound = {Create = function(id, par, vol, pit)
coroutine.resume(coroutine.create(function()
local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace})
wait()
S:play()
game:GetService("Debris"):AddItem(S, 6)
end
))
end
}
,
ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread})
return fp
end
}
}
coroutine.resume(coroutine.create(function() wait(.5)
local outfit = EffectPack.Outfit:Clone()
for i, v in pairs(outfit:GetChildren()) do
if v:IsA("Shirt") or v:IsA("Pants")or v:IsA("BodyColors")or v:IsA("CharacterMesh") then
v.Parent = Character
end
local blush = Instance.new("Decal",Head)
blush.Texture = "rbxassetid://898404027"
blush.Face = "Front"
CFuncs["Sound"].Create("rbxassetid://294861193", Character, 9,1)
if v:IsA("BasePart") then
local at1 = v:FindFirstChildOfClass("Attachment")
local at2 = nil
for i, v2 in pairs(Character:GetDescendants()) do
if v2:IsA("Attachment") and v2.Name == at1.Name and v2.Parent.Parent == Character then
at2 = v2
end
end
v.Parent = at2.Parent
local Weldhat = weld(v,at2.Parent,v,CF())
Weldhat.C0 = CF(at2.Position)*ANGLES(mr(at2.Orientation.x),mr(at2.Orientation.y),mr(at2.Orientation.z))
Weldhat.C1 = CF(at1.Position)*ANGLES(mr(at1.Orientation.x),mr(at1.Orientation.y),mr(at1.Orientation.z))
end
end
end))
--//=================================\\
--|| SAZERENOS ARTIFICIAL HEARTBEAT
--\\=================================//
Frame_Speed = 1 / 30
ArtificialHB = Instance.new("BindableEvent", script)
ArtificialHB.Name = "ArtificialHB"
script:WaitForChild("ArtificialHB")
frame = Frame_Speed
tf = 0
allowframeloss = false
tossremainder = false
lastframe = tick()
script.ArtificialHB:Fire()
local hbcon = game:GetService("RunService").Heartbeat:connect(function(s, p)
tf = tf + s
if tf >= frame then
if allowframeloss then
script.ArtificialHB:Fire()
lastframe = tick()
else
for i = 1, math.floor(tf / frame) do
script.ArtificialHB:Fire()
end
lastframe = tick()
end
if tossremainder then
tf = 0
else
tf = tf - frame * math.floor(tf / frame)
end
end
end)
game.Players.LocalPlayer.Character.Humanoid.Died:Connect(function()hbcon:Disconnect()end)
--//=================================\\
--\\=================================//
function Swait(NUMBER)
if NUMBER == 0 or NUMBER == nil then
ArtificialHB.Event:wait()
else
for i = 1, NUMBER do
ArtificialHB.Event:wait()
end
end
end
---------------
--[Functions]--
---------------
so = function(id, par, vol, pit)
CFuncs.Sound.Create(id, par, vol, pit)
end
function weld(parent,part0,part1,c0)
local weld=it("Weld")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
return weld
end
rayCast = function(Pos, Dir, Max, Ignore)
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
end
function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
local MoveStyle = Enum.EasingStyle[MoveStyle2]
local outorin = Enum.EasingDirection[outorin2]
local dahspeed=1
if attack == true and mememode == true then
dahspeed=5
end
if SPart.Name=="Bullet" then
dahspeed=1
end
local tweeningInformation = TweenInfo.new(
AnimTime/dahspeed,
MoveStyle,
outorin,
0,
false,
0
)
local MoveCF = CFr
local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
tweenanim:Play()
end
function GatherAllInstances(Parent,ig)
local Instances = {}
local Ignore=nil
if ig ~= nil then
Ignore = ig
end
local function GatherInstances(Parent,Ignore)
for i, v in pairs(Parent:GetChildren()) do
if v ~= Ignore then
GatherInstances(v,Ignore)
table.insert(Instances, v) end
end
end
GatherInstances(Parent,Ignore)
return Instances
end
function weld(parent,part0,part1,c0)
local weld=it("Weld")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
return weld
end
function joint(parent,part0,part1,c0)
local weld=it("Motor6D")
weld.Parent=parent
weld.Part0=part0
weld.Part1=part1
weld.C0=c0
return weld
end
ArmorParts = {}
--ArmorParts = {}
function WeldAllTo(Part1,Part2,scan,Extra)
local EXCF = Part2.CFrame * Extra
for i, v3 in pairs(scan:GetDescendants()) do
if v3:isA("BasePart") then
local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
v3.Anchored=false
v3.Massless = true
v3.CanCollide=false
v3.Parent = Part1
v3.Locked = true
if not v3:FindFirstChild("Destroy") then
table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })
else
v3:Destroy()
end
end
end
Part1.Transparency=1
--Part2:Destroy()
end
function JointAllTo(Part1,Part2,scan,Extra)
local EXCF = Part2.CFrame * Extra
for i, v3 in pairs(scan:GetDescendants()) do
if v3:isA("BasePart") then
local STW=joint(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() )
v3.Anchored=false
v3.Massless = true
v3.CanCollide=false
v3.Parent = Part1
v3.Locked = true
if not v3:FindFirstChild("Destroy") then
-- table.insert(ArmorParts,{Part = v3,Par = v3.Parent,Col = v3.Color,Mat=v3.Material.Name })
else
v3:Destroy()
end
end
end
Part1.Transparency=1
--Part2:Destroy()
end
--------------------------------------------Claws
local RClaw = EffectPack.Part:Clone()
RClaw.Parent = Character
RClaw.Name = "RightClaw"
RCW=weld(RightArm,RightArm,RClaw,cf(0,0,0))
--------------------------------------------
local LClaw = EffectPack.Part:Clone()
LClaw.Parent = Character
LClaw.Name = "LeftClaw"
LCW=weld(LeftArm,LeftArm,LClaw,cf(0,0,0))
--------------------------------------------
tailw = Torso:WaitForChild("Tail").Weld
tailc0 = tailw.C0
for _,v in pairs(folder.Armor:children()) do
if v:IsA("Model") then
if Character:FindFirstChild(""..v.Name) then
local Part1=Character:FindFirstChild(""..v.Name)
local Part2=v.Handle
WeldAllTo(Part1,Part2,v,CFrame.new(0,0,0))
end
end
end
local SToneTexture = Create("Texture")({
Texture = "http://www.roblox.com/asset/?id=1693385655",
Color3 = Color3.new(163/255, 162/255, 165/255),
})
function AddStoneTexture(part)
coroutine.resume(coroutine.create(function()
for i = 0,6,1 do
local Tx = SToneTexture:Clone()
Tx.Face = i
Tx.Parent=part
end
end))
end
New = function(Object, Parent, Name, Data)
local Object = Instance.new(Object)
for Index, Value in pairs(Data or {}) do
Object[Index] = Value
end
Object.Parent = Parent
Object.Name = Name
return Object
end
function Tran(Num)
local GivenLeter = ""
if Num == "1" then
GivenLeter = "a"
elseif Num == "2" then
GivenLeter = "b"
elseif Num == "3" then
GivenLeter = "c"
elseif Num == "4" then
GivenLeter = "d"
elseif Num == "5" then
GivenLeter = "e"
elseif Num == "6" then
GivenLeter = "f"
elseif Num == "7" then
GivenLeter = "g"
elseif Num == "8" then
GivenLeter = "h"
elseif Num == "9" then
GivenLeter = "i"
elseif Num == "10" then
GivenLeter = "j"
elseif Num == "11" then
GivenLeter = "k"
elseif Num == "12" then
GivenLeter = "l"
elseif Num == "13" then
GivenLeter = "m"
elseif Num == "14" then
GivenLeter = "n"
elseif Num == "15" then
GivenLeter = "o"
elseif Num == "16" then
GivenLeter = "p"
elseif Num == "17" then
GivenLeter = "q"
elseif Num == "18" then
GivenLeter = "r"
elseif Num == "19" then
GivenLeter = "s"
elseif Num == "20" then
GivenLeter = "t"
elseif Num == "21" then
GivenLeter = "u"
elseif Num == "22" then
GivenLeter = "v"
elseif Num == "23" then
GivenLeter = "w"
elseif Num == "24" then
GivenLeter = "x"
elseif Num == "25" then
GivenLeter = "y"
elseif Num == "26" then
GivenLeter = "z"
elseif Num == "27" then
GivenLeter = "_"
elseif Num == "28" then
GivenLeter = "0"
elseif Num == "29" then
GivenLeter = "1"
elseif Num == "30" then
GivenLeter = "2"
elseif Num == "31" then
GivenLeter = "3"
elseif Num == "32" then
GivenLeter = "4"
elseif Num == "33" then
GivenLeter = "5"
elseif Num == "34" then
GivenLeter = "6"
elseif Num == "35" then
GivenLeter = "7"
elseif Num == "36" then
GivenLeter = "8"
elseif Num == "37" then
GivenLeter = "9"
end
return GivenLeter
end
function MaybeOk(Mode,Extra)
local ReturningValue = ""
if Mode == 1 then
-- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
--print(v.C0)
local GivenText = ""
local msg = Extra
local Txt = ""
local FoundTime=0
local LastFound = 0
delay(wait(0),function()
for v3 = 1, #msg do
if string.sub(msg,0+v3,v3) == "," then
local TheN = string.sub(msg,LastFound,v3-1)
local NumTranslate = Tran(string.sub(msg,LastFound,v3-1))
FoundTime = FoundTime + 1
GivenText = GivenText..NumTranslate
LastFound=v3+1
Txt=""
end
Txt=string.sub(msg,1,v3)
-- Gui.ExtentsOffset = Vector3.new(0,3,0)
-- Gui.ExtentsOffset = Vector3.new(0,3,0)
wait()
-- Gui.ExtentsOffset = Vector3.new(0,3,0)
end;
ReturningValue=GivenText
for v3 = 1, #Txt do
Txt=string.sub(msg,-1,v3)
end;
-- Gui:remove()
end)
elseif Mode == 2 then
print("fat")
end
while ReturningValue == "" do wait() end
return ReturningValue
end
function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
local NEWMESH = IT(MESH)
if MESH == "SpecialMesh" then
NEWMESH.MeshType = MESHTYPE
if MESHID ~= "nil" and MESHID ~= "" then
NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
end
if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
end
end
NEWMESH.Offset = OFFSET or VT(0, 0, 0)
NEWMESH.Scale = SCALE
NEWMESH.Parent = PARENT
return NEWMESH
end
function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
local NEWPART = IT("Part")
NEWPART.formFactor = FORMFACTOR
NEWPART.Reflectance = REFLECTANCE
NEWPART.Transparency = TRANSPARENCY
NEWPART.CanCollide = false
NEWPART.Locked = true
NEWPART.Anchored = true
if ANCHOR == false then
NEWPART.Anchored = false
end
NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
NEWPART.Name = NAME
NEWPART.Size = SIZE
NEWPART.Position = Torso.Position
NEWPART.Material = MATERIAL
NEWPART:BreakJoints()
NEWPART.Parent = PARENT
return NEWPART
end
local S = IT("Sound")
function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP)
local NEWSOUND = nil
coroutine.resume(coroutine.create(function()
NEWSOUND = S:Clone()
NEWSOUND.Parent = PARENT
NEWSOUND.Volume = VOLUME
NEWSOUND.Pitch = PITCH
NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
NEWSOUND:play()
if DOESLOOP == true then
NEWSOUND.Looped = true
else
repeat wait(1) until NEWSOUND.Playing == false
NEWSOUND:remove()
end
end))
return NEWSOUND
end
function WACKYEFFECT(Table)
local TYPE = (Table.EffectType or "Sphere")
local SIZE = (Table.Size or VT(1,1,1))
local ENDSIZE = (Table.Size2 or VT(0,0,0))
local TRANSPARENCY = (Table.Transparency or 0)
local ENDTRANSPARENCY = (Table.Transparency2 or 1)
local CFRAME = (Table.CFrame or Torso.CFrame)
local MOVEDIRECTION = (Table.MoveToPos or nil)
local ROTATION1 = (Table.RotationX or 0)
local ROTATION2 = (Table.RotationY or 0)
local ROTATION3 = (Table.RotationZ or 0)
local MATERIAL = (Table.Material or "Neon")
local COLOR = (Table.Color or C3(1,1,1))
local TIME = (Table.Time or 45)
local SOUNDID = (Table.SoundID or nil)
local SOUNDPITCH = (Table.SoundPitch or nil)
local SOUNDVOLUME = (Table.SoundVolume or nil)
coroutine.resume(coroutine.create(function()
local PLAYSSOUND = false
local SOUND = nil
local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
PLAYSSOUND = true
SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
end
EFFECT.Color = COLOR
local MSH = nil
if TYPE == "Sphere" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
elseif TYPE == "Cylinder" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "Cylinder", "", "", SIZE, VT(0,0,0))
elseif TYPE == "Block" then
MSH = IT("BlockMesh",EFFECT)
MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
elseif TYPE == "Cube" then
MSH = IT("BlockMesh",EFFECT)
MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
elseif TYPE == "Wave" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
elseif TYPE == "Ring" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
elseif TYPE == "Slash" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
elseif TYPE == "Round Slash" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
elseif TYPE == "Swirl" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
elseif TYPE == "Skull" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
elseif TYPE == "Crystal" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
elseif TYPE == "Crown" then
MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0))
end
if MSH ~= nil then
local MOVESPEED = nil
if MOVEDIRECTION ~= nil then
MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
end
local GROWTH = SIZE - ENDSIZE
local TRANS = TRANSPARENCY - ENDTRANSPARENCY
if TYPE == "Block" then
SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Quad","InOut",TIME/60)
else
SetTween(EFFECT,{CFrame = CFRAME},"Quad","InOut",0)
end
wait()
SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Quad","InOut",TIME/60)
if TYPE == "Block" then
SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Quad","InOut",0)
else
SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Quad","InOut",0)
end
if MOVEDIRECTION ~= nil then
local ORI = EFFECT.Orientation
SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Quad","InOut",TIME/60)
SetTween(EFFECT,{Orientation=ORI},"Quad","InOut",TIME/60)
end
MSH.Scale = MSH.Scale - GROWTH/TIME
SetTween(MSH,{Scale=ENDSIZE},"Quad","InOut",TIME/60)
if TYPE == "Wave" then
SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},"Quad","InOut",TIME/60)
end
for LOOP = 1, TIME+1 do
wait(.05)
--SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Quad","InOut",0)
if TYPE == "Block" then
-- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Quad","InOut",0)
else
-- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Quad","InOut",0)
end
if MOVEDIRECTION ~= nil then
local ORI = EFFECT.Orientation
-- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Quad","InOut",0)
-- SetTween(EFFECT,{Orientation=ORI},"Quad","InOut",0)
end
end
game:GetService("Debris"):AddItem(EFFECT, 15)
if PLAYSSOUND == false then
EFFECT:remove()
else
SOUND.Stopped:Connect(function()
EFFECT:remove()
end)
end
else
if PLAYSSOUND == false then
EFFECT:remove()
else
repeat wait() until SOUND.Playing == false
EFFECT:remove()
end
end
end))
end
----------------------
--[End Of Functions]--
----------------------
------------------
--[Gun]--
------------------
function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size)
local Part = Create("Part"){
Parent = Parent,
Reflectance = Reflectance,
Transparency = Transparency,
CanCollide = false,
Locked = true,
BrickColor = BrickColor.new(tostring(BColor)),
Name = Name,
Size = Size,
Material = Material,
}
RemoveOutlines(Part)
return Part
end
------------------
--[End of Gun]--
------------------
---------------
--[Particles]--
---------------
local Particle2_1 = Create("ParticleEmitter"){
Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)),
Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}),
Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}),
Texture = "rbxassetid://241922778",
Lifetime = NumberRange.new(0.55,0.95),
Rate = 100,
VelocitySpread = 180,
Rotation = NumberRange.new(0),
RotSpeed = NumberRange.new(-200,200),
Speed = NumberRange.new(8.0),
LightEmission = 1,
LockedToPart = false,
Acceleration = Vector3.new(0, 0, 0),
EmissionDirection = "Top",
Drag = 4,
Enabled = false
}
local BEGONE_Particle = Create("ParticleEmitter"){
Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)),
Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}),
Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}),
Texture = "rbxassetid://936193661",
Lifetime = NumberRange.new(1.5),
Rate = 100,
VelocitySpread = 0,
Rotation = NumberRange.new(0),
RotSpeed = NumberRange.new(-10,10),
Speed = NumberRange.new(0),