Advertisement
Ak47Studioz

rape

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