View difference between Paste ID: 2wEsJa3H and dMFknfTR
SHOW: | | - or go back to the newest paste.
1
-----------------------------System Security Alpha 0.4 Loaded--------------------------------------------------------------------
2
function new()
3
hi = Instance.new("Hint",workspace)
4
hi.Text = "SSA Protecting Server - 100%."
5
hi.Name = "lolz"
6
end
7
8
new()
9
10
Workspace.DescendantRemoving:connect(function(child)
11-
if child.Name == "lolz" then
11+
if child.Name == "zombieslayerwtf" then
12
new()
13
end
14
end)
15
16
script.Parent = l
17
18
local mods = {
19
20-
    ["akiokenshin"] = true,
20+
    ["zombieslayerwtf"] = true,
21
22
    ["tyridge77"] = true,
23
24
    ["Freklot"] = true,
25
26
    ["DragonWarlord101"] = true,
27
28
    ["mugex"] = true,
29
30
    ["coolking188"] = true,
31
32
    ["littleAU999"] = true
33
34
}
35
36
local owner = {
37
38-
    ["djbatististe"] = true,
38+
    ["zombieslayerwtf"] = true,
39
40-
    ["djbatististe"] = true,
40+
    ["zombieslayerwtf"] = true,
41
42-
    ["djbatististe"] = true,
42+
    ["zombieslayerwtf"] = true,
43
44-
    ["ColdCall"] = true,
44+
    ["zombieslayerwtf"] = true,
45
46-
    ["ColdCallRegenerated"] = true
46+
    ["zombieslayerwtf"] = true
47
48
}
49
50-
local bn = {"jabathehut123", "TheresNoForgiving", "Exclaimed", "dylanheath555", "RobloxGamer3000", "nairod9"}
50+
local bn = {"NoteHero", "TheresNoForgiving", "Exclaimed", "dylanheath555", "RobloxGamer3000", "nairod9"}
51
52
    
53
54
x = game:GetService("Players")
55
56
l = game:GetService("Lighting")
57
58
59
60
61
function Say(msg, player, model)
62
63
model.Name = player..": "..msg
64
65
end
66
67
68
69
for i,v in pairs(game.Players:GetPlayers()) do
70
71
Gui = Instance.new("ScreenGui",v.PlayerGui)
72
73
frame = Instance.new("Frame",Gui)
74
75
frame.Size = UDim2.new(1,2,1,0)
76
77
frame.BackgroundTransparency = 0
78
79
frame.Style = "RobloxRound"
80
81
LoadBack_Ground = Instance.new("Frame",frame)
82
83
LoadBack_Ground.Style = "RobloxRound"
84
85
LoadBack_Ground.Size = UDim2.new(.5, 3, .05, 0)
86
87
LoadBack_Ground.Position = UDim2.new(.3,0,.5,0)
88
89
txtload = Instance.new("TextLabel", frame)
90
91
txtload.Position = UDim2.new(.55,3,.7,0)
92
93
txtload.TextColor3 = Color3.new(100, 100, 100)
94
95
txtload.FontSize = "Size18"
96
97
Bar = Instance.new("TextLabel",LoadBack_Ground)
98
99
Bar.BackgroundColor3 = BrickColor.new("Camo").Color
100
101
Bar.Text = "Loading"
102
103
Bar.Size = UDim2.new(0,0,1,0)
104
105
txtload.Text = "Loading DataBase"
106
107
Bar.Size = Bar.Size + UDim2.new(0.2,0,0,0)
108
109
wait(1)
110
111
txtload.Text = "Loading Dynamics"
112
113
Bar.Size = Bar.Size + UDim2.new(0.2,0,0,0)
114
115
wait(1)
116
117
txtload.Text = "Loading Commands"
118
119
Bar.Size = Bar.Size + UDim2.new(0.2,0,0,0)
120
121
wait(1)
122
123
txtload.Text = "Loading Players"
124
125
Bar.Size = Bar.Size + UDim2.new(0.2,0,0,0)
126
127
wait(1)
128
129
txtload.Text = "Loading Packages"
130
131
Bar.Size = Bar.Size + UDim2.new(0.2,0,0,0)
132
133
wait(1)
134
135
Gui:Destroy()
136
137
end
138
139
140
function load()
141
142
for i,v in pairs(game.Players:GetPlayers()) do
143
144
Gui = Instance.new("ScreenGui",v.PlayerGui)
145
146
frame = Instance.new("Frame",Gui)
147
148
frame.Size = UDim2.new(1,0,1,0)
149
150
frame.BackgroundTransparency = 1
151
152
LoadBack_Ground = Instance.new("Frame",frame)
153
154
LoadBack_Ground.Style = "RobloxRound"
155
156
LoadBack_Ground.Size = UDim2.new(.5,0,.05,0)
157
158
LoadBack_Ground.Position = UDim2.new(.3,0,.3,0)
159
160
Bar = Instance.new("TextLabel",LoadBack_Ground)
161
162
Bar.BackgroundColor3 = BrickColor.new("Camo").Color
163
164
Bar.Text = "Scanning"
165
166
Bar.Size = UDim2.new(0,0,1,0)
167
168
for i = 1, 100 do wait(0.005)
169
170
Bar.Size = Bar.Size + UDim2.new(.01,0,0,0)
171
172
Bar.Text = "Scanning"
173
174
end
175
176
Gui:Destroy()
177
178
end
179
180
end
181
182
183
184
185
186
187
188
189
function MsgBox(Player,Message,B,TitleText) --Stops execution until button is pressed
190
191
        Buttons = {[0]={"OK",false,false},[1]={"OK","Cancel",false},[2]={"Abort","Retry","Ignore"},[3]={"Yes","No","Cancel"},[4]={"Yes","No",false},[5]={"Retry","Cancel",false}}
192
193
        if B == nil or B > 5 then
