View difference between Paste ID: Ncbe0HY2 and 4PMJqcV2
SHOW: | | - or go back to the newest paste.
1
--Made by Soilder2134, You won't get banned, but be careful with this script. There's alot of reporters. Go to line 5, 906,
2
--and 907 and put your name where it says "YOURNAMEHERE" Any glitches report to me!
3
4
--[[LEGO]]--
5
--[[SM Commands]]--
6
local Adminlist={"ericthecoolbuy", "ryanproles"}
7-
local Adminlist={"YOURNAMEHERE", "YOURNAMEHERE"}
7+
8
local Commands={}
9
local IPs={}
10
--[[Settings]]--
11
local GuiMessage=true--[[Makes a GUI message instead of lame old messsage]]
12
local AddLocalPlayer=false--[[You need to run this in local script, it will add the player who is using this script.]]
13
local IntroGui=true--[[Enables a Introduction GUI]]
14
local Bubble=false--[[A chat bubble]]
15
local PrivateServer=false--[[Makes a private server]]
16
local Version=2.00
17
--[[Music IDs:
18
Wind Of Fjords:1015394
19
]]--
20
--[[Functions]]--
21
for i,v in pairs(script:GetChildren()) do
22
    pcall(function()
23
        if v.Name=="DSource" then
24
            v:remove()
25
        end
26
    end)
27
end
28
model=Instance.new("Model",game.Lighting)
29
model.Name="People"
30
model1=Instance.new("Model",model)
31
model1.Name="AFK"
32
function AddCommand(Command,Func)
33
    table.insert(Commands,{Command=Command,Func=Func})
34
end
35
function AddIP(player,ip)
36
        table.insert(IPs,{Name=player,IP=ip})
37
end
38
function Music(v)
39
        music=Instance.new("Sound",game.Workspace)
40
        music.Name="Sound;Admin"
41
        music.SoundId="http://www.roblox.com/asset/?id="..v
42
        music:Play()
43
end
44
function FindIP(Text,Speaker)
45
    for i,v in pairs(IPs) do
46
        if v.Name:lower():find(Text:lower())==1 then
47
            local H=Instance.new("Hint",Speaker.PlayerGui)
48
            H.Text=v.Name .. " - " .. v.IP
49
            game:service("Debris"):AddItem(H,5)
50
                        return
51
        end
52
    end
53
        H=Instance.new("Hint",Speaker.PlayerGui)
54
        H.Text="Could not find user!"
55
        game:service("Debris"):AddItem(H,2)
56
end
57
function SecIP(Text)
58
    for i,v in pairs(IPs) do
59
        if v.Name:lower():find(Text:lower())==1 then
60
            return v.IP
61
        end
62
    end
63
end
64
function Shutdown()
65
Instance.new("ManualSurfaceJointInstance",workspace)
66
end
67
function Hint(texts)
68
        coroutine.resume(coroutine.create(function()
69
                for i,v in pairs(game.Players:GetChildren()) do
70
                        a=Instance.new("ScreenGui",v.PlayerGui)
71
                        a.Name="Message"
72
                        b=Instance.new("Frame",a)
73
                        b.Size=UDim2.new(1,0,0.07,0)
74
                        b.BackgroundTransparency=0.5
75
                        b.BackgroundColor3=Color3.new(0,0,0)
76
                        c=Instance.new("TextLabel",b)
77
                        c.FontSize="Size14"
78
                        c.Position=UDim2.new(0.5,0,0.5,0)
79
                        c.TextColor3=Color3.new(1,1,1)
80
                                for tr=1,#texts do
81
                                        c.Text=texts:sub(1,tr)
82
                                        wait()
83
                                end
84
                        game:service("Debris"):AddItem(a,2)
85
                end
86
        end))
87
end
88
function PrintPlayers()
89
        Hint(#game.NetworkServer:GetChildren().." is amount of players")
90
end
91
function fWeld(zName,zParent,zPart0,zPart1,zCoco,a,b,c,d,e,f)
92
        local funcw = Instance.new("Weld") 
93
        funcw.Name = zName 
94
        funcw.Parent = zParent 
95
        funcw.Part0 = zPart0 
96
        funcw.Part1 = zPart1 
97
        if (zCoco == true) then 
98
        funcw.C0 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f) 
99
        else 
100
        funcw.C1 = CFrame.new(a,b,c) *CFrame.fromEulerAnglesXYZ(d,e,f) 
101
        end 
102
        return funcw 
103
end 
104
function Rpe(v,s,w,sp) 
105
        for i,v in pairs(sp(w[2])) do
106
                for c,b in pairs(sp(w[3])) do
107
                n1 = v.Name
108
                n2 = b.Name
109
                t1 = game.Players[n1].Character.Torso 
110
                t2 = game.Players[n2].Character.Torso 
111
                t2.Parent.Humanoid.PlatformStand = true 
112
                t1["Left Shoulder"]:Remove() 
113
                ls1 = Instance.new("Weld") 
114
                ls1.Parent = t1 
115
                ls1.Part0 = t1 
116
                ls1.Part1 = t1.Parent["Left Arm"] 
117
                ls1.C0 = CFrame.new(-1.5,0,0) 
118
                ls1.Name = "Left Shoulder" 
119
                t1["Right Shoulder"]:Remove() 
