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