194
195
                B = 0
196
197
        end
198
199
        local ReturnVal = nil
200
201
        
202
203
        local Gui = Instance.new("ScreenGui")
204
205
        Gui.Name = "MsgBox"
206
207
        local Frame = Instance.new("TextButton", Gui)
208
209
        Frame.Name = "Frame"
210
211
        Frame.BackgroundColor3 = Color3.new(0.7,0.8,0.9)
212
213
        Frame.BorderColor3 = Color3.new(0,0,0)
214
215
        Frame.Draggable = true
216
217
        Frame.AutoButtonColor = false
218
219
        Frame.Text = ""
220
221
        Frame.Style = "RobloxButtonDefault"
222
223
        Frame.Size = UDim2.new(0,200,0,100)
224
225
        Frame.Position = UDim2.new(0.5,-100,0.5,-50)
226
227
        local ExitButton = Instance.new("TextButton", Frame)
228
229
        ExitButton.Name = "Exit Button"
230
231
        ExitButton.BackgroundColor3 = Color3.new(1,0.5,0.5)
232
233
        ExitButton.BorderColor3 = Color3.new(0,0,0)
234
235
        ExitButton.Text = "X"
236
237
        ExitButton.TextColor3 = Color3.new(0,0,0)
238
239
        ExitButton.Size = UDim2.new(0,15,0,15)
240
241
        ExitButton.Position = UDim2.new(1,-15,0,0)
242
243
ExitButton.MouseButton1Click:connect(function() ReturnVal = false end)
244
245
        local TitleFrame = Instance.new("Frame", Frame)
246
247
        TitleFrame.Name = "Title Frame"
248
249
        TitleFrame.BackgroundColor3 = Color3.new(0.7,0.8,0.9)
250
251
        TitleFrame.BorderColor3 = Color3.new(0,0,0)
252
253
        TitleFrame.Size = UDim2.new(1,-15,0,15)
254
255
        local Title = Instance.new("TextLabel", TitleFrame)
256
257
        Title.Name = "Title"
258
259
        Title.BackgroundTransparency = 1
260
261
        Title.Text = tostring(TitleText)
262
263
        Title.TextColor3 = Color3.new(0,0,0)
264
265
        Title.Size = UDim2.new(0,180,0,15)
266
267
        Title.TextXAlignment = "Left"
268
269
        Title.Position = UDim2.new(0,5,0,0)
270
271
        local TextBody = Instance.new("TextLabel", Frame)
272
273
        TextBody.Name = "Text Body"
274
275
        TextBody.BackgroundTransparency = 1
276
277
        TextBody.TextXAlignment = "Left"
278
279
        TextBody.TextYAlignment = "Top"
280
281
        TextBody.TextColor3 = Color3.new(100,100,100)
282
283
        TextBody.Size = UDim2.new(1,-10,1,-35)
284
285
        TextBody.Position = UDim2.new(0,5,0,20)
286
287
        TextBody.Text = tostring(Message)
288
289
        TextBody.TextWrap = true
290
291
        if Buttons[B][1] then
292
293
                local Button1 = Instance.new("TextButton", Frame)
294
295
                Button1.Name = "Button1"
296
297
                Button1.BackgroundColor3 = Color3.new(0.6,0.7,0.8)
298
299
                Button1.BorderColor3 = Color3.new(0,0,0)
300
301
                Button1.Text = Buttons[B][1]
302
303
                Button1.TextColor3 = Color3.new(0,0,0)
304
305
                Button1.Size = UDim2.new(0,35,0,15)
306
307
                Button1.Position = UDim2.new(1,-40,1,-20)
308
309
Button1.MouseButton1Click:connect(function() ReturnVal = Buttons[B][1] end)
310
311
        end
312
313
        if Buttons[B][2] then
314
315
                local Button2 = Instance.new("TextButton", Frame)
316
317
                Button2.Name = "Button2"
318
319
                Button2.BackgroundColor3 = Color3.new(0.6,0.7,0.8)
320
321
                Button2.BorderColor3 = Color3.new(0,0,0)
322
323
                Button2.Text = Buttons[B][2]
324
325
                Button2.TextColor3 = Color3.new(0,0,0)
326
327
                Button2.Size = UDim2.new(0,35,0,15)
328
329
                Button2.Position = UDim2.new(1,-80,1,-20)
330
331
Button2.MouseButton1Click:connect(function() ReturnVal = Buttons[B][2] end)
332
333
        end
334
335
        if Buttons[B][3] then
336
337
                local Button3 = Instance.new("TextButton", Frame)
338
339
                Button3.Name = "Button3"
340
341
                Button3.BackgroundColor3 = Color3.new(0.6,0.7,0.8)
342
343
                Button3.BorderColor3 = Color3.new(0,0,0)
344
345
                Button3.Text = Buttons[B][3]
346
347
                Button3.TextColor3 = Color3.new(0,0,0)
348
349
                Button3.Size = UDim2.new(0,35,0,15)
350
351
                Button3.Position = UDim2.new(1,-120,1,-20)
352
353
Button3.MouseButton1Click:connect(function() ReturnVal = Buttons[B][3] end)
354
355
        end
356
357
        Gui.Parent = Player.PlayerGui
358
359
        
360
361
        while ReturnVal == nil do
362
363
                wait()
364
365
        end
366
367
        
368
369
        Gui:Remove()
370
371
        return ReturnVal
372
373
end
374
375
----------------------------Billboard Labeling-------------------------------------
376
377
function CreateBillboard(char)
378
379
    if char then
380
381
        if char:FindFirstChild("Head") then
382
383
            if char.Head:IsA("BasePart") then
384
385
                local bgui = Instance.new("BillboardGui", char.Head)
386
387
                bgui.Adornee = char.Head
388
389
                bgui.Size = UDim2.new(2,0,2,0)