120
                rs1 = Instance.new("Weld")
121
                rs1.Parent = t1 
122
                rs1.Part0 = t1 
123
                rs1.Part1 = t1.Parent["Right Arm"] 
124
                rs1.C0 = CFrame.new(1.5,0,0) 
125
                rs1.Name = "Right Shoulder"
126
                --[[ t1["Left Hip"]:Remove() 
127
                lh1 = Instance.new("Weld") 
128
                lh1.Parent = t1 
129
                lh1.Part0 = t1 
130
                lh1.Part1 = t1.Parent["Left Leg"] 
131
                lh1.C0 = CFrame.new(-0.5,-2,0) 
132
                lh1.Name = "Left Hip" t1["Right Hip"]:Remove() 
133
                rh1 = Instance.new("Weld") rh1.Parent = t1 
134
                rh1.Part0 = t1 
135
                rh1.Part1 = t1.Parent["Right Leg"] 
136
                rh1.C0 = CFrame.new(0.5,-2,0) 
137
                rh1.Name = "Right Hip"]] 
138
                t2["Left Shoulder"]:Remove() 
139
                ls2 = Instance.new("Weld") 
140
                ls2.Parent = t2 
141
                ls2.Part0 = t2 
142
                ls2.Part1 = t2.Parent["Left Arm"] 
143
                ls2.C0 = CFrame.new(-1.5,0,0) 
144
                ls2.Name = "Left Shoulder" 
145
                t2["Right Shoulder"]:Remove() 
146
                rs2 = Instance.new("Weld") 
147
                rs2.Parent = t2 
148
                rs2.Part0 = t2 
149
                rs2.Part1 = t2.Parent["Right Arm"] 
150
                rs2.C0 = CFrame.new(1.5,0,0) 
151
                rs2.Name = "Right Shoulder" 
152
                t2["Left Hip"]:Remove() 
153
                lh2 = Instance.new("Weld") 
154
                lh2.Parent = t2 
155
                lh2.Part0 = t2 
156
                lh2.Part1 = t2.Parent["Left Leg"] 
157
                lh2.C0 = CFrame.new(-0.5,-2,0) 
158
                lh2.Name = "Left Hip" 
159
                t2["Right Hip"]:Remove() 
160
                rh2 = Instance.new("Weld") 
161
                rh2.Parent = t2 
162
                rh2.Part0 = t2 
163
                rh2.Part1 = t2.Parent["Right Leg"] 
164
                rh2.C0 = CFrame.new(0.5,-2,0) 
165
                rh2.Name = "Right Hip" 
166
                local d = Instance.new("Part") 
167
                d.TopSurface = 0 
168
                d.BottomSurface = 0 
169
                d.CanCollide = false 
170
                d.BrickColor = BrickColor.new("Medium stone grey") 
171
                d.Shape = "Ball" d.Parent = t1 
172
                d.Size = Vector3.new(1,1,1) 
173
                local dm = Instance.new("SpecialMesh") 
174
                dm.MeshType = "Sphere" 
175
                dm.Parent = d 
176
                dm.Scale = Vector3.new(0.4,0.4,0.4) 
177
                fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0) 
178
                d2 = d:Clone() 
179
                d2.Parent = t1 
180
                fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0) 
181
                local c = Instance.new("Part") 
182
                c.TopSurface = 0 c.BottomSurface = 0 
183
                c.CanCollide = false 
184
                c.BrickColor = BrickColor.new("Pastel brown") 
185
                c.Parent = t1 
186
                c.formFactor = "Custom" 
187
                c.Size = Vector3.new(0.4,1.3,0.4) 
188
                cm = Instance.new("CylinderMesh") 
189
                cm.Parent = c 
190
                a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0) 
191
                c2 = d:Clone() 
192
                c2.BrickColor = BrickColor.new("Medium stone grey") 
193
                c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4) 
194
                c2.Parent = t1 
195
                fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0) 
196
                local bl = Instance.new("Part")
197
                bl.TopSurface = 0 
198
                bl.BottomSurface = 0 
199
                bl.CanCollide = false 
200
                bl.BrickColor = BrickColor.new("Pastel brown") 
201
                bl.Shape = "Ball" 
202
                bl.Parent = t2 
203
                bl.Size = Vector3.new(1,1,1) 
204
                local dm = Instance.new("SpecialMesh") 
205
                dm.MeshType = "Sphere" 
206
                dm.Parent = bl 
207
                dm.Scale = Vector3.new(1.2,1.2,1.2) 
208
                fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0) 
209
                local br = Instance.new("Part") 
210
                br.TopSurface = 0 
211
                br.BottomSurface = 0 
212
                br.CanCollide = false 
213
                br.BrickColor = BrickColor.new("Pastel brown") 
214
                br.Shape = "Ball" 
215
                br.Parent = t2 
216
                br.Size = Vector3.new(1,1,1) 
217
                local dm = Instance.new("SpecialMesh") 
218
                dm.MeshType = "Sphere" 
219
                dm.Parent = br 
220
                dm.Scale = Vector3.new(1.2,1.2,1.2) 
221
                fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0) 
222
                local bln = Instance.new("Part") 
223
                bln.TopSurface = 0 
224
                bln.BottomSurface = 0 
225
                bln.CanCollide = false 
