Advertisement
JuicyPenguin

Lego admin

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