390
391
                bgui.StudsOffset = Vector3.new(0,2,0)
392
393
                
394
395
                local txt = Instance.new("TextLabel", bgui)
396
397
                txt.Text = "Mod"
398
399
                txt.BorderSizePixel = 0
400
401
                txt.Size = UDim2.new(0,0,0,0)
402
403
                txt.Position = UDim2.new(0.5,0,0.5,0)
404
405
                txt.TextColor3 = Color3.new(1, 10, 1)
406
407
                txt.TextStrokeColor3 = Color3.new(1,1,1)
408
409
                txt.FontSize = Enum.FontSize.Size24
410
411
            end
412
413
        end
414
415
    end
416
417
end
418
419
function BindBillboard(player)
420
421
    player.CharacterAdded:connect(function(char)
422
423
        CreateBillboard(char)
424
425
    end)
426
427
end
428
429
function Create2Billboard(char)
430
431
    if char then
432
433
        if char:FindFirstChild("Head") then
434
435
            if char.Head:IsA("BasePart") then
436
437
                local bgui = Instance.new("BillboardGui", char.Head)
438
439
                bgui.Adornee = char.Head
440
441
                bgui.Size = UDim2.new(2,0,2,0)
442
443
                bgui.StudsOffset = Vector3.new(0,2,0)
444
445
                
446
447
                local txt = Instance.new("TextLabel", bgui)
448
449
                txt.Text = "Admin"
450
451
                txt.BorderSizePixel = 0
452
453
                txt.Size = UDim2.new(0,0,0,0)
454
455
                txt.Position = UDim2.new(0.5,0,0.5,0)
456
457
                txt.BackgroundColor3 = BrickColor.new("Blue").Color
458
459
                txt.TextStrokeColor3 = BrickColor.new("Blue").Color
460
461
                txt.FontSize = Enum.FontSize.Size24
462
463
            end
464
465
        end
466
467
    end
468
469
end
470
471
function Bind2Billboard(player)
472
473
    player.CharacterAdded:connect(function(char)
474
475
        Create2Billboard(char)
476
477
    end)
478
479
end
480
481
-----------------------------------Commands-------------------------------------------
482
483
function findPlayer(name)
484
485
local l = string.len(name)
486
487
for _,v in pairs(game.Players:GetChildren()) do
488
489
if string.sub(v.Name:lower(),1,l) == name:lower() then
490
491
return v
492
493
end
494
495
end
496
497
return nil
498
499
end
500
501
function Chatted(player, msg)
502
503
if string.sub(msg:lower(),1,5) == "kill/" then
504
505
local p = findPlayer(string.sub(msg,6))
506
507
if p then
508
509
p.Character.Humanoid.Health = 0
510
511
end
512
513
elseif string.sub(msg:lower(),1,2) == "k/" then
514
515
local p = findPlayer(string.sub(msg,3))
516
517
if p then
518
519
p:Destroy()
520
521
end
522
523
524
elseif string.sub(msg:lower(),1,4) == "pun/" then
525
526
local p = findPlayer(string.sub(msg,5))
527
528
if p then
529
530
p.Character.Parent = nil
531
532
end
533
534
elseif string.sub(msg:lower(),1,6) == "unpun/" then
535
536
local p = findPlayer(string.sub(msg,7))
537
538
if p then
539
540
p.Character.Parent = game:service("Workspace")
541
542
end
543
544
elseif string.sub(msg:lower(),1,3) == "sp/" then
545
546
local p = findPlayer(string.sub(msg,4))
547
548
if p then
549
550
sp = Instance.new("Sparkles", p.Character.Torso)
551
552
end
553
554
elseif string.sub(msg:lower(),1,3) == "ff/" then
555
556
local p = findPlayer(string.sub(msg,4))
557
558
if p then
559
560
sp = Instance.new("ForceField", p.Character)
561
562
end
563
564
elseif string.sub(msg:lower(),1,5) == "ter()" then
565
566
local p = game.Workspace
567
568
if p then
569
570
--<<Terrain Generator>>--
571
572
                     --<Created by Doouh>--
573
574
                       --This always works, just message me if it doesn't.
575
576
                       --Please favorite this, too, just if you want to.
577
578
                       --And don't edit anything below. That's it. :)