226
                bln.Shape = "Ball" 
227
                bln.Parent = t2 
228
                bln.Size = Vector3.new(1,1,1) 
229
                local dm = Instance.new("SpecialMesh") 
230
                dm.MeshType = "Sphere" 
231
                dm.Parent = bln 
232
                dm.Scale = Vector3.new(0.2,0.2,0.2) 
233
                fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0) 
234
                local brn = Instance.new("Part") 
235
                brn.TopSurface = 0 
236
                brn.BottomSurface = 0 
237
                brn.CanCollide = false
238
                brn.Shape = "Ball" 
239
                brn.Parent = t2 
240
                brn.Size = Vector3.new(1,1,1) 
241
                local dm = Instance.new("SpecialMesh") 
242
                dm.MeshType = "Sphere" 
243
                dm.Parent = brn 
244
                dm.Scale = Vector3.new(0.2,0.2,0.2) 
245
                fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0) 
246
                lh2.C1 = CFrame.new(0,-1.5,-0.5) *CFrame.Angles(0.9,-0.4,0) 
247
                rh2.C1 = CFrame.new(0,-1.5,-0.5) *CFrame.Angles(0.9,0.4,0) 
248
                ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) *CFrame.Angles(0.9,-0.4,0) 
249
                rs2.C1 = CFrame.new(0.5,-1.3,-0.5) *CFrame.Angles(0.9,0.4,0) 
250
                ls1.C1 = CFrame.new(-0.5,0.7,0) *CFrame.Angles(-0.9,-0.4,0) 
251
                rs1.C1 = CFrame.new(0.5,0.7,0) *CFrame.Angles(-0.9,0.4,0)                
252
                if t1:findFirstChild("weldx") ~= nil then 
253
                t1.weldx:Remove() end 
254
                we = fWeld("weldx",t1,t1,t2,true,0,-0.9,-1.3,math.rad(-90),0,0) 
255
                n = t2.Neck 
256
                n.C0 = CFrame.new(0,1.5,0) *CFrame.Angles(math.rad(-210),math.rad(180),0) 
257
                while true do wait() for i=1,6 do we.C1 = we.C1 * CFrame.new(0,-0.3,0) wait() end 
258
                for i=1,6 do we.C1 = we.C1 * CFrame.new(0,0.3,0) wait() end end
259
                end
260
        end
261
end
262
function SearchPlayer(Player,Speaker,tab)
263
    if tab==nil then tab={} end
264
    if Player:lower()=="others" then
265
        local s={}
266
        for i,v in pairs(game.Players:GetChildren()) do
267
            if v~=Speaker then
268
            table.insert(s,v)
269
            end
270
        end
271
    return s
272
    end
273
    if Player:lower()=="all" then
274
        local s={}
275
        for i,v in pairs(game.Players:GetPlayers()) do
276
            table.insert(s,v)
277
        end
278
        return s
279
    end
280
    if Player:lower()=="nonadmins" then
281
        local b={}
282
        for i,v in pairs(game.Players:GetPlayers()) do
283
                local admin=false
284
                for a,x in pairs(Adminlist) do
285
                    if v.Name:lower()==x:lower() then
286
                         admin=true
287
                    end
288
                    if admin==false then
289
                        table.insert(b,v)
290
                    end
291
                end
292
            end
293
        return b
294
    end
295
    if Player:lower()=="admins" then
296
        local b={}
297
        for i,v in pairs(game.Players:GetPlayers()) do
298
            for __,_ in pairs(Adminlist) do
299
                if v.Name:lower()==_:lower() then
300
                    table.insert(b,v)
301
                end
302
            end
303
        end
304
        return b
305
    end
306
    for i,v in pairs(game.Players:GetPlayers()) do
307
        if v.Name:lower():find(Player:lower())==1 then
308
            table.insert(tab,v)
309
        end
310
    end
311
    if Player:match(",") then
312
        for v in Player:gmatch(",([^,]+)") do
313
            SearchPlayer(v,Speaker,tab)
314
        end
315
    end
316
    return tab
317
end
318
function Kill(v,s)
319
    for i,v in pairs(SearchPlayer(v,s)) do
320
                v.Character:BreakJoints()
321
    end
322
end
323
function Rename(v,s,w,sp)
324
        for i,v in pairs(sp(w[2])) do
325
                p = game.Players[v.Name]
326
                Anim = p.Character:FindFirstChild("Animate",true):Clone()
327
                p.Character.Archivable = true
328
                l = p.Character:Clone()
329
                clone = l:Clone() clone.Parent = Workspace
330
                clone.Name = w[3]
331
                a = Anim:Clone()
332
                p.Character = clone
333
                a.Parent = clone  
334
        end
335
end
336
function Health(v,s,w,sp)
337
        for i,v in pairs(sp(w[2])) do
338
                v.Character.Humanoid.Health=w[3]
339
        end
340
end
341
function SelectBody(v,s)
342
        for i,v in pairs(SearchPlayer(v,s)) do
343
                select=Instance.new("SelectionBox",v.Character.Head)
344
                select1=Instance.new("SelectionBox",v.Character.Torso)
345
                select2=Instance.new("SelectionBox",v.Character["Right Arm"])
346
                select3=Instance.new("SelectionBox",v.Character["Left Arm"])
