Advertisement
RyanDaCoder

x

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