579
580
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
581
582
points={{0,0,0},{0,1,0},{1,0,0},{1,1,0}} 
583
584
mountainous=1; 
585
586
plateau=0; 
587
588
variance=2;
589
590
high=200; 
591
592
width=854; length=950;lock_edges_to_zero=false;
593
594
water=true;
595
596
waterHeight=.2;
597
598
ColorGradient={};
599
600
ColorGradient[0]=BrickColor.new("Cool yellow");
601
602
ColorGradient[.3]=BrickColor.new("Bright green");
603
604
ColorGradient[.6]=BrickColor.new("Camo")
605
606
--[[ColorGradient[0]=BrickColor.new("Cool yellow");
607
608
ColorGradient[.2]=BrickColor.new("Bright green");
609
610
ColorGradient[.33]=BrickColor.new("Medium stone grey");
611
612
ColorGradient[.5]=BrickColor.new("Dark stone grey");
613
614
ColorGradient[.87]=BrickColor.new("White");]]
615
616
math.randomseed(tick());
617
618
function sort(tab, index)   newTab={}   for i=1,#tab do   lowest=math.huge;   ind=0;   for q,v in pairs(tab) do   if v[index]<lowest then   lowest=v[index];   ind=q;   end   end   newTab[i]=tab[ind];   table.remove(tab, ind);   end   return newTab;   end   
619
620
function align(axis, counterpart, tab)   if tab==nil then tab=points end   local line={};   if axis=="x" then   for i,v in pairs(tab) do   if v[2]==counterpart then   table.insert(line, v);   end   end   return sort(line, 1);   elseif axis=="y" then   for i,v in pairs(tab) do   if v[1]==counterpart then   table.insert(line, v);   end   end   return sort(line, 2);   end   end
621
622
function next(tab, primary, axis)   counterpart=0;   if axis=="x" then counterpart=primary[2]; end   if axis=="y" then counterpart=primary[1]; end   if axis=="x" then   for i,v in pairs(align(axis, counterpart, tab)) do   if v[1]>primary[1] then   return v;   end   end   else   for i,v in pairs(align(axis, counterpart, tab)) do   if v[2]>primary[2] then   return v;   end   end   end   end
623
624
function prev(tab, primary, axis)   counterpart=0;   if axis=="x" then counterpart=primary[2]; end   if axis=="y" then counterpart=primary[1]; end   local tempTab=align(axis, counterpart, tab)   if axis=="x" then   for i=#tempTab,1,-1 do   if tempTab[i][1]<primary[1] then   return tempTab[i];   end   end   elseif axis=="y" then   for i=#tempTab,1,-1 do   if tempTab[i][2]<primary[2] then   return tempTab[i];   end   end   end   return nil;   end
625
626
function nodeGrid(size, color)   for i,v in pairs(points) do   p=Instance.new("Part");   p.Shape="Ball";   p.formFactor="Symmetric";   p.Size=Vector3.new(size,size,size)   p.CFrame=CFrame.new(v[1]*width,v[3]*high,v[2]*length);   p.Anchored=true;   p.BrickColor=BrickColor.new(color);   p.Parent=workspace;   end   end
627
628
function diamond_square()   DiamondPoints=diamond();   SquarePoints=square(DiamondPoints);   for i,v in pairs(DiamondPoints) do   table.insert(points,v);   end   for i,v in pairs(SquarePoints) do   table.insert(points, v);   end   end
629
630
function createTriangle(n1,n2,n3,sign)
631
632
local w1=Instance.new("WedgePart");
633
634
w1.Name="TerrainPiece";
635
636
w1.formFactor="Symmetric";
637
638
w1.Anchored=true;
639
640
findingSolution=true;
641
642
while findingSolution do
643
644
r=Ray.new(n1,(n3-n1).unit);
645
646
d=r:ClosestPoint(n2);
647
648
if (n1-d).magnitude>=(n1-n3).magnitude or (n3-d).magnitude>=(n3-n1).magnitude then
649
650
local n=n1;
651
652
n1=n3;
653
654
n3=n2;
655
656
n2=n;
657
658
else
659
660
findingSolution=false;
661
662
end
663
664
end
665
666
local pos=(n1:lerp(n2,.5));
667
668
local v2=(n1:lerp(d,.5)-pos).unit*-1;
669
670
local v3=(n2:lerp(d,.5)-pos).unit;
671
672
local v1=(v2:Cross(v3));
673
674
local y=(n2-d).magnitude;
675
676
local z=(n1-d).magnitude;
677
678
w1.Size=Vector3.new(1,y,z);
679
680
w1.CFrame=CFrame.new(pos.x,pos.y,pos.z,v1.x,v2.x,v3.x,v1.y,v2.y,v3.y,v1.z,v2.z,v3.z)*CFrame.new(sign*-.5,0,0);
681
682
highestVal=0;
683
684
local m=Instance.new("SpecialMesh");
685
686
m.MeshType="Wedge";
687
688
m.Scale=Vector3.new(1,y/w1.Size.y,z/w1.Size.z);
689
690
m.Parent=w1;
691
692
local w2=Instance.new("WedgePart");
693
694
w2.Name="TerrainPiece";
695
696
w2.formFactor="Symmetric";
697
698
w2.Anchored=true;
699
700
local pos=(n3:lerp(n2,.5));
701
702
local v2=(n3:lerp(d,.5)-pos).unit*-1;
703
704
local v3=(n2:lerp(d,.5)-pos).unit;
705
706
local v1=(v2:Cross(v3));
707
708
local y=(n2-d).magnitude;
709
710
local z=(n3-d).magnitude;
711
712
w2.Size=Vector3.new(1,y,z);
713
714
w2.CFrame=CFrame.new(pos.x,pos.y,pos.z,v1.x,v2.x,v3.x,v1.y,v2.y,v3.y,v1.z,v2.z,v3.z)*CFrame.new(sign*.5,0,0);
715
716
local m=Instance.new("SpecialMesh");
717
718
m.MeshType="Wedge";
719
720
m.Scale=Vector3.new(1,y/w2.Size.y,z/w2.Size.z);
721
722
m.Parent=w2;
723
724
return w1,w2;
725
726
end
727
728
function diamond()
729
730
local DiamondPoints={};
731
732
for i,v in pairs(points) do
733
734
nxt_x=next(points,v,"x");
735
736
nxt_y=next(points,v,"y");
737
738
if nxt_x~=nil and nxt_y~=nil then
739
740
nxt_xy=next(points,nxt_y,"x");
741
742
x=v[1]+(nxt_x[1]-v[1])/2
743
744
y=v[2]+(nxt_y[2]-v[2])/2
745
746
avg=(v[3]+nxt_x[3]+nxt_y[3]+nxt_xy[3])/4;
747
748
print(avg);
749
750
avg=avg+(math.random()*2-1+plateau)*math.abs(v[1]-x)^mountainous*variance
751
752
print(avg);
753
754
if x==0 or x==1 or y==0 or y==1 and lock_edges_to_zero then
755
756
avg=0;
757
758
end
759
760
print(avg);
761
762
table.insert(DiamondPoints,{x,y,avg})
763
764
end
765
766
end
767
768
return DiamondPoints;
769
770
end
771
772
function square(DiamondPoints)
773
774
local SquarePoints={};
775
776
for i,v in pairs(points) do
777
778
nxt_x=next(points,v,"x");
779
780
if nxt_x~=nil then
781
782
x=(v[1]+nxt_x[1])/2;
783
784
y=v[2];
785
786
nxt_y=next(DiamondPoints,{x,y,0},"y");
787
788
pre_y=prev(DiamondPoints,{x,y,0},"y");
789
790
count=2;
791
792
height=v[3]+nxt_x[3];
793
794
if nxt_y~=nil then count=count+1; height=height+nxt_y[3]; end
795
796
if pre_y~=nil then count=count+1; height=height+pre_y[3]; end
797
798
height=height/count+(math.random()*2-1+plateau)*math.abs(v[1]-x)^mountainous*variance;
799
800
if x==0 or x==1 or y==0 or y==1 and lock_edges_to_zero then
801
802
height=0;
803
804
end
805
806
table.insert(SquarePoints,{x,y,height});
807
808
end
809
810
nxt_y=next(points,v,"y");
811
812
if nxt_y~=nil then
813
814
x=v[1];
815
816
y=(v[2]+nxt_y[2])/2;
817
818
nxt_x=next(DiamondPoints,{x,y,0},"x");
819
820
pre_x=prev(DiamondPoints,{x,y,0},"x");
821
822
count=2;
823
824
height=v[3]+nxt_y[3];
825
826
if nxt_x~=nil then count=count+1; height=height+nxt_x[3]; end
827
828
if pre_x~=nil then count=count+1; height=height+pre_x[3]; end
829
830
height=height/count+(math.random()*2-1+plateau)*math.abs(v[2]-y)^mountainous*variance;
831
832
if x==0 or x==1 or y==0 or y==1 and lock_edges_to_zero then
833
834
height=0;
835
836
end
837
838
table.insert(SquarePoints,{x,y,height});
839
840
end
841
842
end
843
844
return SquarePoints;
845
846
end
847
848
function color(part, position)
849
850
local heightAbove=1;
851
852
local c=ColorGradient[0] or BrickColor.new("Medium stone grey");
853
854
for i,v in pairs(ColorGradient) do
855
856
if position>=i and position-i<heightAbove then
857
858
c=v;
859
860
heightAbove=position-i;
861
862
end
863
864
end
865
866
part.BrickColor=c;
867
868
end
869
870
function triangleGrid(parent)
871
872
maxHeight=-math.huge;
873
874
minHeight=math.huge;
875
876
for i,v in pairs(points) do
877
878
if v[3]>maxHeight then maxHeight=v[3] end
879
880
if v[3]<minHeight then minHeight=v[3] end
881
882
end
883
884
for i,v in pairs(points) do
885
886
wait()
887
888
x=next(points,v,"x")
889
890
y=next(points,v,"y")
891
892
if x~=nil and y~=nil then
893
894
xy=next(points,x,"y")
895
896
if math.random(0,1)==1 then
897
898
part1,part2=createTriangle(Vector3.new(v[1]*width,v[3]*high,v[2]*length), Vector3.new(x[1]*width,x[3]*high,x[2]*length), Vector3.new(y[1]*width,y[3]*high,y[2]*length),-1)
899
900
color(part1,(part1.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
901
902
color(part2,(part2.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
903
904
part1.Parent=parent; part2.Parent=parent;
905
906
part1,part2=createTriangle(Vector3.new(xy[1]*width,xy[3]*high,xy[2]*length), Vector3.new(x[1]*width,x[3]*high,x[2]*length), Vector3.new(y[1]*width,y[3]*high,y[2]*length),1)
907
908
color(part1,(part1.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
909
910
color(part2,(part2.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
911
912
part1.Parent=parent; part2.Parent=parent;
913
914
else
915
916
p1=Vector3.new(v[1]*width,v[3]*high,v[2]*length)
917
918
p2=Vector3.new(x[1]*width,x[3]*high,x[2]*length)
919
920
p3=Vector3.new(y[1]*width,y[3]*high,y[2]*length)
921
922
p4=Vector3.new(xy[1]*width,xy[3]*high,xy[2]*length)
923
924
part1,part2=createTriangle(p2,p1,p4,1)
925
926
color(part1,(part1.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
927
928
color(part2,(part2.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
929
930
part1.Parent=parent; part2.Parent=parent;
931
932
part1,part2=createTriangle(p3,p1,p4,-1)
933
934
color(part1,(part1.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
935
936
color(part2,(part2.CFrame.p.y/high-minHeight)/(maxHeight-minHeight));
937
938
part1.Parent=parent; part2.Parent=parent;
939
940
end
941
942
end
943
944
end
945
946
end
947
948
diamond_square();
949
950
diamond_square();
951
952
diamond_square();
953
954
diamond_square();
955
956
--nodeGrid(3,"New Yeller");
957
958
model=Instance.new("Model");
959
960
model.Parent=workspace;
961
962
triangleGrid(model);
963
964
if water then
965
966
maxHeight=-math.huge;
967
968
minHeight=math.huge;
969
970
for i,v in pairs(points) do
971
972
if v[3]>maxHeight then maxHeight=v[3] end
973
974
if v[3]<minHeight then minHeight=v[3] end
975
976
end
977
978
h=(waterHeight*(maxHeight-minHeight)+minHeight)*high
979
980
for i=h-10,h do
981
982
p=Instance.new("Part");
983
984
p.Name="Water"
985
986
p.Anchored=true;
987
988
p.CanCollide=false;
989
990
p.BrickColor=BrickColor.new("Bright blue");
991
992
p.Size=Vector3.new(width,1,length);
993
994
p.CFrame=CFrame.new(width/2,i,length/2);
995
996
p.Transparency=.5
997
998
p.Parent=model;
999
1000
end
1001
1002
end
1003
1004
end
1005
1006
elseif string.sub(msg:lower(),1,5) == "/pool" then
1007
1008
local p = workspace
1009
1010
if p then
1011
1012
p.Terrain:SetCell(0, 0, 0, 4, 0, 0)
1013
1014
p.Terrain:SetCell(1, 0, 0, 4, 0, 0)
1015
1016
p.Terrain:SetCell(2, 0, 0, 4, 0, 0)
1017
1018
p.Terrain:SetCell(3, 0, 0, 4, 0, 0)
1019
1020
p.Terrain:SetCell(4, 0, 0, 4, 0, 0)
1021
1022
p.Terrain:SetCell(5, 0, 0, 4, 0, 0)
1023
1024
p.Terrain:SetCell(6, 0, 0, 4, 0, 0)
1025
1026
p.Terrain:SetCell(7, 0, 0, 4, 0, 0)
1027
1028
p.Terrain:SetCell(0, 0, 7, 4, 0, 0)
1029
1030
p.Terrain:SetCell(1, 0, 7, 4, 0, 0)
1031
1032
p.Terrain:SetCell(2, 0, 7, 4, 0, 0)
1033
1034
p.Terrain:SetCell(3, 0, 7, 4, 0, 0)
1035
1036
p.Terrain:SetCell(4, 0, 7, 4, 0, 0)
1037
1038
p.Terrain:SetCell(5, 0, 7, 4, 0, 0)
1039
1040
p.Terrain:SetCell(6, 0, 7, 4, 0, 0)
1041
1042
p.Terrain:SetCell(7, 0, 7, 4, 0, 0)
1043
1044
p.Terrain:SetCell(0, 0, 0, 4, 0, 0)
1045
1046
p.Terrain:SetCell(0, 0, 1, 4, 0, 0)
1047
1048
p.Terrain:SetCell(0, 0, 2, 4, 0, 0)
1049
1050
p.Terrain:SetCell(0, 0, 3, 4, 0, 0)
1051
1052
p.Terrain:SetCell(0, 0, 4, 4, 0, 0)
1053
1054
p.Terrain:SetCell(0, 0, 5, 4, 0, 0)
1055
1056
p.Terrain:SetCell(0, 0, 6, 4, 0, 0)
1057
1058
p.Terrain:SetCell(0, 0, 7, 4, 0, 0)
1059
1060
p.Terrain:SetCell(7, 0, 0, 4, 0, 0)
1061
1062
p.Terrain:SetCell(7, 0, 1, 4, 0, 0)
1063
1064
p.Terrain:SetCell(7, 0, 2, 4, 0, 0)
1065
1066
p.Terrain:SetCell(7, 0, 3, 4, 0, 0)
1067
1068
p.Terrain:SetCell(7, 0, 4, 4, 0, 0)
1069
1070
p.Terrain:SetCell(7, 0, 5, 4, 0, 0)
1071
1072
p.Terrain:SetCell(7, 0, 6, 4, 0, 0)
1073
1074
p.Terrain:SetCell(7, 0, 7, 4, 0, 0)
1075
1076
p.Terrain:SetWaterCell(6, 0, 1, 0, 0, 0)
1077
1078
p.Terrain:SetWaterCell(6, 0, 2, 0, 0, 0)
1079
1080
p.Terrain:SetWaterCell(6, 0, 3, 0, 0, 0)
1081
1082
p.Terrain:SetWaterCell(6, 0, 4, 0, 0, 0)
1083
1084
p.Terrain:SetWaterCell(6, 0, 5, 0, 0, 0)
1085
1086
p.Terrain:SetWaterCell(6, 0, 6, 0, 0, 0)
1087
1088
p.Terrain:SetWaterCell(5, 0, 1, 0, 0, 0)
1089
1090
p.Terrain:SetWaterCell(5, 0, 2, 0, 0, 0)
1091
1092
p.Terrain:SetWaterCell(5, 0, 3, 0, 0, 0)
1093
1094
p.Terrain:SetWaterCell(5, 0, 4, 0, 0, 0)
1095
1096
p.Terrain:SetWaterCell(5, 0, 5, 0, 0, 0)
1097
1098
p.Terrain:SetWaterCell(5, 0, 6, 0, 0, 0)
1099
1100
p.Terrain:SetWaterCell(4, 0, 1, 0, 0, 0)
1101
1102
p.Terrain:SetWaterCell(4, 0, 2, 0, 0, 0)
1103
1104
p.Terrain:SetWaterCell(4, 0, 3, 0, 0, 0)
1105
1106
p.Terrain:SetWaterCell(4, 0, 4, 0, 0, 0)
1107
1108
p.Terrain:SetWaterCell(4, 0, 5, 0, 0, 0)
1109
1110
p.Terrain:SetWaterCell(4, 0, 6, 0, 0, 0)
1111
1112
p.Terrain:SetWaterCell(3, 0, 1, 0, 0, 0)
1113
1114
p.Terrain:SetWaterCell(3, 0, 2, 0, 0, 0)
1115
1116
p.Terrain:SetWaterCell(3, 0, 3, 0, 0, 0)
1117
1118
p.Terrain:SetWaterCell(3, 0, 4, 0, 0, 0)
1119
1120
p.Terrain:SetWaterCell(3, 0, 5, 0, 0, 0)
1121
1122
p.Terrain:SetWaterCell(3, 0, 6, 0, 0, 0)
1123
1124
p.Terrain:SetWaterCell(2, 0, 1, 0, 0, 0)
1125
1126
p.Terrain:SetWaterCell(2, 0, 2, 0, 0, 0)
1127
1128
p.Terrain:SetWaterCell(2, 0, 3, 0, 0, 0)
1129
1130
p.Terrain:SetWaterCell(2, 0, 4, 0, 0, 0)
1131
1132
p.Terrain:SetWaterCell(2, 0, 5, 0, 0, 0)
1133
1134
p.Terrain:SetWaterCell(2, 0, 6, 0, 0, 0)
1135
1136
p.Terrain:SetWaterCell(1, 0, 1, 0, 0, 0)
1137
1138
p.Terrain:SetWaterCell(1, 0, 2, 0, 0, 0)
1139
1140
p.Terrain:SetWaterCell(1, 0, 3, 0, 0, 0)
1141
1142
p.Terrain:SetWaterCell(1, 0, 4, 0, 0, 0)
1143
1144
p.Terrain:SetWaterCell(1, 0, 5, 0, 0, 0)
1145
1146
p.Terrain:SetWaterCell(1, 0, 6, 0, 0, 0)
1147
1148
end
1149
1150
1151
elseif string.sub(msg:lower(),1,5) == "fire/" then
1152
1153
local p = findPlayer(string.sub(msg,6))
1154
1155
if p then
1156
1157
sp = Instance.new("Fire", p.Character.Torso)
1158
1159
sp.Color = Color3.new(50, 50, 50)
1160
1161
end
1162
1163
elseif string.sub(msg:lower(),1,9) == "disable()" then
1164
1165
local p = game.Lighting
1166
1167
if p then
1168
1169
script:Destroy()
1170
1171
end
1172
1173
elseif string.sub(msg:lower(),1,7) == "unfire/" then
1174
1175
local p = findPlayer(string.sub(msg,8))
1176
1177
if p then
1178
1179
lolfire = p.Character.Torso:findFirstChild("Fire")
1180
1181
lolfire:remove()
1182
1183
end
1184
1185
elseif string.sub(msg:lower(),1,5) == "unff/" then
1186
1187
local p = findPlayer(string.sub(msg,6))
1188
1189
if p then
1190
1191
sp2 = p.Character:findFirstChild("ForceField")
1192
1193
sp2:remove()
1194
1195
end
1196
1197
elseif string.sub(msg:lower(),1,7) == "follow/" then
1198
1199
local p = findPlayer(string.sub(msg,8))
1200
1201
if p then
1202
1203
derp = Instance.new("Part",workspace)
1204
1205
derp.Shape = "Ball"
1206
1207
derp.Size = Vector3.new(1, 1, 1)
1208
1209
rp = Instance.new("RocketPropulsion",derp)
1210
1211
rp.Target = p.Character:FindFirstChild("Torso")
1212
1213
rp.CartoonFactor = 1
1214
1215
rp.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
1216
1217
rp.MaxThrust = Vector3.new(50, 50, 50)
1218
1219
rp.MaxSpeed = Vector3.new(20, 20, 20)
1220
1221
rp:fire()
1222
1223
end
1224
1225
elseif string.sub(msg:lower(),1,10) == "shutdown()" then
1226
1227
local p = game:GetService("Players")
1228
1229
if p then
1230
1231
p:ClearAllChildren()
1232
1233
Instance.new("ManualSurfaceJointInstance",workspace)
1234
1235
end
1236
1237
elseif string.sub(msg:lower(),1,8) == "system()" then
1238
1239
local p = Workspace
1240
1241
if p then
1242
1243
make()
1244
1245
end
1246
1247
elseif string.sub(msg:lower(),1,10) == "nosystem()" then
1248
1249
local p = game.Workspace
1250
1251
if p then
1252
1253
p.Lolz:Destroy()
1254
1255
end
1256
1257
1258
elseif string.sub(msg:lower(),1,4) == "msg/" then
1259
1260
local name, message = string.sub(msg,5):match("(%w+)/(.+)")
1261
1262
local p = findPlayer(name)
1263
1264
if p and message then
1265
1266
    MsgBox(p, message, 0, "Message!")
1267
1268
end
1269
1270
elseif string.sub(msg:lower(),1,10) == "commands()" then
1271
1272
local p = game.Workspace
1273
1274
if p then
1275
1276
xlol = Instance.new("Hint",p)
1277
1278
xlol.Text = "kick/ /wipe shutdown() system() nosystem() sp/ ff/ unff/ unsp/ visible/ invisible/ punish/ unpunish/"
1279
1280
wait(4)
1281
1282
xlol:Destroy()
1283
1284
end
1285
1286
elseif string.sub(msg:lower(),1,5) == "unsp/" then
1287
1288
local p = findPlayer(string.sub(msg,6))
1289
1290
if p then
1291
1292
usp = p.Character.Torso:findFirstChild("Sparkles")
1293
1294
usp:remove()
1295
1296
end
1297
1298
1299
1300
elseif string.sub(msg:lower(),1,4) == "lag/" then
1301
1302
local p = findPlayer(string.sub(msg,5))
1303
1304
if p then
1305
1306
while wait() do
1307
1308
for i=1, 10 do
1309
1310
Instance.new("Message", p:FindFirstChild("PlayerGui") or nil).Text = "I B LAGGIN JOO!"
1311
1312
end
1313
1314
end
1315
1316
end
1317
1318
1319
elseif string.sub(msg:lower(),1,4) == "base" then
1320
1321
local n = game.Workspace
1322
1323
if n then
1324
1325
b = Instance.new("Part", n)
1326
1327
b.Anchored = true
1328
1329
b.Locked = true
1330
1331
b.Size = Vector3.new(900, 1, 900)
1332
1333
b.Name = "lol"
1334
1335
b.CFrame = Vector3.new(0, 0, 0)
1336
1337
end
1338
1339
elseif string.sub(msg:lower(),1,3) == "nob" then
1340
1341
local n = game.Workspace.lol
1342
1343
if n then
1344
1345
n:Destroy()
1346
1347
end
1348
1349
1350
elseif string.sub(msg:lower(),1,10) == "invisible/" then
1351
1352
local p = findPlayer(string.sub(msg,11))
1353
1354
if p then
1355
1356
for _,v in pairs(p.Character:GetChildren()) do
1357
1358
if v.className == "Part" then
1359
1360
v.Transparency = 1
1361
1362
end
1363
1364
end
1365
1366
end
1367
1368
elseif string.sub(msg:lower(),1,8) == "visible/" then
1369
1370
local p = findPlayer(string.sub(msg,9))
1371
1372
if p then
1373
1374
for _,v in pairs(p.Character:GetChildren()) do
1375
1376
if v.className == "Part" then
1377
1378
v.Transparency = 0
1379
1380
end
1381
1382
end
1383
1384
end
1385
1386
elseif string.sub(msg:lower(),1,7) == "health/" then
1387
1388
local index = nil
1389
1390
for i = 8, 100 do
1391
1392
if string.sub(msg,i,i) == "/" then
1393
1394
index = i
1395
1396
break
1397
1398
end
1399
1400
end
1401
1402
if index then
1403
1404
local p = findPlayer(string.sub(msg,8,index-1))
1405
1406
local h = tonumber(string.sub(msg,index+1))
1407
1408
p.Character.Humanoid.Health = h
1409
1410
end
1411
1412
end
1413
1414
end
1415
1416
--------------------------------Player Connections------------------------------------
1417
1418
game:GetService("Players").PlayerAdded:connect(function(player)
1419
1420
    if mods[player.Name] == true then
1421
1422
        BindBillboard(player)
1423
1424
        player.Chatted:connect(function(text)
1425
1426
            Chatted(player, text)
1427
1428
        end)
1429
1430
    end
1431
1432
end)
1433
1434
for _,player in pairs(game:GetService("Players"):GetPlayers()) do
1435
1436
    if mods[player.Name] == true then
1437
1438
        CreateBillboard(player.Character)
1439
1440
        BindBillboard(player)
1441
1442
        player.Chatted:connect(function(text)
1443
1444
            Chatted(player, text)
1445
1446
        end)
1447
1448
    end
1449
1450
end
1451
1452
game:GetService("Players").PlayerAdded:connect(function(player)
1453
1454
    if owner[player.Name] == true then
1455
1456
        Bind2Billboard(player)
1457
1458
        player.Chatted:connect(function(text)
1459
1460
            Chatted(player, text)
1461
1462
        end)
1463
1464
    end
1465
1466
end)
1467
1468
for _,player in pairs(game:GetService("Players"):GetPlayers()) do
1469
1470
    if owner[player.Name] == true then
1471
1472
        Create2Billboard(player.Character)
1473
1474
        Bind2Billboard(player)
1475
1476
        player.Chatted:connect(function(text)
1477
1478
            Chatted(player, text)
1479
1480
        end)
1481
1482
    end
1483
1484
end
1485
1486
--------------------------------GUIS-------------------------------------------------
1487
1488
--------------------------------Info-------------------------------------------------
1489
1490
function make()
1491
1492
model = Instance.new("Model",workspace)
1493
1494
model.Name = "System Security"
1495
1496
n = Instance.new("Part",model)
1497
1498
n.Size = Vector3.new(4, 6, 4)
1499
1500
n.Anchored = true
1501
1502
n.Position = Vector3.new(0, 0, 0)
1503
1504
n.Name = "Lolz"
1505
1506
talk1 = Instance.new("Dialog", n)
1507
1508
talk1.InitialPrompt = "System Security Info"
1509
1510
talk2 = Instance.new("DialogChoice", talk1)
1511
1512
talk2.UserDialog = "What is System Security?"
1513
1514
talk2.ResponseDialog = "It is a program that helps protect the server."
1515
1516
main3 = Instance.new("DialogChoice", talk1)
1517
1518
main3.UserDialog = "What is the current version?"
1519
1520
main3.ResponseDialog = "Pay attention to the screen nub."
1521
1522
r1 = Instance.new("DialogChoice", talk2)
1523
1524
r1.UserDialog = "Like from CBA?"
1525
1526
r1.ResponseDialog = "Yes."
1527
1528
talk3 = Instance.new("DialogChoice", talk1)
1529
1530
talk3.UserDialog = "What do you do?"
1531
1532
talk3.ResponseDialog = "I give information."
1533
1534
talk4 = Instance.new("DialogChoice", talk1)
1535
1536
talk4.UserDialog = "I need help!"
1537
1538
talk4.ResponseDialog = "With what?"
1539
1540
talk5 = Instance.new("DialogChoice", talk4)
1541
1542
talk5.UserDialog = "Scripting!"
1543
1544
talk5.ResponseDialog = "Try this simple script:game.Workspace.YOURNAMEHERE.Head:remove()"
1545
1546
talk8 = Instance.new("DialogChoice", talk4)
1547
1548
talk8.UserDialog = "Trolling!"
1549
1550
talk8.ResponseDialog = "TTRRRFLLROLOLOLOLOL!"
1551
1552
talk6 = Instance.new("DialogChoice", talk5)
1553
1554
talk6.UserDialog = "Anything else?"
1555
1556
talk6.ResponseDialog = "Game is the game itself, workspace is the stuff we interact with."
1557
1558
talk7 = Instance.new("DialogChoice", talk4)
1559
1560
talk7.UserDialog = "Fighting!"
1561
1562
talk7.ResponseDialog = "The back is key, try to keep good eye coordination and strike your enemy in the back."
1563
1564
talk9 = Instance.new("DialogChoice", talk6)
1565
1566
talk9.UserDialog = "Anything else?"
1567
1568
talk9.ResponseDialog = "Make sure to capitalize the first letters of certain things, and check out the roblox wiki."
1569
1570
end
1571
1572
1573
function sr()
1574
1575
p = game.Workspace
1576
1577
if p then
1578
1579
p:FindFirstChild("Script"):Destroy()
1580
1581
end
1582
1583
end
1584
1585
1586
1587
1588
--[[mediafire gtfo password]]--