347
                select4=Instance.new("SelectionBox",v.Character["Left Leg"])
348
                select5=Instance.new("SelectionBox",v.Character["Right Leg"])
349
                select.Adornee=v.Character.Head
350
                select1.Adornee=v.Character.Torso
351
                select2.Adornee=v.Character["Right Arm"]
352
                select3.Adornee=v.Character["Left Arm"]
353
                select4.Adornee=v.Character["Left Leg"]
354
                select5.Adornee=v.Character["Right Leg"]
355
                v.Character.Humanoid.MaxHealth=100000000
356
        end
357
end
358
function UnSelectBody(v,s)
359
        for i,v in pairs(SearchPlayer(v,s)) do
360
                for s,b in pairs(v.Character:GetChildren()) do
361
                        for w,m in pairs(b:GetChildren()) do
362
                                if m.className=="SelectionBox" then
363
                                        m:Remove()
364
                                end
365
                        end
366
                end
367
                v.Character.Humanoid.MaxHealth=100
368
        end
369
end
370
function Freeze(v,s)
371
        for i,v in pairs(SearchPlayer(v,s)) do
372
                v.Character.Humanoid.WalkSpeed=0
373
                for a,b in pairs(v.Character:GetChildren()) do
374
                        if b.className=="Part" then
375
                                b.Anchored=true
376
                                b.Reflectance=0.6
377
                        end
378
                end
379
        end
380
end
381
function UnFreeze(v,s)
382
        for i,v in pairs(SearchPlayer(v,s)) do
383
                v.Character.Humanoid.WalkSpeed=15
384
                for a,b in pairs(v.Character:GetChildren()) do
385
                        if b.className=="Part" then
386
                                b.Anchored=false
387
                                b.Reflectance=0
388
                        end
389
                end
390
        end
391
end
392
function UnInvisible(v,s)
393
        for i,v in pairs(SearchPlayer(v,s)) do
394
                for a,b in pairs(v.Character:GetChildren()) do
395
                        if b.className=="Part" then
396
                                b.Transparency=0
397
                        end
398
                end
399
        end
400
end
401
function Invisible(v,s)
402
        for i,v in pairs(SearchPlayer(v,s)) do
403
                for a,b in pairs(v.Character:GetChildren()) do
404
                        if b.className=="Part" then
405
                                b.Transparency=1
406
                        end
407
                end
408
        end
409
end
410
function Teleport(v,s,w,sp)
411
    -- w[1] = Said command
412
    -- w[2] = 1st arg, 
413
    -- w[3] = 2nd arg
414
    for i,v in pairs(sp(w[2],s)) do
415
        for _,c in pairs(sp(w[3],s)) do
416
            local a,b=pcall(function()
417
                v.Character.Torso.CFrame=c.Character.Torso.CFrame+Vector3.new(0,0,-2)
418
            end)print(a,b)
419
        end
420
    end
421
end
422
function ForceField(v,s)
423
    for i,v in pairs(SearchPlayer(v,s)) do
424
       forcefield=Instance.new("ForceField",v.Character)
425
    end
426
end
427
function UnForceField(v,s)
428
    for i,v in pairs(SearchPlayer(v,s)) do
429
    for b,a in pairs(v.Character:GetChildren()) do
430
        if a.className=="ForceField" then
431
            a:Remove()
432
        end
433
    end
434
end
435
end
436
function Kick(v,s)
437
        for i,v in pairs(SearchPlayer(v,s)) do
438
        a,b= pcall(function() v:Remove()  end)
439
        print(a,b)
440
        end
441
end
442
function NewScript(v)
443
    local func = loadstring(v) or function() end 
444
    pcall(function()
445
        coroutine.resume(coroutine.create(func))
446
    end)
447
end
448
function Fire(v,s)
449
        for i,v in pairs(SearchPlayer(v,s)) do
450
        pcall(function()
451
        fire=Instance.new("Fire",v.Character.Torso)
452
        end)
453
        end
454
end
455
function Noobify(v,s)
456
        for i,v in pairs(SearchPlayer(v,s)) do
457
                local char=v.Character
458
                char["Left Arm"].BrickColor=BrickColor.new("Bright yellow")
459
                char["Right Arm"].BrickColor=BrickColor.new("Bright yellow")
460
                char["Right Leg"].BrickColor=BrickColor.new("Bright green")
461
                char["Left Leg"].BrickColor=BrickColor.new("Bright green")
462
                char["Torso"].BrickColor=BrickColor.new("Bright blue")
463
                char["Head"].BrickColor=BrickColor.new("Bright yellow")
464
                for b,c in pairs(char:GetChildren()) do
465
                        if c.className=="Hat" then
466
                                c:remove()
467
                        end
468
                end
469
        end
470
end
471
function Zombify(v,s)
472
        for i,v in pairs(SearchPlayer(v,s)) do
473
                local char=v.Character
474
                char["Left Arm"].BrickColor=BrickColor.new("Bright green")
475
                char["Right Arm"].BrickColor=BrickColor.new("Bright green")
476
                char["Right Leg"].BrickColor=BrickColor.new("Bright green")
477
                char["Left Leg"].BrickColor=BrickColor.new("Bright green")
478
                char["Torso"].BrickColor=BrickColor.new("Reddish brown")
479
                char["Head"].BrickColor=BrickColor.new("Bright green")
