-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathDear Sister Pistol FREE.lua
3078 lines (3036 loc) · 133 KB
/
Dear Sister Pistol FREE.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
loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Tescalus/Pendulum-Hubs-Source/main/Pendulum%20Hub%20Align%20Method.lua"))()
loadstring(game:HttpGet("https://raw.githubusercontent.com/Tescalus/Pendulum-Hubs-Source/main/Reanimation.lua"))()
--Converted with ttyyuu12345's model to script plugin v4
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"))
Script0 = Instance.new("Script")
ObjectValue1 = Instance.new("ObjectValue")
LocalScript2 = Instance.new("LocalScript")
LocalScript3 = Instance.new("LocalScript")
Script0.Name = "dearsister"
Script0.Parent = mas
table.insert(cors,sandbox(Script0,function()
--[[
-==// < Client-Replication By Chirunoo > \\ ==-
___________
/
/ \ X / \
-< \ / >-
\ \ / /
V
--]]
script.Owner.Value = game.Players.LocalPlayer.Name
local Player = script:WaitForChild("Owner").Value
local IsEnded = false
local Character = Player.Character
local ScriptName = script.Name
local MainScript = script.Main:Clone()
local Faker = script.Faker:Clone()
script.Main:Destroy()
script.Faker:Destroy()
local prefix = "-<"
local enc = {}
local GUID = {}
do
GUID.IDs = {};
function GUID:new(len)
local id;
if(not len)then
id = (tostring(function() end))
id = id:gsub("function: ","")
else
local function genID(len)
local newID = ""
for i = 1,len do
newID = newID..string.char(math.random(48,90))
end
return newID
end
repeat id = genID(len) until not GUID.IDs[id]
local oid = id;
id = {Trash=function() GUID.IDs[oid]=nil; end;Get=function() return oid; end}
GUID.IDs[oid]=true;
end
return id
end
end
function Encrypt(str)
local enced = ""
for Z = 1,str:len() do
for i,v in pairs(enc) do
if i == str:sub(Z,Z) then
enced = enced..v
end
end
end
return enced
end
function Decrypt(str)
local ENCED = str
local deced = ""
repeat wait()
for i,v in pairs(enc) do
if ENCED:sub(1,v:len()) == v then
deced = deced..i
ENCED = ENCED:sub(v:len()+1)
end
end
until ENCED:len() == 0
return deced
end
enc["a"] = "hfuaf9gea79dfhEA^(Fg9huafe68AFG8ayherAH"enc["b"] = "FEATG*faefbiyAFTve8193rbyt48fvebEAFyigvf83byfAE"enc["c"] = "<AFL:,]opewifunueirbyfgab7t192y83t12fgv7u"enc["d"] = "FBYAI8t6afFUBu;3rAENFfae"enc["e"] = "afUHeyfgawifgaweiw;efwafby;a"enc["f"] = "fyaifbAYFt8yPA*FGE^APfgat8fpb"enc["g"] = "AYF*wt6guob[23hprf860abyohWFAGYb'qijwo;aWK\op'"enc["h"] = "AFgw96129r3fuby8AEFg0byaniwjofuABWYWFtuwafegersh3$#$%"enc["i"] = "#%J!JHF&(HW80FHeuwbfya(IWFGA*^Wgbnbiuaweubyr:Febsiyg"enc["j"] = "FAga9fuo34iygf8a9fauoeha879fh6684fNAf;ioubfawpenogjeg"enc["k"] = "AFyg486bd38q26bf8q3gb43q87tgb4uWABDYUfvbiauefbhyaweguoeg"enc["l"] = "H&(FFG(^$B(duo(AFH^A(EFHuofhe9pfgberygw;abIFYAIEFbuwbnfiybawefAF"enc["m"] = "fUFAH(AFEYHbunawegrysegh0segrhgor;USGHpigBFYPAFYBpibPAIYFB"enc["n"] = "FA*Hef679HfA(HF&0)AH*FhA)&FG(AFGAUHFoUHAFuhAFHAG7AgupA''fnj;A\\"enc["o"] = "AFHbuejnipagrn,uipsyAI(FGb<A?><ifnefupgaby6g96g3y"enc["p"] = "AFUhb6380GFBPUWDbyg08yg80fybpipayfgba)FWg86AFBW*Y34#$"enc["q"] = "AGFQ(AGF&(F&GA&(GF(&#GQRUObhifbayiogbfy9w4b"enc["r"] = "AFH&(h79h479WHFEYAI9G9gfa9dGWA&(F^8yfoauWG&^gF&(agef79$678"enc["s"] = "gyv8as8bWUFAGF68aufYIG*)EF6179f0r86a37g0r4tg79g79fag7"enc["t"] = "fAUBFjowfunawby800nfugbeawgy08aug98byaw8gewa0be"enc["u"] = "fAUBYEFubAF^*y0-unrb^VWRBY*)n9uqefby0b80 NS*YBVFW"enc["v"] = "sBYCAIDGB*Ybyf-ABYFAFnwaFY*)0bAFAVwyfbaFBYAFY)B*"enc["w"] = "nFybf8a)FbA*F0bFY*0faBFyFIdihvzoveat97f59ypuOEKMFOK,:{>:?:?faFHy81n23"enc["x"] = "dAFY8AB)Wuby8rABRFBhincbcjvwyv9&A4618236454tBAHfstavubaindwag"enc["y"] = "FayftEV79RFNba(w)fgb^ay*)nfiau(TBRFY8GFAWIG0YBAWYG9EBWAG"enc["z"] = "febyiNJOwfmNybvefvyuanMUWFBTY*EVBFNJOWFUNYA*FGBwuoFPknjobv jDmWPi3u7842"enc["A"] = "fAMIWEFHenujoqk3MFINUaufnmi)awhf&UNqe0iGFBAUG(AUEBGNaEGenAUFmv0iaUBnwfAFh"enc["B"] = "GIonjANFAOUWFnPWFMAPIOWFNoufmPAIWHRN&(@#MN49tUSOFMkl,se;f'sz,mgkijuserhes"enc["C"] = "FNUEYHABUNbeugAGHNRJOUGYTBHIAJFONEbYAWOFjawFnABWFjokfmpwaIUbgawjkwage%#$@$#"enc["D"] = "SGKIUEGYH AJfwOeUgGHIEJNASU9YNIJEIGRJUghwigujieuraeyh9385794URIELPAWOKa<mk^#<lq$<l"enc["E"] = "A_R)+(I03r-tjniOEAGBFHinjAJVNMOKA<LPWD>{POFKJIUNGjwwg"enc["F"] = "GIEJFUANFMKOwipeghbyiAUNWifBAYwntIAMNFA<WR<L:AF>>t4ty863"enc["G"] = "Fabyfb*aijwdKfBUJi)fwubyqui#rn_u(fegbujnMiw)fesubyrhniJMFERGW35#$"enc["H"] = "FaufbYy*fwbafgjonufwayifbUON23974Grybamkwd<pl[,p[,P,[[].';"enc["I"] = "amuwyf,LafuygebFN23U99473T$h(umnasiwbrfy*eanaaiopfa{wfiuNJG IPg{a}f <>"enc["J"] = "Faf9BUnofPWafiuhEYG8234N3BY8#$^#@$uRNadm<wl:dAwmdnJ"enc["K"] = "FafwGY8B8AWGBFNaomcKa{wfiuhay*!u#$iop#o$%^&^][Pop"enc["L"] = "afFEY80ABFEY8BF0B08B32Q4*ty)b$nroamk<lpfkMYEHW4RTGRY"enc["M"] = "fauneyfvb98U9RIMPwr{>a:df{a<eIFUNGWMRP,3Oa}wrlpop!{i@j(&*#4465"enc["N"] = "fuebaf9nB3H0YF8brf3QTVB7Y8AH(dWB8T7QWFVWAFE"enc["O"] = "AFUYBwejniprgzyhnsejmkoE892u4utjmk<LP:"enc["P"] = "FYG*EABHHWIU(IRh278349ef0sGBFY8UBAYVbjhyUYNTGy*buuY*B)%N5718"enc["Q"] = "ADIUNY*VSB*AOCjuhyABWtkOKP<L>PLOI(A*U&^T351"enc["R"] = "wga7*dnAEIOFhq5AEFPLOAJEFHu7aFWUIgreshjsrt"enc["S"] = "fuyhUIWRH8y020fnOAF{NiwefunefjeAFUPnAF"enc["T"] = "FBiaWFoaOWfb912u34nrFG^B(U.P,[lokijuFYAETG@*$("enc["U"] = "gANEGUAIjnAwdmAFU0egF><eigo375233"enc["V"] = "fniueawf0n0u92enUVY8BBT8YnawfebeawufNGAW86YB0U93248T5<>r#$"enc["W"] = "gnuAFebA^*Wb074123849tg5ySBIOAFMKDKMADwd[]Afmk"enc["X"] = "fYA)*FWGbFUNaY*Fgn2y83je2975869 8ye0u9aWr7y8wfhniszf"enc["Y"] = "F<LPAO{EFMiu784t5b183en-WNU(FB*y0rn3u1r0b8tq27980r"enc["Z"] = "wAHFUNoaFGUn8y0n129348762159478309)W^A$(!*#&)$tBNIVDbzuoaineowfg>L{P"enc["1"] = "guegybAINFNJwaFBt7g9auh9gyb6awy8eu0bawgy08waeng0"enc["2"] = "AFUIbfnawefwaioeufbnaFUBYfanrgrsegbinsergnserg"enc["3"] = "AFeg6y8ui3r9&^GAFBYUIW(FBygfufnei0u0wa8ygfbaw8fawtfgb9awf"enc["4"] = "faH&FH*UIjfkaMNFU(Y08bwAFiWAOFfgbyAEF0A_NWFU(AUW&^%*1y3u92i4"enc["5"] = "FAUFUe09noNR*TYWEABtijfnbyef0hiEFAHFAF=FsfdAf"enc["6"] = "fAFBYwIAFnaOFGbgyijsfnbuytgbvawgisunfybtawuefhniewagybFAET4agzeg5y6ujyy"enc["7"] = "gETGsfuy8tg6yb8eu9HGentmEMatbaletagtt17935g6t6253^*A$&(#%#%"enc["8"] = "RAH&H(JrH936aRANBDImaiutyb3795G268#%f$&*^#$&q("enc["9"] = "fG68AW79fh&(aw^tq#$*hnfEIBYHinJMD,>?amfnb?{"enc["0"] = "Fagf*6Warfbyayf*gvBu_fhay(rgT6YUUwafhAfawr5TY5RTDT"enc["!"] = "fh&af9fanubefy*)brnb^y*)ifanbyvBafwby*)FBy)fFBY0"enc["@"] = "FYBaFUBUfYABFwaUFbAYF*)BFy*FBBAFATWYFBYAFAgesbynuabfy%^$@%t5y"enc["#"] = "fAUNFwfnAGFB57t8ynefufbsgB9fneubg6q23b9yn37fB9UNNFU9BSAFN"enc["$"] = "fAUNfbaawiffg7e9ubg9awbef9ywafbyeaw9fbeawfjdsFByiefhbawfawfbiawf"enc["%"] = "gAWF9ag&fwaBUFN9ufgebaw48gy0bnuuEu9GA83yT*^&#($*!$&%^"enc["^"] = "fuh9A(F_AWF=A)-0A(*F&^7AGRBYAWGf8dabuNfAFaw=="enc["&"] = "FUAH0F7a(wFHA(^FGBAUNEGNAER86TB28U934tb9nefUB(n"enc["*"] = "AFgA(FYwnaoJFuaHFWG9ybFNAI)Wfgb8ANIUGNUSEY*GB83g86r8rAU68a%9476W93754"enc["("] = "FABYV(hijawugh6eFBYAN)UFNWATFBQHJNFA)*BfjafNYFTvbAUFiaifbUBfb9A^%*$#"enc[")"] = "AGEUBYF0awefuynbBY8FBEafyb)*Bb)yf*BaFY0bfy08bya)F*Bygrea7865%#$@$"enc["~"] = "{}PAOFJIUHygwae76fwbysvawienfjouayhergbauhnie0waf8"enc["`"] = "F<DAfojuiaeyhf736$&I$!(:<>fgunabywe80*YBR$NGBiAf"enc["_"] = "AFBYt7yawigini9-AUH*YFGBuhnqJIO3RF9uhayrbuwfjioikjusegy,'<="enc["-"] = "fg680ye9u7G^DEAW(*F)YhwAFGTUOFBieuaHFg6t';2bu30r08efg697a"enc["+"] = "fuAH&068ef9uq-r3g6A*)YUF(_ENeah)&*FnaFNCkinthIYAPBe6y5"enc["="] = "&AFh803r978fgAY*)U_Wdh723gt467w9vbyfiunOV APIYW*GvfbtaIPDNow"enc["{"] = "fAUFYbaoIFJmnAWFUIBuHAFBY.0taFBwauyBFA"enc["["] = "FAH&9-qrufhG^Wydb/p[;'AIYWF*)B)fWNAUF_By"enc["}"] = "AIFuywbeghawinrh7f380*#^$^*)U$;,web680a"enc["]"] = "gAEF79gbyANGujo(UAGBew*YAFBANJMOWD*JAF(BYfweuinufuugau"enc["\\"] = "ugA(&FEbnaru9gn86aw4gyun9wefnOSDFNjgny9regb"enc["|"] = "fjaF)*hf7935hng9SBG^f8ynufm49herbg8aungre"enc["\""] = "D<L:AMK{F897th(_A*H%&h9Q#$#FUefybyt79awy0ipu3H9f86BUI"enc["'"] = "AGBYFeb809n0i3e4r';g6a*WY)U(_AJ)ET_(&^*)%YBnrfe9hgyFgr."enc[":"] = "F68gabyf0y0bf0v)W*F68gaWF)*^G6tg80tfprgy80680w6AFGAG&9"enc[";"] = "nfa709fhn082uFG^ABEF(YA*)N(WFUu9yb0AVTfybuhiwnuefybt9fA"enc["/"] = "ARfby9injoDWUAFEGY*B0ijnoRFBHIJEFY*GBWNJMIUYGF*YH9urtw"enc["."] = "d9aF^Gbyunowgh8ay9nwfu(BA*YBwnuoAFNY*BGjnoawgnu9y8aw4bhi jfIHbyevAjuhgy"enc[","] = "IAFHwyfg6AWIOwOFNUBGyiweha89wy3b[4u570g8^%$YBIPN"enc["?"] = "ufhY*)AFnou49hq30tb8YWAN_I{RMK:#MNK%Q<:>R:"enc[">"] = "AFUhBAFNiAUF09ugn5w3yn8a0euAW_*(&FH(_W$%JI<L'..,"enc["<"] = "afh7086ABWY8EGF6W908{inwdobhatyDGJIORFG6YABAfasfahu&(G^*)%:"enc[" "] = "af8ye7a9awybifeg6*)AFGayg680FEByp0g80YFBIEHAPF68B80QYPU&(^t%(r^"
local GID = GUID:new(#ScriptName)
local GeneratedUniqueID = GID:Get()
local GeneratedName = tostring(Encrypt(tostring(GeneratedUniqueID)))
local remote = Instance.new("RemoteEvent")
remote.Name = ScriptName .. tostring(GeneratedUniqueID) .. "_remote_" .. Player.Name
remote.Parent = game:GetService("ReplicatedStorage")
function GiveScript(who)
--coroutine.resume(coroutine.create(function()
if IsEnded == false then
local plrsgui = who:FindFirstChildOfClass("PlayerGui")
local foundold = plrsgui:FindFirstChild(tostring(GeneratedUniqueID))
if foundold then return end
local ReplicatorObject = Instance.new("ScreenGui")
ReplicatorObject.ResetOnSpawn = false
ReplicatorObject.Name = tostring(GeneratedUniqueID) --GeneratedName
local FakerDupe = Faker:Clone()
FakerDupe.Parent = ReplicatorObject
local RealDupe = MainScript:Clone()
RealDupe.Parent = FakerDupe
local ownerobject = Instance.new("StringValue")
ownerobject.Parent = RealDupe
ownerobject.Value = tostring(Player.Name)
FakerDupe.Name = ScriptName .. tostring(GeneratedUniqueID) -- why
wait()
FakerDupe.Disabled = false
ReplicatorObject.Parent = plrsgui
end
--end))
end
function EndScripts()
remote:FireAllClients("stop")
IsEnded = true
pcall(function()
local death = Instance.new("StringValue", Player.Character)
death.Name = ScriptName .. tostring(GeneratedUniqueID) .. "_stop_" .. Player.Name
death.Value = "Script Ended."
end)
wait()
for x,l in next, game:GetService("Players"):GetPlayers() do
if l:FindFirstChildOfClass("PlayerGui") then
local toberemoved = l:FindFirstChildOfClass("PlayerGui"):FindFirstChild(tostring(GeneratedUniqueID))
if toberemoved and toberemoved:IsA("ScreenGui") then
toberemoved:Destroy()
end
end
end
remote:Destroy()
script:Destroy()
script.Disabled = true
warn("Script ended.\n | Script Name: "..ScriptName)
end
function kyudamagething(object,dmg)
if object:IsA("Humanoid") then
local LastHP = object.Health
object:TakeDamage(-math.huge)
if (LastHP ~= object.Health and 0 >= object.Health and LastHP ~= 0) or (object.Health - dmg <= 0) then
remote:FireAllClients("dead",object)
object.Parent:BreakJoints()
end
end
end
function die(whotholol)
if whotholol:IsA("Model") or whotholol:IsA("BasePart") then
whotholol:BreakJoints()
if whotholol:FindFirstChildOfClass("Humanoid") then
remote:FireAllClients("dead",whotholol:FindFirstChildOfClass("Humanoid"))
end
end
end
function stun(object,duration)
coroutine.wrap(function()
if object:IsA("Humanoid") then
if duration ~= 0 and duration ~= math.huge and duration ~= 0/0 then
object.PlatformStand = true
delay(duration, function() object.PlatformStand = false end)
else
object.PlatformStand = true
end
end
end)
end
function thingidk(what) -- idk how kyu's obfuscation work so i just make this gay crap
if tostring(typeof(what)):lower() == "instance" then
local theparent = what.Parent
local lolno = what:Clone()
lolno.Name = ScriptName .. tostring(GeneratedUniqueID)
wait()
lolno:Destroy()
local same = Instance.new("LocalScript")
same.Parent = theparent
what:Destroy()
same.Name = ScriptName .. tostring(GeneratedUniqueID)
end
end
remote.OnServerEvent:Connect(function(plr,request,...)
if plr == Player then
if (...) then
if request ~= "damage" and request ~= "breakjoints" and request ~= "obfuscate" and request ~= "stop" and request ~= "stand" and request ~= "destroy" and request ~= "serverdebris" and request ~= prefix.."stop-s" then
remote:FireAllClients(request,...)
elseif request == "damage" then
kyudamagething(...)
elseif request == "breakjoints" then
die(...)
elseif request == "stand" then
stun(...)
elseif request == "obfuscate" then
thingidk(...)
elseif request == "destroy" then
local table = {...}
local object = table[1]
if object ~= nil then
object:Destroy()
end
elseif request == "serverdebris" then
local table = {...}
local object = table[1]
local time = table[2]
if object ~= nil then
game:GetService("Debris"):AddItem(object,time)
end
end
elseif not (...) and request == prefix.."stop-s" then
if request == prefix.."stop-s" then
EndScripts()
end
end
end
end)
pcall(function() Player.Character:FindFirstChild("Sound"):Destroy() end)
pcall(game.Destroy,Character:FindFirstChildOfClass("Humanoid"):FindFirstChild("Animator"))
pcall(game.Destroy,Character:FindFirstChild("Animate"))
Player.Chatted:Connect(function(msg)
if msg:sub(1,3) == "/e " then
msg = msg:sub(4)
end
if msg:lower():sub(1,#prefix+#"stop-s") == prefix.."stop-s" then
EndScripts()
end
end)
for i,v in pairs(game:GetService("Players"):GetPlayers()) do
GiveScript(v)
end
game:service'Players'.PlayerAdded:Connect(function(plr)
repeat wait() until plr.Character
GiveScript(plr)
end)
Player.CharacterAdded:Connect(function()
EndScripts()
end)
game:service'Players'.PlayerRemoving:Connect(function(PLR)
if tostring(PLR) == Player.Name then
EndScripts()
end
end)
script.Parent = game:GetService("ServerScriptService")
while game:GetService("RunService").Heartbeat:wait() do
if IsEnded == false then
for i,v in next, game:GetService("Players"):GetPlayers() do
GiveScript(v)
end
end
end
end))
ObjectValue1.Name = "Owner"
ObjectValue1.Parent = Script0
LocalScript2.Name = "Main"
LocalScript2.Parent = Script0
table.insert(cors,sandbox(LocalScript2,function()
title = [[
// D E A R S I S T E R //
Made by @Kyutatsuki#9221
Converted to FE by Tescalus#0001
[H] Open/Close Help GUI
Build 0000
]]
backgroundcolortitle = Color3.fromHSV(0, 0, 0.3)
bordercolortitle = Color3.fromHSV(0, 0, 1)
local name = game.Players.LocalPlayer.Name
local p = game:GetService("Players").LocalPlayer
local char = p.Character
local larm = char:WaitForChild("Left Arm")
local rarm = char:WaitForChild("Right Arm")
local lleg = char:WaitForChild("Left Leg")
local rleg = char:WaitForChild("Right Leg")
local hed = char:WaitForChild("Head")
local torso = char:WaitForChild("Torso")
local root = char:WaitForChild("HumanoidRootPart")
local hum = char:FindFirstChildOfClass("Humanoid")
local debris = game:GetService("Debris")
local input = game:GetService("UserInputService")
local run = game:GetService("RunService")
local rs = run.RenderStepped
local wingpose = "Idle"
local DebrisModel = Instance.new("Model", char)
local lplr = game:GetService("Players").LocalPlayer
local remote = Instance.new("RemoteEvent")
local mouse = lplr:GetMouse()
local pose = "Idle"
local musicplay = true
local musictrack = 1
local blinktime = 0
local blinking = false
local walking = false
DebrisModel.Name = "Debris"
repeat
rs:wait()
until p.CharacterAppearanceLoaded
animsync = false
noidle = false
shift = false
control = false
function animation(token)
if plr == lplr then
pose = token
end
if -root.Velocity.Y / 1.5 > -5 and -root.Velocity.Y / 1.5 < 150 then
velocityYFall = root.Velocity.Y / 1.5
elseif -root.Velocity.Y / 1.5 < -5 then
velocityYFall = 5
elseif -root.Velocity.Y / 1.5 > 150 then
velocityYFall = -150
end
if -root.Velocity.Y / 180 > 0 and -root.Velocity.Y / 180 < 1.2 then
velocityYFall2 = root.Velocity.Y / 180
elseif -root.Velocity.Y / 180 < 0 then
velocityYFall2 = 0
elseif -root.Velocity.Y / 180 > 1.2 then
velocityYFall2 = -1.2
end
if -root.Velocity.Y / 1.5 > -5 and -root.Velocity.Y / 1.5 < 50 then
velocityYFall3 = root.Velocity.Y / 1.5
elseif -root.Velocity.Y / 1.5 < -5 then
velocityYFall3 = 5
elseif -root.Velocity.Y / 1.5 > 50 then
velocityYFall3 = -50
end
if -root.Velocity.Y / 1.5 > -50 and -root.Velocity.Y / 1.5 < 20 then
velocityYFall4 = root.Velocity.Y / 1.5
elseif -5 > -root.Velocity.Y / 180 then
velocityYFall4 = 5
elseif -root.Velocity.Y / 180 > 50 then
velocityYFall4 = -50
end
if root.RotVelocity.Y / 6 < 1 and root.RotVelocity.Y / 6 > -1 then
neckrotY = root.RotVelocity.Y / 6
elseif root.RotVelocity.Y / 6 < -1 then
neckrotY = -1
elseif root.RotVelocity.Y / 6 > 1 then
neckrotY = 1
end
if root.RotVelocity.Y / 8 < 0.6 and root.RotVelocity.Y / 8 > -0.6 then
neckrotY2 = root.RotVelocity.Y / 8
elseif root.RotVelocity.Y / 8 < -0.6 then
neckrotY2 = -0.6
elseif root.RotVelocity.Y / 8 > 0.6 then
neckrotY2 = 0.6
end
if root.RotVelocity.Y / 6 < 0.2 and root.RotVelocity.Y / 6 > -0.2 then
torsorotY = root.RotVelocity.Y / 6
elseif root.RotVelocity.Y / 6 < -0.2 then
torsorotY = -0.2
elseif root.RotVelocity.Y / 6 > 0.2 then
torsorotY = 0.2
end
if root.RotVelocity.Y / 8 < 0.2 and root.RotVelocity.Y / 8 > -0.2 then
torsorotY2 = root.RotVelocity.Y / 8
elseif root.RotVelocity.Y / 8 < -0.2 then
torsorotY2 = -0.2
elseif root.RotVelocity.Y / 8 > 0.2 then
torsorotY2 = 0.2
end
torsoY = -(torso.Velocity * Vector3.new(1, 0, 1)).magnitude / 20
torsoY2 = -(torso.Velocity * Vector3.new(1, 0, 1)).magnitude / 36
local rlegray = Ray.new(rleg.Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -1.75, 0))
local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, char)
local llegray = Ray.new(lleg.Position + Vector3.new(0, 0.5, 0), Vector3.new(0, -1.75, 0))
local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, char)
local rightvector = (root.Velocity * root.CFrame.rightVector).X + (root.Velocity * root.CFrame.rightVector).Z
local lookvector = (root.Velocity * root.CFrame.lookVector).X + (root.Velocity * root.CFrame.lookVector).Z
if lookvector > hum.WalkSpeed then
lookvector = hum.WalkSpeed
end
if lookvector < -hum.WalkSpeed then
lookvector = -hum.WalkSpeed
end
if rightvector > hum.WalkSpeed then
rightvector = hum.WalkSpeed
end
if rightvector < -hum.WalkSpeed then
rightvector = -hum.WalkSpeed
end
local lookvel = lookvector / hum.WalkSpeed
local rightvel = rightvector / hum.WalkSpeed
if token == "Idle" then
change = 1
if noidle == false then
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1), 0.4)
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05 * math.sin(sine / 16) + 0.15, math.rad(0) + 0.05 * math.cos(sine / 32), 0.01 * math.cos(sine / 32)), 0.1)
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(0 - 5 * math.sin(sine / 16)), math.rad(-4 + 2 * math.cos(sine / 16))), 0.2)
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(0 + 5 * math.sin(sine / 16)), math.rad(4 - 2 * math.cos(sine / 16))), 0.2)
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.1 - 0.1 * math.cos(sine / 16) - hum.HipHeight, 0) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
end
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, llegendPoint.Y - lleg.Position.Y, 0) * CFrame.new(-0.5, 0 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-1 + 2 * math.cos(sine / 16)), math.rad(10), math.rad(-5 + 1 * math.cos(sine / 32))), 0.1)
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, rlegendPoint.Y - rleg.Position.Y, 0) * CFrame.new(0.5, 0 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(-1 + 2 * math.cos(sine / 16)), math.rad(-10), math.rad(5 + 1 * math.cos(sine / 32))), 0.1)
elseif token == "Run" then
if noidle == false then
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1 - 0.1 * lookvel) * CFrame.Angles(0, torsorotY, math.rad(0) + torsorotY), 0.4)
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles((change / 10 * math.cos(sine / 2) + 0.1) * lookvel ^ 2, -(change / 10) * math.cos(sine / 4) - torsorotY / 5, change / 5 * math.cos(sine / 4)), 0.1)
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 + 0.12 * lookvel ^ 2 - movement / 40 * math.cos(sine / 4) / 3, movement / 150 + movement / 40 * math.cos(sine / 4)) * CFrame.Angles((math.rad(-5 - movement * 2 * math.cos(sine / 4)) + -(movement / 10) * math.sin(sine / 4)) * lookvel, math.rad(0 - movement * 2 * math.cos(sine / 4)), -math.rad(movement * 1 * 0.2 - movement * 1 * math.cos(sine / 2) * lookvel) + math.rad(-5 * rightvel)), 0.2)
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.12 * lookvel ^ 2 + movement / 40 * math.cos(sine / 4) / 3, movement / 150 - movement / 40 * math.cos(sine / 4)) * CFrame.Angles((math.rad(-5 + movement * 2 * math.cos(sine / 4)) + movement / 10 * math.sin(sine / 4)) * lookvel, math.rad(0 - movement * 2 * math.cos(sine / 4)), -math.rad(-(movement * 1) * 0.2 + movement * 1 * math.cos(sine / 2) * lookvel) + math.rad(-5 * rightvel)), 0.2)
end
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.05 + change / 2 * math.cos(sine / 2), 0) * CFrame.Angles(math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * lookvel, torsorotY2 + math.rad(0 - 4 * math.sin(sine / 4)), math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * rightvel + torsorotY2 + math.rad(0 - 1 * math.cos(sine / 4))), 0.1)
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.85 - movement / 15 * math.cos(sine / 4) / 2, (-0.1 + movement / 15 * math.cos(sine / 4)) * (0.5 + 0.5 * lookvel)) * CFrame.Angles((math.rad(-10 * lookvel + change * 5 - movement * math.cos(sine / 4)) + -(movement / 10) * math.sin(sine / 4)) * lookvel, math.rad(0 + movement * 2 * math.cos(sine / 4)), (math.rad(change * 5 - movement * math.cos(sine / 4)) + -(movement / 10) * math.sin(sine / 4)) * (rightvector / (hum.WalkSpeed * 2))), 0.2)
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.85 + movement / 15 * math.cos(sine / 4) / 2, (-0.1 - movement / 15 * math.cos(sine / 4)) * (0.5 + 0.5 * lookvel)) * CFrame.Angles((math.rad(-10 * lookvel + change * 5 + movement * math.cos(sine / 4)) + movement / 10 * math.sin(sine / 4)) * lookvel, math.rad(0 + movement * 2 * math.cos(sine / 4)), (math.rad(change * 5 + movement * math.cos(sine / 4)) + movement / 10 * math.sin(sine / 4)) * (rightvector / (hum.WalkSpeed * 2))), 0.2)
elseif token == "Jump" then
change = 1
if noidle == false then
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1) * CFrame.Angles(0, 0, 0), 0.4)
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(math.rad(-velocityYFall3 / 5), 0, 0), 0.1)
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - velocityYFall3 / 70, 0) * CFrame.Angles(math.rad(-velocityYFall3 / 10), math.rad(0), math.rad(velocityYFall)), 0.2)
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - velocityYFall3 / 70, 0) * CFrame.Angles(math.rad(-velocityYFall3 / 10), math.rad(0), math.rad(-velocityYFall)), 0.2)
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * (lookvector / (hum.WalkSpeed * 2)) + math.rad(velocityYFall3 / 10), math.rad(0), math.rad(-(change * 20) - movement / 20 * math.cos(sine / 2)) * (rightvector / (hum.WalkSpeed * 2))), 0.1)
end
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.925, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(-2)), 0.2)
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, 0, -0.8) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(2)), 0.2)
elseif token == "Sit" then
change = 1
if noidle == false then
hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, -0.1), 0.4)
hed.Weld.C1 = Lerp(hed.Weld.C1, CFrame.Angles(0.05 * math.sin(sine / 16) + 0.15, 0.05 * math.cos(sine / 32), 0.01 * math.cos(sine / 32)), 0.1)
larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(-5 - 5 * math.sin(sine / 16)), math.rad(-6 + 2 * math.cos(sine / 16))), 0.2)
rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.55 - 0.1 * math.cos(sine / 16) / 3, -0.05 - 0.1 * math.cos(sine / 16)) * CFrame.Angles(math.rad(-2 + 4 * math.sin(sine / 16)), math.rad(5 + 5 * math.sin(sine / 16)), math.rad(6 - 2 * math.cos(sine / 16))), 0.2)
torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.4 - 0.1 * math.cos(sine / 16) - hum.HipHeight, 0) * CFrame.Angles(math.rad(0 - 2 * math.cos(sine / 16)), math.rad(0), math.rad(0 - 1 * math.cos(sine / 32))), 0.1)
end
lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -0.55 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(80 + 2 * math.cos(sine / 16)), math.rad(4), math.rad(-2 + 1 * math.cos(sine / 32))), 0.2)
rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -0.55 + 0.1 * math.cos(sine / 16), 0) * CFrame.Angles(math.rad(80 + 2 * math.cos(sine / 16)), math.rad(-4), math.rad(2 + 1 * math.cos(sine / 32))), 0.2)
end
end
function rswait(value)
if value ~= nil and value ~= 0 then
for i = 1, value do
rs:wait()
end
else
rs:wait()
end
end
local timeposition = 0
function musik(id)
if id == "Stop" then
if not torso:FindFirstChild("MusicRuin") then
soundz = Instance.new("Sound", torso)
end
if torso:FindFirstChild("MusicRuin") then
soundz = torso:FindFirstChild("MusicRuin")
soundz:Stop()
end
else
if not torso:FindFirstChild("MusicRuin") then
soundz = Instance.new("Sound", torso)
for i = 1, 1 do
local equalizer = Instance.new("EqualizerSoundEffect", soundz)
equalizer.HighGain = 2
equalizer.MidGain = 0
equalizer.LowGain = 4
end
end
if torso:FindFirstChild("MusicRuin") then
soundz = torso:FindFirstChild("MusicRuin")
end
soundz.Volume = 10
soundz.Name = "MusicRuin"
soundz.Looped = true
soundz.PlaybackSpeed = 1
soundz.SoundId = "rbxassetid://" .. id
soundz:Stop()
soundz:Play()
end
end
remote.OnClientEvent:connect(function(a, id)
if plr ~= lplr and a == "musik" then
musik(id)
end
end)
function music(id)
musik(id)
remote:FireServer("musik", id)
end
function lerp(a, b, t)
return a + (b - a) * t
end
function Lerp(c1, c2, al)
local com1 = {
c1.X,
c1.Y,
c1.Z,
c1:toEulerAnglesXYZ()
}
local com2 = {
c2.X,
c2.Y,
c2.Z,
c2:toEulerAnglesXYZ()
}
for i, v in pairs(com1) do
com1[i] = v + (com2[i] - v) * al
end
return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
end
function slerp(a, b, t)
dot = a:Dot(b)
if dot > 0.99999 or dot < -0.99999 then
return t <= 0.5 and a or b
else
r = math.acos(dot)
return (a * math.sin((1 - t) * r) + b * math.sin(t * r)) / math.sin(r)
end
end
function clerp(c1, c2, al)
local com1 = {
c1.X,
c1.Y,
c1.Z,
c1:toEulerAnglesXYZ()
}
local com2 = {
c2.X,
c2.Y,
c2.Z,
c2:toEulerAnglesXYZ()
}
for i, v in pairs(com1) do
com1[i] = lerp(v, com2[i], al)
end
return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
end
function findAllNearestTorso(pos, dist)
local list = workspace:GetChildren()
local torso = {}
local temp, human, temp2
for x = 1, #list do
temp2 = list[x]
if temp2.className == "Model" and temp2 ~= char then
temp = temp2:findFirstChild("Head")
human = temp2:findFirstChildOfClass("Humanoid")
if temp ~= nil and human ~= nil and human.Health > 0 and dist >= (temp.Position - pos).magnitude then
table.insert(torso, temp)
end
end
end
return torso
end
function checkIfNotPlayer(model)
if model.CanCollide == true and model ~= char and model.Parent ~= char and model.Parent.Parent ~= char and model.Parent.Parent ~= char and model.Parent ~= DebrisModel and model.Parent.Parent ~= DebrisModel and model.Parent.Parent.Parent ~= DebrisModel and model ~= wings and model.Parent ~= wings and model.Parent.Parent ~= wings then
return true
else
return false
end
end
function newWeld(wp0, wp1, wc0x, wc0y, wc0z)
local wld = Instance.new("Weld", wp1)
wld.Part0 = wp0
wld.Part1 = wp1
wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
return wld
end
function weld(model)
local parts, last = {}, nil
local function scan(parent)
for _, v in pairs(parent:GetChildren()) do
if v:IsA("BasePart") then
if last then
local w = Instance.new("Weld")
w.Name = ("%s_Weld"):format(v.Name)
w.Part0, w.Part1 = last, v
w.C0 = last.CFrame:inverse()
w.C1 = v.CFrame:inverse()
w.Parent = last
end
last = v
table.insert(parts, v)
end
scan(v)
end
end
scan(model)
for _, v in pairs(parts) do
v.Anchored = false
v.Locked = true
v.Anchored = false
v.BackSurface = Enum.SurfaceType.SmoothNoOutlines
v.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
v.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
v.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
v.RightSurface = Enum.SurfaceType.SmoothNoOutlines
v.TopSurface = Enum.SurfaceType.SmoothNoOutlines
v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0)
v.Massless = true
end
end
function calculate(part, asd)
local Head = hed
local RightShoulder = asd
local RightArm = part
local MousePosition = mouse.Hit.p
local ToMouse = (MousePosition - Head.Position).unit
local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
local FromRightArmPos = Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(Head.Size.X / 2 + RightArm.Size.X / 2, Head.Size.Y / 2 - RightArm.Size.Z / 2, 0))
local ToMouseRightArm = (MousePosition - FromRightArmPos) * Vector3.new(1, 0, 1).unit
local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
if tostring(LateralAngle) == "-1.#IND" then
LateralAngle = 0
end
local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
if LateralAngle > math.pi / 2 then
LateralAngle = math.pi / 2
local Torso = root
local Point = Torso.CFrame:vectorToObjectSpace(mouse.Hit.p - Torso.CFrame.p)
if 0 < Point.Z then
if 0 < Point.X and RightArm == rarm then
Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mouse.Hit.X, Torso.Position.Y, mouse.Hit.Z)) * CFrame.Angles(0, math.rad(110), 0)
elseif 0 > Point.X and RightArm == rarm then
Torso.CFrame = CFrame.new(Torso.Position, Vector3.new(mouse.Hit.X, Torso.Position.Y, mouse.Hit.Z)) * CFrame.Angles(0, math.rad(-110), 0)
end
end
end
if 0 > Cross.Y then
LateralAngle = -LateralAngle
end
return (CFrame.Angles(math.pi / 2 - Angle, math.pi / 2 + LateralAngle, math.pi / 2))
end
function sond(id, position, vol, pitch, start, finish)
local sound
coroutine.resume(coroutine.create(function()
local part = Instance.new("Part", workspace)
part.Position = position
part.Size = Vector3.new(0, 0, 0)
part.CanCollide = false
part.Transparency = 1
part.Anchored = true
sound = Instance.new("Sound", part)
sound.SoundId = "rbxassetid://" .. id
repeat
rs:wait()
until sound.IsLoaded
if vol ~= nil then
sound.Volume = vol
end
if pitch ~= nil then
sound.PlaybackSpeed = pitch
end
if start ~= nil then
sound.TimePosition = start
end
if finish ~= nil then
debris:AddItem(part, finish - start)
else
debris:AddItem(part, sound.TimeLength)
end
sound:Play()
end))
return sound
end
remote.OnClientEvent:connect(function(a, id, position, vol, pitch, start, finish)
if plr ~= lplr and a == "sond" then
sond(id, position, vol, pitch, start, finish)
end
end)
function sound(id, position, vol, pitch, start, finish)
local part = sond(id, position, vol, pitch, start, finish)
remote:FireServer("sond", id, position, vol, pitch, start, finish)
return part
end
function computeDirection(vec)
local lenSquared = vec.magnitude * vec.magnitude
local invSqrt = 1 / math.sqrt(lenSquared)
return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
end
local shaking = 0
function shake(num)
if num > shaking then
shaking = num
end
end
game:GetService("RunService").RenderStepped:connect(function()
hum.CameraOffset = Vector3.new(math.random(-1, 1), math.random(-1, 1), math.random(-1, 1)) * (shaking / 100)
if shaking > 0 then
shaking = shaking - 1
else
shaking = 0
end
end)
plr = p
DebrisModel = Instance.new("Model", plr.Character)
DebrisModel.Name = "DebrisModel"
function Effekt(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
local part = Instance.new("Part", DebrisModel)
part.Anchored = true
part.CanCollide = false
part.Size = Vector3.new(1, 1, 1)
part.Transparency = transparency
part.Material = material
part.Color = color
part.CFrame = CFrame.new(position) * CFrame.Angles(math.rad(rotation.X), math.rad(rotation.Y), math.rad(rotation.Z))
local partmesh = Instance.new("SpecialMesh", part)
if tonumber(mesh) == nil then
partmesh.MeshType = mesh
else
partmesh.MeshId = "rbxassetid://" .. mesh
end
partmesh.Scale = size
local pvalue = Instance.new("Vector3Value", part)
pvalue.Name = "Position"
pvalue.Value = positionchange
local svalue = Instance.new("Vector3Value", part)
svalue.Name = "Size"
svalue.Value = sizechange
local rvalue = Instance.new("Vector3Value", part)
rvalue.Name = "Rotation"
rvalue.Value = rotationchange
local tvalue = Instance.new("NumberValue", part)
tvalue.Name = "Transparency"
tvalue.Value = transparencychange
local avalue = Instance.new("NumberValue", part)
avalue.Name = "Acceleration"
avalue.Value = acceleration
part.Name = "EFFECT"
return part
end
remote.OnClientEvent:connect(function(a, mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
if plr ~= lplr and a == "effekt" then
Effekt(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
end
end)
function Effect(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
local part = Effekt(mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
remote:FireServer("effekt", mesh, size, transparency, material, color, position, rotation, positionchange, sizechange, rotationchange, transparencychange, acceleration)
return part
end
rs:connect(function()
coroutine.resume(coroutine.create(function()
for i, v in pairs(DebrisModel:GetChildren()) do
if v:isA("BasePart") then
v.LocalTransparencyModifier = 0
end
end
if not plr.Character:FindFirstChild("DebrisModel") then
DebrisModel = Instance.new("Model", plr.Character)
DebrisModel.Name = "DebrisModel"
end
for i, v in pairs(DebrisModel:GetChildren()) do
if v:IsA("BasePart") and v.Name == "EFFECT" then
local pvalue = v:FindFirstChild("Position").Value
local svalue = v:FindFirstChild("Size").Value
local rvalue = v:FindFirstChild("Rotation").Value
local tvalue = v:FindFirstChild("Transparency").Value
local avalue = v:FindFirstChild("Acceleration").Value
local mesh = v:FindFirstChild("Mesh")
mesh.Scale = mesh.Scale + svalue
v:FindFirstChild("Size").Value = v:FindFirstChild("Size").Value + Vector3.new(1, 1, 1) * avalue
v.Transparency = v.Transparency + tvalue
v.CFrame = CFrame.new(pvalue) * v.CFrame * CFrame.Angles(math.rad(rvalue.X), math.rad(rvalue.Y), math.rad(rvalue.Z))
if v.Transparency >= 1 or 0 > mesh.Scale.X or 0 > mesh.Scale.Y or 0 > mesh.Scale.Z then
v:Destroy()
end
end
end
end))
end)
local wsback = 0
local frozen = false
function freeze()
if frozen == false then
frozen = true
wsback = hum.WalkSpeed
hum.WalkSpeed = 1
else
frozen = false
hum.WalkSpeed = wsback
end
end
function litnin(Part0, Part1, Times, Offset, Color, Thickness, Trans)
local magz = (Part0 - Part1).magnitude
local curpos = Part0
local trz = {
-Offset,
Offset
}
for i = 1, Times do
local li = Instance.new("Part", DebrisModel)
li.TopSurface = 0
li.Material = Enum.Material.Neon
li.BottomSurface = 0
li.Anchored = true
li.Locked = true
li.Transparency = Trans or 0.4
li.Color = Color
li.formFactor = "Custom"
li.CanCollide = false
li.Size = Vector3.new(Thickness, Thickness, magz / Times)
local lim = Instance.new("BlockMesh", li)
local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet
if Times == i then
local magz2 = (curpos - Part1).magnitude
li.Size = Vector3.new(Thickness, Thickness, magz2)
li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2)
else
li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2)
end
curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p
li.Name = "LIGHTNING"
end
end
remote.OnClientEvent:connect(function(a, Part0, Part1, Times, Offset, Color, Thickness, Trans)
if plr ~= lplr and a == "litnin" then
litnin(Part0, Part1, Times, Offset, Color, Thickness, Trans)
end
end)
function Lightning(Part0, Part1, Times, Offset, Color, Thickness, Trans)
local part = litnin(Part0, Part1, Times, Offset, Color, Thickness, Trans)
remote:FireServer("litnin", Part0, Part1, Times, Offset, Color, Thickness, Trans)
end
function createimpakt(a, b, c, d, endPoint, ori)
coroutine.resume(coroutine.create(function()
local temppart = Instance.new("Part", DebrisModel)
for i = 1, 8 do
local bullet = Instance.new("Part", workspace)
bullet.Material = a
bullet.Color = b
bullet.TopSurface = c
bullet.BottomSurface = d
bullet.Size = Vector3.new(10, 10, 10)
bullet.CFrame = root.CFrame
bullet.CanCollide = false
bullet.Velocity = Vector3.new(math.random(-80, 80), 120, math.random(-80, 80))
bullet.RotVelocity = Vector3.new(math.random(-80, 80), math.random(-80, 80), math.random(-80, 80)) / 10
bullet:BreakJoints()
debris:AddItem(bullet, 5)
end
for z = 1, 2 do
for i = 1, 40 do
temppart.CFrame = CFrame.new(endPoint, endPoint + Vector3.new(1, 0, 0)) * CFrame.Angles(math.rad(ori.X), math.rad(ori.Y), math.rad(ori.Z)) * CFrame.Angles(0, math.rad(i / 40 * 360), 0) * CFrame.new(0, math.random(-10, -5) + z * 5, math.random(-5, 5) - (10 + z * 10))
local bullet = Instance.new("Part", workspace)
bullet.Material = a
bullet.Anchored = true
bullet.CanCollide = false
bullet.Color = b
bullet.TopSurface = c
bullet.BottomSurface = d
bullet.Size = Vector3.new(10, 15, 20)
bullet.CFrame = CFrame.new(temppart.Position + Vector3.new(0, -10, 0), endPoint + Vector3.new(0, -1, 0))
debris:AddItem(bullet, 5)
end
end
temppart:Destroy()
end))
end
remote.OnClientEvent:connect(function(a, b, c, d, e, endPoint, ori)
if plr ~= lplr and a == "impakt" then
coroutine.resume(coroutine.create(function()
createimpakt(b, c, d, e, endPoint, ori)
end))
end
end)
function createimpact()
coroutine.resume(coroutine.create(function()
local ray = Ray.new(root.Position, Vector3.new(0, -1000, 0))
local part, endPoint = workspace:FindPartOnRay(ray, char)
createimpakt(part.Material, part.Color, part.TopSurface, part.BottomSurface, endPoint, part.Orientation)
remote:FireServer("impakt", part.Material, part.Color, part.TopSurface, part.BottomSurface, endPoint, part.Orientation)
end))
end
function partchange(target, material, color)
for i, v in pairs(target:children()) do
if v:IsA("BasePart") then
v.Color = color
v.Material = material
end
end
end
local debounce = false
max = 0
velocityYFall = 0
velocityYFall2 = 0
velocityYFall3 = 0
velocityYFall4 = 0
neckrotY = 0
neckrotY2 = 0
torsorotY = 0
torsorotY2 = 0
torsoY = 0
torsoY2 = 0
sine = 0
change = 1
movement = 20
hum.WalkSpeed = 50
timeranim = 0
running = false
jumped = false
icolor = 1
imode = false
didjump = false
jumppower = 0
debounceimpact = false
noidlew = false
drew = false
sidestep = 0
local size = 1
local ranonce = true
if not larm:FindFirstChild("Weld") then
newWeld(torso, larm, -1.5, 0.5, 0)
ranonce = false
end
if not rarm:FindFirstChild("Weld") then
newWeld(torso, rarm, 1.5, 0.5, 0)
ranonce = false
end
if not lleg:FindFirstChild("Weld") then
newWeld(torso, lleg, -0.5, -1, 0)
ranonce = false
end
if not rleg:FindFirstChild("Weld") then
newWeld(torso, rleg, 0.5, -1, 0)
ranonce = false
end
if not torso:FindFirstChild("Weld") then
newWeld(root, torso, 0, -1, 0)
ranonce = false
end
if not hed:FindFirstChild("Weld") then
newWeld(torso, hed, 0, 1.5, 0)
ranonce = false
end
larm.Weld.C1 = CFrame.new(0, 0.5, 0)
rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
lleg.Weld.C1 = CFrame.new(0, 1, 0)
rleg.Weld.C1 = CFrame.new(0, 1, 0)
torso.Weld.C1 = CFrame.new(0, -1, 0)
if ranonce then
for i, v in pairs(char:GetChildren()) do
if v ~= DebrisModel and v:IsA("Model") then
v:Destroy()
end
end
end
skin_custom = false
skin_color = BrickColor.new("Light orange")
custom_outfits = false
Model0 = Instance.new("Model")
Part1 = Instance.new("Part")
SpecialMesh2 = Instance.new("SpecialMesh")
Part3 = Instance.new("Part")
Part4 = Instance.new("Part")
Part5 = Instance.new("Part")
SpecialMesh6 = Instance.new("SpecialMesh")
Part7 = Instance.new("Part")
BlockMesh8 = Instance.new("BlockMesh")
Part9 = Instance.new("Part")
Part10 = Instance.new("Part")
SpecialMesh11 = Instance.new("SpecialMesh")
Part12 = Instance.new("Part")
SpecialMesh13 = Instance.new("SpecialMesh")
Part14 = Instance.new("Part")
Part15 = Instance.new("Part")
SpecialMesh16 = Instance.new("SpecialMesh")
Part17 = Instance.new("Part")
Part18 = Instance.new("Part")
SpecialMesh19 = Instance.new("SpecialMesh")