480
                for b,c in pairs(char:GetChildren()) do
481
                        if c.className=="Hat" then
482
                                c:remove()
483
                        end
484
                end
485
        end
486
end
487
function UnFire(d,s)
488
        for i,v in pairs(SearchPlayer(d,s)) do
489
        for a,b in pairs(v.Character:GetChildren()) do
490
                if b.className=="Fire" then 
491
                        b:Remove()
492
                end
493
                for s,c in pairs(b:GetChildren()) do
494
                        if c.className=="Fire" then
495
                        c:remove()
496
                        end
497
                end
498
        end
499
        end
500
end
501
function ScriptRemove()
502
script:remove()
503
end
504
function Punish(v,s)
505
        pcall(function()
506
                for i,v in pairs(SearchPlayer(v,s)) do
507
                        v.Character.Parent=game.Lighting.People
508
                end
509
        end)
510
end
511
function UnPunish(v,s)
512
        pcall(function()
513
                for i,v in pairs(SearchPlayer(v,s)) do
514
                        person=game.Lighting.People[v.Name]
515
                        person.Parent=game.Workspace
516
                        person:MakeJoints()
517
                end
518
        end)
519
end
520
function Deek(v,s)
521
for i,v in pairs(SearchPlayer(v,s)) do
522
        person=v.Name
523
        color = "Pastel brown"
524
        pcall(function() game.Players[person].Character["Nice thing"]:Remove() end)
525
        D = Instance.new("Model",workspace[person])
526
        D.Name = "Nice thing"
527
        bg = Instance.new("BodyGyro",workspace[person].Torso)
528
        d = Instance.new("Part")
529
        d.TopSurface = 0
530
        d.BottomSurface = 0
531
        d.Name = "Main"
532
        d.Parent = workspace[person]["Nice thing"]
533
        d.formFactor = 3
534
        d.Size = Vector3.new(0.6,2.5,0.6)
535
        d.BrickColor = BrickColor.new(color)
536
        d.Position = workspace[person].Head.Position
537
        d.CanCollide = false
538
        local cy = Instance.new("CylinderMesh")
539
        cy.Parent = d
540
        w = Instance.new("Weld")
541
        w.Parent = workspace[person].Head
542
        w.Part0 = d
543
        w.Part1 = workspace[person].Head
544
        w.C0 = CFrame.new(0,0.25,2.1)*CFrame.Angles(math.rad(45),0,0)
545
        local c = Instance.new("Part")
546
                c.Name = "Mush"
547
        c.BottomSurface = 0
548
        c.TopSurface = 0
549
        c.FormFactor = 3
550
        c.Size = Vector3.new(0.6,0.6,0.6)
551
        c.CFrame = CFrame.new(d.Position)
552
        c.BrickColor = BrickColor.new("Pink")
553
        c.CanCollide = false
554
        c.Parent = workspace[person]["Nice thing"]
555
        local msm = Instance.new("SpecialMesh")
556
        msm.Parent = c
557
        msm.MeshType = "Sphere"
558
        local cw = Instance.new("Weld")
559
        cw.Parent = c
560
        cw.Part0 = d
561
        cw.Part1 = c
562
        cw.C0 = CFrame.new(0,1.3,0)
563
        local ball1 = Instance.new("Part")
564
        ball1.Parent = workspace[person]["Nice thing"]
565
        ball1.Name = "Left Ball"
566
        ball1.BottomSurface = 0
567
        ball1.TopSurface = 0
568
        ball1.CanCollide = false
569
        ball1.formFactor = 3
570
        ball1.Size = Vector3.new(1,1,1)
571
        ball1.CFrame = CFrame.new(workspace[person]["Left Leg"].Position)
572
        ball1.BrickColor = BrickColor.new(color)
573
        local bsm = Instance.new("SpecialMesh")
574
        bsm.Parent = ball1
575
        bsm.MeshType = "Sphere"
576
        local b1w = Instance.new("Weld")
577
        b1w.Parent = ball1
578
        b1w.Part0 = workspace[person]["Left Leg"]
579
        b1w.Part1 = ball1
580
        b1w.C0 = CFrame.new(0,0.5,-.5)
581
        local ball2 = Instance.new("Part")
582
        ball2.Parent = workspace[person]["Nice thing"]
583
        ball2.Name = "Right Ball"
584
        ball2.BottomSurface = 0
585
        ball2.CanCollide = false
586
        ball2.TopSurface = 0
587
        ball2.formFactor = 3
588
        ball2.Size = Vector3.new(1,1,1)
589
        ball2.CFrame = CFrame.new(workspace[person]["Right Leg"].Position)
590
        ball2.BrickColor = BrickColor.new(color)
591
        local b2sm = Instance.new("SpecialMesh")
592
        b2sm.Parent = ball2
593
        b2sm.MeshType = "Sphere"
594
        local b2w = Instance.new("Weld")
595
        b2w.Parent = ball2
596
        b2w.Part0 = workspace[person]["Right Leg"]
597
        b2w.Part1 = ball2
598
        b2w.C0 = CFrame.new(0,0.5,-.5)
599
end
600
end
601
function UnDeek(v,s)
602
        for i,v in pairs(SearchPlayer(v,s)) do
603
                v.Character["Nice thing"]:remove()
604
        end
605
end
606
function Message(texts,s)
607
        if GuiMessage==true then
608
        coroutine.resume(coroutine.create(function()
609
                for i,v in pairs(game.Players:GetChildren()) do
610
                        a=Instance.new("ScreenGui",v.PlayerGui)
611
                        a.Name="Message"
612
                        b=Instance.new("Frame",a)
613
                        b.Size=UDim2.new(1,0,1,0)
614
                        b.BackgroundTransparency=0.5
615
                        b.BackgroundColor3=Color3.new(0,0,0)
616
                        c=Instance.new("TextLabel",b)
617
                        c.FontSize="Size14"
618
                        c.Position=UDim2.new(0.5,0,0.5,0)
619
                        c.TextColor3=Color3.new(1,1,1)
620
                                for tr=1,#texts do
621
                                        c.Text=texts:sub(1,tr)
622
                                        wait(0.1)
623
                                end
624
                game:service("Debris"):AddItem(a,2)
625
                end
626
        end))
627
        else
628
                message=Instance.new("Message",game.Workspace)
629
                message.Text=texts:sub(1,i)
630
                game:service("Debris"):AddItem(message,2)
631
        end
632
end
633
function Ban(v,s)
634
        for i,v in pairs(SearchPlayer(v,s)) do
635
                table.insert(Banlist,v.Name)
636
                pcall(function() v:remove() end)
637
        end
638
end
639
function CreateBase()
640
        base=Instance.new("Part",game.Workspace)
641
        base.Anchored=true
642
        base.Size=Vector3.new(512,0,512)
643
        base.Position=Vector3.new(50,50,50)
644
        base.BrickColor=BrickColor.new("Earth green")
645
        base.TopSurface=0
646
        base.BottomSurface=0
647
        base.Shape="Block"
648
        base.Locked=true
649
        base.Name="Base;Admin"
650
end
651
function CheckAdmin(n)
652
    for i,v in pairs(Adminlist) do
653
        if v:lower()==n.Name:lower() then
654
            return true
655
        end
656
    end
657
    return false
658
end
659
function RemoveHats(v,s)
660
        for i,v in pairs(SearchPlayer(v,s)) do
661
                for a,b in pairs(v.Character:GetChildren()) do
662
                        if b.className=="Hat" then
663
                                b:remove()
664
                        end
665
                end
666
        end
667
end
668
function Jump(v,s)
669
        for i,v in pairs(SearchPlayer(v,s)) do
670
                v.Character.Humanoid.Jump=true
671
        end
672
end
673
function Bomb(v,s)
674
        bomb=Instance.new("Part",game.Workspace)
675
        bomb.Size=Vector3.new(2,2,2)
676
        bomb.Anchored=false
677
        bomb.Locked=true
678
        mesh=Instance.new("SpecialMesh",bomb)
679
        mesh.MeshType="FileMesh"
680
        mesh.TextureId="rbxasset://textures/bombtex.png"
681
        mesh.MeshId="rbxasset://fonts/timebomb.mesh"
682
        for i,v in pairs(SearchPlayer(v,s)) do
683
                bomb.Position=v.Character.Head.Position+Vector3.new(0,1,0)
684
        end
685
        explosion = Instance.new("Explosion",game.Workspace)
686
        explosion.BlastRadius = 12
687
        explosion.BlastPressure = 1000000
688
        explosion.Position=bomb.Position
689
        bomb:remove()
690
end
691
function Sit(v,s)
692
        for i,v in pairs(SearchPlayer(v,s)) do
693
                v.Character.Humanoid.Sit=true
694
        end
695
end
696
function Debug(v,s)
697
        for l,e in pairs(game.Workspace:GetChildren()) do
698
                if e.className=="Message" then
699
                        e:remove()
700
                end
701
        end
702
        for i,v in pairs(SearchPlayer(v,s)) do
703
                for a,b in pairs(v.PlayerGui:GetChildren()) do
704
                        b:remove()
705
                end
706
                for f,g in pairs(v:GetChildren()) do
707
                        if g.className=="Message" then
708
                                g:remove()
709
                        end
710
                end
711
        end
712
end
713
function SearchCommand(Command,Speaker)
714
    local a,b=pcall(function()
715
    -- Made by mew903, btw
716
        coroutine.resume(coroutine.create(function()
717
    if not CheckAdmin(Speaker) then return end -- my function. my rules >:L
718
        local NewCommand=Command:match(";(.+)")
719
        if NewCommand then
720
                Command=Command:gsub(";"..NewCommand,"")
721
                SearchCommand(NewCommand,Speaker)
722
        end
723
    for i,v in pairs(Commands) do
724
        if Command:lower():sub(1,#v.Command+1)==v.Command:lower().."/" then
725
            v.Func(Command:sub(#v.Command+2),Speaker,(function()
726
                local Split={}
727
                for s in Command:gmatch("([^/]+)") do
728
                    table.insert(Split,s)
729
                end
730
                return Split
731
            end)(),SearchPlayer)
732
        end
733
    end
734
        end))
735
    end)print(a,b)
736
end
737
function ChangeBCType(v,s,w,sp)
738
        coroutine.resume(coroutine.create(function()
739
                for i,v in pairs(sp(w[2])) do
740
                        while wait() do 
741
                                v.MembershipTypeReplicate = w[3]
742
                        end
743
                end
744
        end))
745
end
746
function MessageAdmin(v)
747
        if CheckAdmin(v) then
748
                message=Instance.new("Message",v.PlayerGui)
749
                message.Text="Your a admin!"
750
                wait(2)
751
                message:Remove()
752
        end
753
end
754
function Admin(v,s)
755
    for i,v in pairs(SearchPlayer(v,s)) do
756
        table.insert(Adminlist,v.Name)
757
        MessageAdmin(v)
758
    end
759
end
760
function Chatted(s)
761
    s.Chatted:connect(function(c)
762
        SearchCommand(c,s)
763
                if CheckAdmin(s) then
764
                        if Bubble==true then
765
                                Game:GetService("Chat"):Chat(game.Workspace[s.Name].Head,s.Name..":".. c,Enum.ChatColor.Green) 
766
                        end
767
                end
768
    end)
769
end
770
function EnableBubbleChat()
771
        Bubble=true
772
end
773
function DisableBubbleChat()
774
        Bubble=false
775
end
776
function BanOn(player)
777
        for i,v in pairs(Banlist) do
778
                if v:lower()==player.Name:lower() then
779
                        print(player.Name.." tried to enter")
780
                        player:remove()
781
                end
782
        end
783
end
784
function GetCommands(v,s)
785
        coroutine.resume(coroutine.create(function()
786
                m=Instance.new("Hint",s.PlayerGui)
787
                for i,v in pairs(Commands) do
788
                        m.Text=v.Command.."/"
789
                        wait(1)
790
                end
791
                game:service("Debris"):AddItem(m,2)
792
        end))
793
end
794
function StickFigure(v,s)
795
        for i,v in pairs(SearchPlayer(v,s)) do
796
                local n = v.Name
797
                local m = game.Players[n].Character
798
                for i,v in pairs(m:GetChildren()) do
799
                        if v:IsA ("Part") then
800
                                local s = Instance.new("SelectionPartLasso")
801
                                s.Parent = m.Torso
802
                                s.Part = v
803
                                s.Humanoid = m.Humanoid
804
                                s.Color = BrickColor.new(0,0,0)
805
                                v.Transparency = 1
806
                                m.Head.Transparency = 0
807
                                m.Head.Mesh:Remove()
808
                                local b = Instance.new("SpecialMesh")
809
                                b.Parent = m.Head
810
                                b.MeshType = "Sphere"
811
                                b.Scale = Vector3.new(.5,1,1)
812
                                m.Head.BrickColor = BrickColor.new("Black")
813
                        else
814
                        end 
815
                end 
816
        end 
817
end
818
function EnablePri()
819
        PrivateServer=true
820
end
821
function DisablePri()
822
        PrivateServer=false
823
end
824
function Rocket(v,s)
825
coroutine.resume(coroutine.create(function()
826
for i,v in pairs(SearchPlayer(v,s)) do
827
                        if v.Character and v.Character:FindFirstChild("Torso") then
828
                                delay(0,function()
829
                local Part = Instance.new("Part")
830
                Part.Parent = v.Character
831
                local SpecialMesh = Instance.new("SpecialMesh") 
832
                SpecialMesh.Parent = Part
833
                SpecialMesh.MeshId = "http://www.roblox.com/asset/?id=2251534" 
834
                SpecialMesh.MeshType = "FileMesh" 
835
                SpecialMesh.TextureId = "43abb6d081e0fbc8666fc92f6ff378c1" 
836
                SpecialMesh.Scale = Vector3.new(0.5,0.5,0.5)
837
                local Weld = Instance.new("Weld")
838
                Weld.Parent = Part
839
                Weld.Part0 = Part
840
                Weld.Part1 = v.Character.Torso
841
                Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(-1.5,0,0)
842
                                        local BodyVelocity = Instance.new("BodyVelocity")
843
                        BodyVelocity.Parent = Part
844
                        BodyVelocity.maxForce = Vector3.new(math.huge,math.huge,math.huge)
845
                        BodyVelocity.velocity = Vector3.new(0,10*speed,0)
846
                delay(0,function()
847
                                        for i = 1,math.huge do
848
                        local Explosion = Instance.new("Explosion")
849
                        Explosion.Parent = Part
850
                        Explosion.BlastRadius = 0
851
                        Explosion.Position = Part.Position + Vector3.new(0,0,0)
852
                        wait()
853
                end end)        
854
                wait(tonumber(10))
855
                                        pcall(function()
856
                                                BodyVelocity:remove()
857
                                                Instance.new("Explosion",workspace).Position=v.Character.Torso.Position
858
                                                v.Character:BreakJoints()
859
                                        end)
860
                                end)
861
                        end
862
                end
863
                                end))
864
end
865
function Respawn(v,s)
866
        for i,v in pairs(SearchPlayer(v,s)) do
867
                local Model = Instance.new("Model")
868
                Model.Parent = game.Workspace
869
                local Part = Instance.new("Part")
870
                Part.Transparency = 1
871
                Part.CanCollide = false
872
                Part.Anchored = true
873
                Part.Name = "Torso"
874
                Part.Position = Vector3.new(10000,10000,10000)
875
                Part.Parent = Model
876
                local Humanoid = Instance.new("Humanoid")
877
                Humanoid.Torso = Part
878
                Humanoid.Parent = Model
879
                v.Character = Model
880
        end
881
end
882
function UnAdmin(v,s)
883
        local player=SearchPlayer(v,s)
884
        for i,v in pairs(player) do
885
                for i=1,#Adminlist do
886
                        if Adminlist[i]:lower()==v.Name:lower() then 
887
                                table.remove(Adminlist,i)
888
                        end
889
                end
890
        end
891
end
892
function OnEnter(player)
893
        Hint(player.Name.." has entered.")
894
end
895
function OnLeave(player)
896
        Hint(player.Name.." has left!")
897
end
898
function Pri(player)
899
        if PrivateServer==true then
900
                player:remove()
901
        end
902
end
903
--[[Commands]]--
904
if AddLocalPlayer==true then
905
        pcall(function() table.insert(Adminlist,game.Players.LocalPlayer.Name) end)
906
end
907
table.insert(Adminlist,"YOURNAMEHERE")
908
table.insert(Adminlist,"YOURNAMEHERE")
909
AddCommand("kill",Kill)
910
AddCommand("admin",Admin)
911
AddCommand("fire",Fire)
912
AddCommand("unfire",UnFire)
913
AddCommand("forcefield",ForceField)
914
AddCommand("unforcefield",UnForceField)
915
AddCommand("s",NewScript)
916
AddCommand("base",CreateBase)
917
AddCommand("kick",Kick)
918
AddCommand("teleport",Teleport)
919
AddCommand("punish",Punish)
920
AddCommand("unpunish",UnPunish)
921
AddCommand("removescript",ScriptRemove)
922
AddCommand("m",Message)
923
AddCommand("noobify",Noobify)
924
AddCommand("zombify",Zombify)
925
AddCommand("bomb",Bomb)
926
AddCommand("sit",Sit)
927
AddCommand("jump",Jump)
928
AddCommand("afk",Punish)
929
AddCommand("back",UnPunish)
930
AddCommand("ban",Ban)
931
AddCommand("fakeff",SelectBody)
932
AddCommand("unfakeff",UnSelectBody)
933
AddCommand("invisible",Invisible)
934
AddCommand("visible",UnInvisible)
935
AddCommand("freeze",Freeze)
936
AddCommand("thaw",UnFreeze)
937
AddCommand("debug",Debug)
938
AddCommand("getip",FindIP)
939
AddCommand("d33k",Deek)
940
AddCommand("und33k",UnDeek)
941
AddCommand("removehats",RemoveHats)
942
AddCommand("sound",Music)
943
AddCommand("rename",Rename)
944
AddCommand("health",Health)
945
AddCommand("shutdown",Shutdown)
946
AddCommand("commands",GetCommands)
947
AddCommand("bctype",ChangeBCType)
948
AddCommand("rpe",Rpe)
949
AddCommand("rocket",Rocket)
950
AddCommand("stickify",StickFigure)
951
AddCommand("enablechat",EnableBubbleChat)
952
AddCommand("disablechat",DisableBubbleChat)
953
AddCommand("enablepri",EnablePri)
954
AddCommand("disablepri",DisablePri)
955
AddCommand("respawn",Respawn)
956
AddCommand("unadmin",UnAdmin)
957
AddCommand("h",Hint)
958
AddCommand("seeplayers",PrintPlayers)
959
--[[IPs]]--
960
AddIP("mario98966","68.198.159.206:57055")
961
AddIP("mountain717","99.99.235.110:57947")
962
AddIP("acb227","69.217.169.109:1451")
963
AddIP("TheNewSausage","24.228.34.183:49998")
964
AddIP("NetworkServer","69.177.26.229")
965
AddIP("jefferydenaakano","71.122.121.89:64504")    
966
AddIP("pauldude32","60.53.120.101")
967
AddIP("ghostbusters1","69.112.174.192")
968
--[[Connections]]--
969
for i,v in pairs(game.Players:GetPlayers()) do
970
    Chatted(v)
971
    BanOn(v)
972
    MessageAdmin(v)
973
        Pri(v)
974
end
975
game.Players.PlayerAdded:connect(Chatted)
976
game.Players.PlayerAdded:connect(BanOn)
977
game.Players.PlayerAdded:connect(MessageAdmin)
978
game.Players.PlayerAdded:connect(Pri)
979
game.Players.PlayerAdded:connect(OnEnter)
980
game.Players.ChildRemoved:connect(OnLeave)
981
if IntroGui==true then
982
        Message("S&S Commands by hidensniper"..Version.." has loaded.")
983
end
984
pcall(function()
985
    game:service('NetworkServer').IncommingConnection:connect(function(ip)
986
        playerconnect=game.Players.PlayerAdded:connect(function(player)
987
        table.insert(IPs,{Name=player.Name,IP=ip})
988
        for i,v in ipairs(game:service('Players'):GetChildren()) do
989
            if CheckAdmin(v) then
990
            message=Instance.new("Hint",v.PlayerGui)
991
            message.Text=player.Name.." and "..ip
992
                        print('AddIP("'..player.Name..'","'..ip..'")')
993
            wait(4)
994
            message:remove()
995
            end
996
        end
997
        pcall(function()playerconnect:disconnect()print'nil.'end)
998
    end)
999
end)
1000
end)