Advertisement
ttyyuu12345

Duck!

Sep 20th, 2016
427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.26 KB | None | 0 0
  1. --©ttyyuu12345 Productions,LLC
  2. script.Parent = nil
  3. if game.PlaceId==210101277 then
  4. setfenv(1,GetBreakout())
  5. end
  6. owners = { "Player1", "GenericScripter" , "PenguinAnonymous" , "tusKOr661" , "djdjdj","randomnoobplayer","ttyyuu12345alt","IPityTheFoo"}
  7. publicorb = false
  8. introMessageOnEnter = false
  9. banned = {"Romania12x"}
  10. chrashlist = {"skrillex6996","AbsoluteMonarch","GRAGGER2001","Bad_Scripter"}
  11. loopkill = {"ScriptTesterBuilder","DatOneHaxor","NoobDesrtroyer5000","poopernode"} -- Last user editable list --
  12. stop = false
  13. assets = {
  14. {["Type"] = "Character Appearances",["Name"] = "Restore",["Id"] = function(ple) local id = ple.userId return id end},
  15. {["Type"] = "Character Appearances",["Name"] = "djdjdj",["Id"] = function(ple) local id = 258500 return id end},
  16. {["Type"] = "Character Appearances",["Name"] = "ttyyuu12345",["Id"] = function(ple) local id = 6911602 return id end},
  17. {["Type"] = "Character Appearances",["Name"] = "Noob",["Id"] = function(ple) local id = 1332757 return id end},
  18. {["Type"] = "Character Appearances",["Name"] = "nairod7",["Id"] = function(ple) local id = 7225903 return id end},
  19. {["Type"] = "Character Appearances",["Name"] = "Person299",["Id"] = function(ple) local id = 214258 return id end},
  20. {["Type"] = "Character Appearances",["Name"] = "builderman",["Id"] = function(ple) local id = 156 return id end},
  21. {["Type"] = "Character Appearances",["Name"] = "guest",["Id"] = function(ple) local id = 1 return id end},
  22. {["Type"] = "Character Appearances",["Name"] = "Anaminus",["Id"] = function(ple) local id = 9201 return id end},
  23. {["Type"] = "Hats",["Name"] = "BC hat",["Id"] = function(ple) local id = 1080951 return id end},
  24. {["Type"] = "Hats",["Name"] = "TBC hat",["Id"] = function(ple) local id = 11844853 return id end},
  25. {["Type"] = "Hats",["Name"] = "OBC hat",["Id"] = function(ple) local id = 17408283 return id end},
  26. {["Type"] = "Hats",["Name"] = "New Years Doge",["Id"] = function(ple) local id = 192562352 return id end},
  27. {["Type"] = "Hats",["Name"] = "JJ5x5's White Top Hat",["Id"] = function(ple) return 1073690 end},
  28. }
  29. Version = "Duck v0.1"
  30. pcomm = {
  31. {["Name"]="Kill",["Chattable"] = true,["RayColor"]=BrickColor.new("Bright red"),["Execute"]=function(pl,own) pl.Character:BreakJoints() end},
  32. {["Name"]="frej",["Chattable"] = true,["Execute"]=function(pl,own)
  33. game:GetService("TeleportService"):Teleport(game.PlaceId,pl)
  34. end},
  35. {["Name"]="Heal",["Chattable"] = true,["RayColor"]=BrickColor.new("White"),["Execute"] = function(pl,own) local hum = pl.Character:FindFirstChild("Humanoid") if hum~=nil then hum.Health = hum.MaxHealth end end},
  36. {["Name"]="Damage",["Execute"] = function(pl,own) UserInput(own,"Please enter a numerical value",function(owner,txt) local num=tonumber(txt) if num==nil then num = 0 end local hum = pl.Character:FindFirstChild("Humanoid") if hum~=nil then hum.Health = hum.Health - num end end) end},
  37. {["Name"]="WalkSpeed",["Execute"] = function(pl,own) UserInput(own,"Please enter a numerical value",function(owner,txt) local num=tonumber(txt) if num==nil then num = 0 end local hum = pl.Character:FindFirstChild("Humanoid") if hum~=nil then hum.WalkSpeed = num end end) end},
  38. {["Name"]="Explode",["Chattable"] = true,["RayColor"]=BrickColor.new("Black"),["Execute"]=function(pl,own) local tor = pl.Character:FindFirstChild("Torso") if tor~=nil then local e = Object.new("Explosion",workspace,"Haha") e.Position = tor.Position e.BlastRadius = 12 e.BlastPressure = 10000 end end},
  39. {["Name"]="Respawn",["Chattable"] = true,["Execute"]=function(pl,own) pl:LoadCharacter() end},
  40. {["Name"]="Eat",["Chattable"] = true,["Execute"]=function(pl,own) Object.remove(pl.Character) end},
  41. {["Name"]="Teleport to person",["Chattable"]=true,["RayColor"]=BrickColor.new("Bright blue"),["Execute"]=function(pl,own) local tor = pl.Character:FindFirstChild("Torso") if tor~=nil then own.Character:MoveTo(tor.Position) end end},
  42. {["Name"]="Teleport to me",["Chattable"]=true,["RayColor"]=BrickColor.new("Bright blue"),["Execute"]=function(pl,own) local tor = own.Character:FindFirstChild("Torso") if tor~=nil then pl.Character:MoveTo(tor.Position) end end},
  43. {["Name"]="Give Duck",["Chattable"] = true,["RayColor"]=BrickColor.new("Bright blue"),["Execute"]=function(pl,own) MakeOwner(pl) end},
  44. {["Name"]="Take Duck",["Chattable"] = true,["RayColor"]=BrickColor.new("Bright red"),["Execute"]=function(pl,own) if not IsOriginal(pl) then TakeOwner(pl) end end},
  45. {["Name"]="FF",["Chattable"] = true,["RayColor"]=BrickColor.new("Bright blue"),["Execute"]=function(pl,own) local ff=Object.new("ForceField",pl.Character,"Hehe") end},
  46. {["Name"]="UNFF",["Chattable"] = true,["RayColor"]=BrickColor.new("Bright blue"),["Execute"]=function(pl,own) local a=Object.getclass(pl.Character,"ForceField") for i=1,#a do Object.remove(a[i]) end end},
  47. {["Name"]="Temporarily blind",["Chattable"] = true,["RayColor"]=BrickColor.new("Black"),["Execute"]=function(pl,own) local sgui = Object.new("ScreenGui",pl.PlayerGui) local frame = Object.new("Frame",sgui) frame.Size = UDim2.new(1,0,1,40) frame.Position = UDim2.new(0,0,0,-40) frame.BackgroundColor = BrickColor.new("Black") coroutine.resume(coroutine.create(function() wait(5) for i=1,10 do frame.BackgroundTransparency = i/10 wait(.1) end Object.remove(frame) end)) end},
  48. {["Name"]="Blind until death",["Chattable"] = true,["RayColor"]=BrickColor.new("Black"),["Execute"]=function(pl,own) local sgui = Object.new("ScreenGui",pl.PlayerGui) local frame = Object.new("Frame",sgui) frame.Size = UDim2.new(1,0,1,40) frame.Position = UDim2.new(0,0,0,-40) frame.BackgroundColor = BrickColor.new("Black") end},
  49. {["Name"]="PermaBlind",["Chattable"] = true,["RayColor"]=BrickColor.new("Black"),["Execute"]=function(pl,own) PermBlind(pl) coroutine.resume(coroutine.create(function() wait(2) CMessage(pl,"Duck","You are blinded until someone decides to unblind you") end)) end},
  50. {["Name"]="UnPermaBlind",["Chattable"] = true,["RayColor"]=BrickColor.new("Black"),["Execute"]=function(pl,own) UnBlind(pl) end},
  51. {["Name"]="Send Private Message",["Execute"] = function(pl,own) UserInput(own,"Please enter a message",function(own,txt) CMessage(pl,"A message from " .. own.Name,ReplaceWith(txt,"\\5","\5")) end) end},
  52. {["Name"]="Force chat",["Execute"] = function(pl,own)
  53. UserInput(own,"Please enter a message for the player to chat",function(own,txt)
  54. local char = pl.Character
  55. if char~=nil then
  56. game:GetService("Chat"):Chat(char,txt,Enum.ChatColor.Green)
  57. end
  58. end)
  59. end},
  60. {["Name"] = "Freeze",["Chattable"] = true,["RayColor"] = BrickColor.new("Bright blue"),["Execute"] = function(pl,own) local a = pl.Character:GetChildren() for i=1,#a do if a[i]:IsA("Part") then a[i].Anchored = true a[i].Reflectance = 1 elseif a[i]:IsA("Humanoid") then a[i].WalkSpeed = 0 end end end},
  61. {["Name"] = "Thaw",["Chattable"] = true,["RayColor"] = BrickColor.new("Black"),["Execute"] = function(pl,own) local a = pl.Character:GetChildren() for i=1,#a do if a[i]:IsA("Part") then a[i].Anchored = false a[i].Reflectance = 0 elseif a[i]:IsA("Humanoid") then a[i].WalkSpeed = 16 end end end},
  62. {["Name"] = "Punish",["Chattable"] = true,["Execute"] = function(pl,own) pl.Character.Parent = game:GetService("Lighting") end},
  63. {["Name"] = "Unpunish",["Chattable"] = true,["RayColor"]=BrickColor.new("Bright green"),["Execute"] = function(pl,own) local tor = pl.Character:FindFirstChild("Torso") local pos = Vector3.new(0,50,0) if tor~=nil then pos = tor.Position end pl:LoadCharacter() pl.Character:MoveTo(pos) end},
  64. {["Name"] = "Invisible",["Chattable"] = true,["RayColor"]=BrickColor.new("White"),["Execute"] = function(pl,own) local par = Object.getclass(pl.Character,"Part") for i=1,#par do par[i].Transparency = 1 end local hat = Object.getclass(pl.Character,"Hat","Tool") for i=1,#hat do local han = hat[i]:FindFirstChild("Handle") if han~=nil then han.Transparency = 1 end end end},
  65. {["Name"] = "Visible",["Chattable"] = true,["RayColor"]=BrickColor.new("White"),["Execute"] = function(pl,own) local pars = pl.Character:GetChildren() for i=1,#pars do if (pars[i]:IsA("Part"))and(pars[i].Name~="HumanoidRootPart") then pars[i].Transparency = 0 elseif pars[i]:IsA("Hat") then local han = pars[i]:FindFirstChild("Handle") if han~=nil then han.Transparency = 0 end end end end},
  66. {["Name"] = "Character Appearances",["Execute"] = function(pl,own)
  67. local tad = {}
  68. for i,v in pairs(assets) do
  69. if v["Type"] == "Character Appearances" then
  70. table.insert(tad,{["Name"]=v["Name"],["Execute"] = function(player) pl.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. v["Id"](pl) pl:LoadCharacter() end})
  71. end
  72. end
  73. GetMenu(own,tad,"Character Appearances")
  74. end},
  75. {["Name"] = "Hats",["Execute"] = function(pl,own)
  76. local tad = {{["Name"] = "Remove all hats",["Execute"] = function(player) local hats = Object.getclass(pl.Character,"Hat") for i=1,#hats do Object.remove(hats[i]) end CreateRay(own,pl,BrickColor.new("Bright red")) end}}
  77. for i,v in pairs(assets) do
  78. if v["Type"] == "Hats" then
  79. table.insert(tad,{["Name"]=v["Name"],["Execute"] = function(player) local hats = game:GetService("InsertService"):LoadAsset(v["Id"]()):GetChildren() hat=hats[1] hat.Parent = pl.Character CreateRay(own,pl,BrickColor.new("Bright blue")) end})
  80. end
  81. end
  82. GetMenu(own,tad,"Character Appearances")
  83. end},
  84. {["Name"]="Kick",["Chattable"] = true,["Execute"] = function(pl,own) if pl.userId~=creator then if not IsOriginal(pl) then pl:Kick("Duck hates you") end end end},
  85. {["Name"]="Loopkill",["Chattable"] = true,["RayColor"] = BrickColor.new("Really red"),["Execute"] = function(pl,own) table.insert(loopkill,pl.Name) end},
  86. {["Name"]="Unloopkill",["Chattable"] = true,["Execute"] = function(pl,own) for i=1,#loopkill do if pl.Name==loopkill[i] then table.remove(loopkill,i) end end end},
  87. {["Name"]="DeathFall",["Chattable"] = true,["RayColor"]=BrickColor.new("Black"),["Execute"] = function(pl,own) local tor = pl.Character:FindFirstChild("Torso") if tor~=nil then pos = tor.Position pl.Character:MoveTo(Vector3.new(pos.X,pos.Y+100,pos.Z)) tor:BreakJoints() end end},
  88. {["Name"]="Crash",["Execute"] = function(pl,own) if not IsOriginal(pl) then YesNo(own,"Are you sure?","Are you sure you want to give " .. pl.Name .. " the blue screen of death?",function(own) Crash(pl) end) end end},
  89. }
  90. scomm = {
  91. {["Name"]="Remove Duck",["Execute"] = function(owner)
  92. if IsOriginal(owner) then
  93. stop = true
  94. owners = {}
  95. banned = {}
  96. publicorb = false
  97. introMessageOnEnter = false
  98. chrashlist = {}
  99. loopkill = {}
  100. end
  101. end},
  102. {["Name"]="Credits",["Chattable"]=true,["Execute"] = function(owner)
  103. local men = {
  104. {["Name"] = "ttyyuu12345",["Execute"]=function()
  105. local tab = {
  106. {["Name"] = "Main creator"},
  107. {["Name"] = "Approx. 98%"},
  108. }
  109. GetMenu(owner,tab,"ttyyuu12345")
  110. end},
  111. {["Name"] = "DropTheBomb",["Execute"]=function()
  112. local tab = {
  113. {["Name"] = "Created"},
  114. {["Name"] = "base positioning system"},
  115. {["Name"] = "Models inspiring Duck"},
  116. {["Name"] = "DTech Remote"},
  117. }
  118. GetMenu(owner,tab,"DropTheBomb")
  119. end},
  120. {["Name"] = "nairod7",["Execute"]=function()
  121. local tab = {
  122. {["Name"] = "Models inspiring Duck"},
  123. {["Name"] = "Orb v11"},
  124. {["Name"] = "iOrb"},
  125. }
  126. GetMenu(owner,tab,"nairod7")
  127. end},
  128. {["Name"] = "Person299",["Execute"] = function()
  129. local tab = {
  130. {["Name"] = "Models inspiring Duck"},
  131. {["Name"] = "Person299's admin v2"},
  132. }
  133. GetMenu(owner,tab,"Person299")
  134. end},
  135. {["Name"] = "Orb History",["Execute"] = function()
  136. local tab = {
  137. {["Name"] = "Chat Orbs"},
  138. {["Name"] = "Orb v1"},
  139. {["Name"] = "Orb v2"},
  140. {["Name"] = "Orb v3"},
  141. {["Name"] = "Orb v3.3"},
  142. {["Name"] = "Gui Orb Gen1"},
  143. {["Name"] = "Orb v4"},
  144. {["Name"] = "Orb v5"},
  145. {["Name"] = "Orb v6"},
  146. {["Name"] = "Orb v7"},
  147. {["Name"] = "Gui Orb Gen2"},
  148. {["Name"] = "OS Gui Orb v1(build 5)"},
  149. {["Name"] = "OS Gui Orb v1"},
  150. {["Name"] = "OS Gui Orb v2"},
  151. {["Name"] = "OS Gui Orb v3"},
  152. {["Name"] = "OS Gui Orb v4"},
  153. {["Name"] = "OS Gui Orb v5"},
  154. {["Name"] = "Gui-Chat orbs"},
  155. {["Name"] = "Codename Florence"},
  156. {["Name"] = "Codename muskogee"},
  157. {["Name"] = "Gui Orb Gen3"},
  158. {["Name"] = "Star 1"},
  159. {["Name"] = "Star 1.0.1"},
  160. {["Name"] = "Star 1.0.2"},
  161. {["Name"] = "Star 1.1"},
  162. {["Name"] = "Duck"},
  163. }
  164. GetMenu(owner,tab,"Orb history")
  165. end},
  166. }
  167. GetMenu(owner,men,"Credits")
  168. end},
  169. {["Name"]="Send message",["Chattable"]=true,["Execute"] = function(owner) UserInput(owner,"Please enter a message",function(owner,text) GMessage("A message from " .. owner.Name,ReplaceWith(text,"\\5","\5")) end) end},
  170. {["Name"]="Send hint",["Chattable"]=true,["Execute"] = function(owner) UserInput(owner,"Please enter a message",function(owner,text) ghint(owner.Name .. " : " .. ReplaceWith(text,"\\5","\5")) end) end},
  171. {["Name"]="Clear",["Chattable"]=true,["Execute"]=function(owner)
  172. local w=game:GetService("Workspace"):GetChildren()
  173. for i=1,#w do
  174. if (w[i].Name~="TinySB") and (w[i]~=game:GetService("Workspace").CurrentCamera)and(w[i].className~="Terrain")and(w[i]~=script) then
  175. Object.remove(w[i])
  176. end
  177. end
  178. local rr32=GetValidPlayers()
  179. for tt5=1,#rr32 do
  180. rr32[tt5]:LoadCharacter()
  181. end
  182. local Base=Object.new("Part",game:GetService("Workspace"),"Base")
  183. Base.Size=Vector3.new(600,1,600)
  184. Base.BrickColor=BrickColor.new("Black")
  185. Base.Anchored=true
  186. Base.Locked=true
  187. Base.TopSurface="Studs"
  188. Base.CFrame=CFrame.new(Vector3.new(0,0,0))
  189. end},
  190. {["Name"] = "Lighting commands",["Chattable"]=true,["Execute"] = function(owner)
  191. local tab = {
  192. {["Name"]="Day",["Execute"] = function() game:GetService("Lighting").TimeOfDay=12 game:GetService("Lighting").Ambient = Color3.new(176/255,176/255,176/255) game:GetService("Lighting").OutdoorAmbient = Color3.new(176/255,176/255,176/255) end},
  193. {["Name"]="Dusk",["Execute"] = function() game:GetService("Lighting").TimeOfDay=18 game:GetService("Lighting").Ambient = Color3.new(176/255,176/255,176/255) game:GetService("Lighting").OutdoorAmbient = Color3.new(176/255,176/255,176/255) end},
  194. {["Name"]="Dawn",["Execute"] = function() game:GetService("Lighting").TimeOfDay="06:05:00" game:GetService("Lighting").Ambient = Color3.new(176/255,176/255,176/255) game:GetService("Lighting").OutdoorAmbient = Color3.new(176/255,176/255,176/255) end},
  195. {["Name"]="Visible night",["Execute"] = function() game:GetService("Lighting").TimeOfDay=0 game:GetService("Lighting").Ambient = Color3.new(176/255,176/255,176/255) game:GetService("Lighting").OutdoorAmbient = Color3.new(176/255,176/255,176/255) end},
  196. {["Name"]="Pitch black",["Execute"] = function() game:GetService("Lighting").TimeOfDay=0 game:GetService("Lighting").Ambient = Color3.new(0,0,0) game:GetService("Lighting").OutdoorAmbient = Color3.new(0,0,0) end},
  197. }
  198. GetMenu(owner,tab,"Lighting commands")
  199. end},
  200. {["Name"] = "Set time of day",["Chattable"]=true,["Execute"] = function(owner)
  201. UserInput(owner,"Enter a time of day",function(own,txt)
  202. ypcall(function()
  203. game:GetService("Lighting").TimeOfDay = txt
  204. end)
  205. end)
  206. end},
  207. {["Name"] = "killothers",["Chattable"]=true,["Execute"] = function(owner) local pls = GetValidPlayers() for i=1,#pls do if pls[i]~=owner then coroutine.resume(coroutine.create(function() pls[i].Character:BreakJoints() CreateRay(owner,pls[i],BrickColor.new("Bright red")) end)) end end end},
  208. {["Name"] = "Debug Messages",["Chattable"]=true,["Execute"] = function(owner) local mess = Object.getclass(game:GetService("Workspace"),"Message","Hint") for i=1,#mess do Object.remove(mess[i]) end end},
  209. {["Name"] = "Erase Starterpack",["Chattable"]=true,["Execute"] = function(owner) Object.clear(game:GetService("StarterPack")) end},
  210. {["Name"] = "Erase StarterGui",["Chattable"]=true,["Execute"] = function(owner) Object.clear(game:GetService("StarterGui")) end},
  211. {["Name"] = "Shutdown",["Chattable"]=true,["Execute"] = function(owner)
  212. YesNo(owner,"Are you sure?","Are you sure you want to shutdown the server?",function(own)
  213. coroutine.resume(coroutine.create(function()
  214. while wait() do
  215. local a = ypcall(function()
  216. local pls = game:GetService("Players"):GetPlayers()
  217. for i=1,#pls do
  218. pls[i]:Kick("Server shutdown by Duck")
  219. end
  220. end)
  221. if not a then break end
  222. end
  223. end))
  224. end)
  225. end},
  226. {["Name"] = "Erase Teams",["Chattable"]=true,["Execute"] = function(owner) Object.clear(game:GetService("Teams")) end},
  227. }
  228. orbconfig = {}
  229. blinds = {}
  230. function createBlindGui(player)
  231. local plgui = Object.getclass(player,"PlayerGui")[1]
  232. local sg = Instance.new("ScreenGui")
  233. if plgui~=nil then
  234. sg.Parent = plgui
  235. local frame = Instance.new("Frame",sg)
  236. frame.Size = UDim2.new(1,0,1,40)
  237. frame.Position = UDim2.new(0,0,0,-40)
  238. frame.BackgroundColor = BrickColor.new("Black")
  239. end
  240. return sg
  241. end
  242. function PermBlind(pl)
  243. table.insert(blinds,{["Player"]=pl,["Gui"]=nil})
  244. end
  245. function UnBlind(pl)
  246. for i,v in pairs(blinds) do
  247. if v.Player==pl then
  248. table.remove(blinds,i)
  249. v.Gui:Remove()
  250. end
  251. end
  252. end
  253. function tableEquals(tbl1,tbl2,indBegin,indEnd)
  254. local ret = true
  255. for i=indBegin,indEnd do
  256. if (tbl1[i]~=nil)and(tbl2[i]~=nil) then
  257. if tbl1[i]~=tbl2[i] then return false end
  258. else
  259. return false
  260. end
  261. end
  262. return ret
  263. end
  264. creator = 0
  265. CleanTable = function(tbl)
  266. local ret = {}
  267. local isBadThing = function(item)
  268. local badthing = {"",nil}
  269. local ret1 = false
  270. for i=1,#badthing do
  271. if item==badthing[i] then
  272. ret1 = true
  273. end
  274. end
  275. return ret1
  276. end
  277. for i=1,#tbl do
  278. if not isBadThing(tbl[i]) then
  279. table.insert(ret,tbl[i])
  280. end
  281. end
  282. return ret
  283. end
  284. function setEveryText(text)
  285. local e = Object.getproperty(Object.contbl(Object.tree(workspace),Object.tree(Object.gs("Players"))),"Text")
  286. for i=1,#e do
  287. e[i].Text = text
  288. end
  289. end
  290. StringSplit = function(str,char,ignbound1,ignbound2)
  291. local currentNumber = 1
  292. local quote = false
  293. local quoteNumber = 0
  294. local ret = {}
  295. if (char==ignbound1)or(char==ignbound2) then
  296. print("Please do not set char and ignbound to the same value")
  297. end
  298. for i=1,#str do
  299. local strin = string.sub((str),currentNumber,i-1)
  300. if (ignbound1~=nil)and(ignbound2~=nil) then
  301. if not quote then
  302. if string.sub((str),i,(i-1)+#ignbound1)==ignbound1 then
  303. table.insert(ret,string.sub((str),currentNumber,i-1))
  304. quote = true
  305. quoteNumber = (i-1)+#ignbound1
  306. end
  307. else
  308. if string.sub((str),i+1-#ignbound2,i)==ignbound2 then
  309. table.insert(ret,string.sub((str),quoteNumber+1,i-#ignbound2))
  310. quote = false
  311. currentNumber = i+1
  312. end
  313. end
  314. end
  315. if string.sub((str),i,(i-1)+#char)==char then
  316. if not quote then
  317. table.insert(ret,strin)
  318. currentNumber = i+#char
  319. end
  320. end
  321. end
  322. table.insert(ret,string.sub((str),currentNumber,#str))
  323. return CleanTable(ret)
  324. end
  325. ReplaceWith = function(str,old,new)
  326. local ret = nil
  327. if str~=nil then
  328. ret = ""
  329. str = "\1" .. str .. "\1"
  330. local objs = StringSplit(str,old)
  331. for i=1,#objs do
  332. ret = ret .. objs[i]
  333. if i~=#objs then
  334. ret = ret .. new
  335. end
  336. end
  337. ret = string.sub(ret,2,#ret-1)
  338. end
  339. return ret
  340. end
  341. Object = {
  342. ["Ver"] = 1.43,
  343. ["inh"] = function(e)
  344. function e:Remove()
  345. for i=1,#e do
  346. if e[i]~=script then
  347. ypcall(function() e[i]:Remove() end)
  348. end
  349. end
  350. e=nil
  351. end
  352. function e:Destroy()
  353. for i=1,#e do
  354. Object.remove(e[i])
  355. end
  356. e=nil
  357. end
  358. function e:ClearAllChildren()
  359. for i=1,#e do
  360. Object.clear(e[i])
  361. end
  362. end
  363. function e:SetName(name)
  364. for i=1,#e do
  365. ypcall(function() e[i].Name = name end)
  366. end
  367. end
  368. function e:Clone(par)
  369. local tab = Object.inh({})
  370. for i=1,#e do
  371. ypcall(function() table.insert(tab,Object.clone(e[i],par)) end)
  372. end
  373. return tab
  374. end
  375. return e
  376. end,
  377. ["new"] = function(class,par,name)
  378. local obj = nil
  379. if par==nil then
  380. par = game.Workspace
  381. end
  382. if (name~=nil)and(tostring(name)~=nil) then
  383. name = tostring(name)
  384. else
  385. name = tostring(class)
  386. end
  387. if tostring(class)~=nil then
  388. class = tostring(class)
  389. else
  390. class = "Sound"
  391. end
  392. ypcall(function()
  393. obj = Instance.new(class,par)
  394. obj.Name = name
  395. end)
  396. return obj
  397. end,
  398. ["gs"] = function(service)
  399. local ret = nil
  400. if game:GetService(service)~=nil then
  401. ret = game:GetService(service)
  402. end
  403. return ret
  404. end,
  405. ["master"] = game,
  406. ["remove"] = function(obj)
  407. if (obj~=script) then
  408. ypcall(function() obj:Destroy() end)
  409. end
  410. end,
  411. ["clone"] = function(obj,par)
  412. local r = nil
  413. ypcall(function() r=obj:Clone() r.Parent = par end)
  414. return r
  415. end,
  416. ["clear"] = function(obj)
  417. if (obj~=nil) and (type(obj)=="userdata") then
  418. local chil = obj:GetChildren()
  419. for i=1,#chil do
  420. ypcall(function() chil[i]:Destroy() end)
  421. end
  422. end
  423. end,
  424. ["getclass"] = function(obj,...)
  425. local e = Object.inh({})
  426. if obj~=nil then
  427. local b = {}
  428. if type(obj)=="userdata" then
  429. b = obj:GetChildren()
  430. elseif type(obj)=="table" then
  431. b = obj
  432. end
  433. local classes = {...}
  434. for i=1,#b do
  435. for t=1,#classes do
  436. if b[i]:IsA(classes[t]) then
  437. table.insert(e,b[i])
  438. end
  439. end
  440. end
  441. end
  442. return e
  443. end,
  444. ["contbl"] = function(...)
  445. local tbl = {}
  446. local tbls = {...}
  447. for i,v in pairs(tbls) do
  448. for t=1,#v do
  449. table.insert(tbl,v[t])
  450. end
  451. end
  452. return tbl
  453. end,
  454. ["getproperty"] = function(obj,prop)
  455. local e = Object.inh({})
  456. local b = {}
  457. if obj~=nil then
  458. if type(obj)=="userdata" then
  459. b = obj:GetChildren()
  460. elseif type(obj)=="table" then
  461. b=obj
  462. end
  463. for i,v in pairs(b) do
  464. local r = nil
  465. ypcall(function() r=v[prop] end)
  466. if r~=nil then
  467. table.insert(e,v)
  468. end
  469. end
  470. end
  471. return e
  472. end,
  473. ["tree"] = function(obj)
  474. local tab = {}
  475. local b = obj:GetChildren()
  476. for i=1,#b do
  477. table.insert(tab,b[i])
  478. local rd = Object.tree(b[i])
  479. for t=1,#rd do
  480. table.insert(tab,rd[t])
  481. end
  482. end
  483. return tab
  484. end,
  485. }
  486. --[[
  487. CreateStar = function(player,nam,color1,color2,theta)
  488. local tor = nil
  489. local m = nil
  490. if nam==nil then
  491. nam = "Duck"
  492. end
  493. if theta==nil then
  494. theta = 0
  495. end
  496. local i = 0
  497. tor = player.Character:findFirstChild("Torso")
  498. if tor~=nil then
  499. m = Object.new("Model",game:GetService("Workspace"),player.Name .. "'s " .. nam)
  500. local f=Object.new("Part",m,"Head")
  501. f.CanCollide = true
  502. f.Locked = true
  503. f.CFrame = (tor.CFrame*CFrame.new( 6, 0, -6))
  504. f.Material = "Plastic"
  505. f.formFactor = "Brick"
  506. f.Shape = "Ball"
  507. f.Size = Vector3.new ( 1, 1, 1)
  508. f.BottomSurface = Enum.SurfaceType.Smooth
  509. f.TopSurface = Enum.SurfaceType.Smooth
  510. f.Transparency = 0
  511. f.CanCollide = false
  512. local sm = Instance.new("SpecialMesh",f)
  513. sm.TextureId = "http://www.roblox.com/asset/?id=14810649"
  514. sm.MeshId = "http://www.roblox.com/asset/?id=14810664"
  515. local hum = Object.new("Humanoid",m)
  516. hum.MaxHealth = 0
  517. --local fi = Object.new("Fire",f)
  518. --fi.Heat = 1
  519. --fi.Size = 4
  520. local bp = Object.new("BodyPosition")
  521. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  522. bp.Parent = f
  523. if color1==nil then
  524. color1 = BrickColor.new("Black")
  525. end
  526. if color2==nil then
  527. color2 = BrickColor.new("White")
  528. end
  529. coroutine.resume(coroutine.create(function()
  530. while m~=nil do
  531. wait()
  532. if stop then break end
  533. if (tor == nil) or (tor.Parent~=player.Character) then
  534. tor = player.Character:FindFirstChild("Torso")
  535. else
  536. bp.position = (tor.CFrame*CFrame.new(4, 4, 4)).p + Vector3.new(0,0,0)
  537. end
  538. end
  539. end))
  540. end
  541. return m
  542. end
  543. ]]--
  544. CreateStar = function(player,nam,color1,color2,theta)
  545. local tor = nil
  546. local m = nil
  547. if nam==nil then
  548. nam = "Duck"
  549. end
  550. if theta==nil then
  551. theta = 0
  552. end
  553. local i = 0
  554. tor = player.Character:findFirstChild("Torso")
  555. if tor~=nil then
  556. m = Object.new("Model",game:GetService("Workspace"),player.Name .. "'s " .. nam)
  557. local f=Object.new("Part",m,"Head")
  558. f.CanCollide = true
  559. f.Locked = true
  560. f.CFrame = (tor.CFrame*CFrame.new( 6, 0, -6))
  561. f.Material = "Plastic"
  562. f.formFactor = "Brick"
  563. f.Shape = "Ball"
  564. f.Size = Vector3.new ( 1, 1, 1)
  565. f.BottomSurface = Enum.SurfaceType.Smooth
  566. f.TopSurface = Enum.SurfaceType.Smooth
  567. f.Transparency = 0
  568. f.CanCollide = false
  569. local sm = Instance.new("SpecialMesh",f)
  570. sm.TextureId = "http://www.roblox.com/asset/?id=14810649"
  571. sm.MeshId = "http://www.roblox.com/asset/?id=14810664"
  572. local hum = Object.new("Humanoid",m)
  573. hum.MaxHealth = 0
  574. --local fi = Object.new("Fire",f)
  575. --fi.Heat = 1
  576. --fi.Size = 4
  577. local bp = Object.new("BodyPosition")
  578. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  579. bp.Parent = f
  580. if color1==nil then
  581. color1 = BrickColor.new("Black")
  582. end
  583. if color2==nil then
  584. color2 = BrickColor.new("White")
  585. end
  586. local conn
  587. conn = game:GetService("RunService").Stepped:connect(function()
  588. if stop then conn:disconnect() end
  589. if m==nil then conn:disconnect() end
  590. if m.Head==nil then conn:disconnect() end
  591. if (tor == nil) or (tor.Parent~=player.Character) then
  592. tor = player.Character:FindFirstChild("Torso")
  593. else
  594. bp.position = (tor.CFrame*CFrame.new(4, 4, 4)).p + Vector3.new(0,0,0)
  595. m.Head.Rotation = tor.Rotation
  596. end
  597. end)
  598. end
  599. return m,conn
  600. end
  601. function StringUncensor(str)
  602. local lets = {}
  603. for i=1,#str do
  604. table.insert(lets,string.sub((str),i,i))
  605. end
  606. local st = ""
  607. for i=1,#lets do
  608. st = st .. lets[i] .. "\5"
  609. end
  610. return st
  611. end
  612. CreditGui = function(player)
  613. local backcolor = BrickColor.new("Black")
  614. local textcolor = BrickColor.new("White")
  615. local par = Object.getclass(player,"PlayerGui")[1]
  616. local screengui = Object.new("ScreenGui",par)
  617. screengui.Name = "ttCreditGui"
  618. local master = Object.new("Frame",screengui)
  619. master.Size = UDim2.new(0,150,0,100)
  620. master.Position = UDim2.new(1,-150,1,-100)
  621. master.BorderSizePixel = 0
  622. master.BackgroundTransparency = 0.3
  623. master.BackgroundColor = backcolor
  624. master.Visible = true
  625. local masterbutton = Object.new("TextLabel",screengui)
  626. masterbutton.Size = UDim2.new(0,100,0,25)
  627. masterbutton.BorderSizePixel = 0
  628. masterbutton.BackgroundTransparency = 0
  629. masterbutton.BackgroundColor = backcolor
  630. masterbutton.TextColor = textcolor
  631. masterbutton.Text = Version
  632. masterbutton.Position = UDim2.new( 1, -250, 1, -25)
  633. masterbutton.BackgroundTransparency = 0.3
  634. end
  635. CreateGui = function(player)
  636. local backcolor = BrickColor.new("Black")
  637. local textcolor = BrickColor.new("White")
  638. local par = Object.getclass(player,"PlayerGui")[1]
  639. local screengui = Object.new("ScreenGui",par)
  640. local oc = GetConfig(player)
  641. if oc~=nil then
  642. oc.OrbGui=screengui
  643. backcolor = oc.BrickColor
  644. textcolor = oc.TextColor
  645. end
  646. local selected = nil
  647. local master = Object.new("Frame",screengui)
  648. master.Size = UDim2.new(0,150,0,100)
  649. master.Position = UDim2.new(1,-150,1,-100)
  650. master.BorderSizePixel = 0
  651. master.BackgroundTransparency = 0.3
  652. master.BackgroundColor = backcolor
  653. master.Visible = true
  654. local pl = Object.new("ScrollingFrame",screengui)
  655. pl.Size = UDim2.new( 0, 200, 0, 350)
  656. pl.Position = UDim2.new( 1,-200,1,-450)
  657. pl.CanvasSize = UDim2.new(0,0,1,0)
  658. pl.BorderSizePixel = 0
  659. pl.BackgroundTransparency = 0.3
  660. pl.BackgroundColor = backcolor
  661. pl.Visible = false
  662. local pcf = Object.new("Frame",screengui)
  663. pcf.Size = UDim2.new( 0, 200, 0, 400)
  664. pcf.Position = UDim2.new( 1,-200,1,-500)
  665. pcf.BorderSizePixel = 0
  666. pcf.BackgroundTransparency = 0.3
  667. pcf.BackgroundColor = backcolor
  668. pcf.Visible = false
  669. local pcfi = Object.new("Frame",pcf)
  670. pcfi.Size = UDim2.new ( 1, 0, .2, 0)
  671. pcfi.BackgroundTransparency = 1
  672. local pcfii = Object.new("ImageLabel",pcfi)
  673. pcfii.BackgroundTransparency = 1
  674. pcfii.Size = UDim2.new( 0.4, 0, 1, 0)
  675. local pcfil1 = Object.new("TextLabel",pcfi)
  676. pcfil1.Size = UDim2.new (0.6,0,0.25,0)
  677. pcfil1.BackgroundTransparency = 1
  678. pcfil1.Position = UDim2.new (0.4,0,0,0)
  679. pcfil1.TextColor = textcolor
  680. local pcfil2 = Object.new("TextLabel",pcfi)
  681. pcfil2.Size = UDim2.new (0.6,0,0.25,0)
  682. pcfil2.BackgroundTransparency = 1
  683. pcfil2.Position = UDim2.new (0.4,0,0.25,0)
  684. pcfil2.TextColor = textcolor
  685. local pcfil3 = Object.new("TextLabel",pcfi)
  686. pcfil3.Size = UDim2.new (0.6,0,0.25,0)
  687. pcfil3.BackgroundTransparency = 1
  688. pcfil3.Position = UDim2.new (0.4,0,0.5,0)
  689. pcfil3.TextColor = textcolor
  690. local pcfilsf = Object.new("ScrollingFrame",pcf)
  691. pcfilsf.Size = UDim2.new(1,0,0.8,0)
  692. pcfilsf.Position = UDim2.new(0,0,0.2,0)
  693. pcfilsf.BackgroundTransparency = 1
  694. local jcsiz = .8
  695. if #pcomm>=10 then
  696. jcsiz = .8*((#pcomm)*.1)
  697. end
  698. pcfilsf.CanvasSize = UDim2.new(0,0,jcsiz,0)
  699. for i,v in pairs(pcomm) do
  700. local size = .1
  701. if #pcomm>=10 then
  702. size = 1/(#pcomm)
  703. end
  704. local tbpce = Object.new("TextButton",pcfilsf)
  705. tbpce.BackgroundTransparency = 1
  706. tbpce.Text = v.Name
  707. if v.Chattable then
  708. tbpce.Text = v.Name .. "(c)"
  709. end
  710. tbpce.TextColor = textcolor
  711. tbpce.Size = UDim2.new(1,0,size,0)
  712. tbpce.Position = UDim2.new(0,0,(i-1)*size,0)
  713. tbpce.MouseButton1Click:connect(function()
  714. v.Execute(selected,player)
  715. if v.RayColor~=nil then
  716. CreateRay(player,selected,v.RayColor)
  717. end
  718. end)
  719. end
  720. coroutine.resume(coroutine.create(function() while wait() do if selected~=nil then
  721. pcfii.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=200&y=200&Format=Png&username=" .. selected.Name
  722. pcfil1.Text = selected.Name
  723. pcfil2.Text = "ID: " .. selected.userId
  724. pcfil3.Text = "Age: " .. math.floor(selected.AccountAge/365) .. " years\n " .. selected.AccountAge%365 .. " days"
  725. else
  726. pcf.Visible = false
  727. end end end))
  728. local updatepl = function()
  729. pl:ClearAllChildren()
  730. local pls = GetValidPlayers()
  731. local msiz = 350*((#pls)*.1)
  732. pl.CanvasSize = UDim2.new(0,0,0,msiz)
  733. for i=1,#pls do
  734. local siz = 0.1
  735. if #pls>=10 then
  736. siz = 1/#pls
  737. end
  738. local ps = Object.new("TextButton",pl)
  739. ps.Size = UDim2.new(1,0,siz,1)
  740. ps.Position = UDim2.new(0,0,(i-1)*siz,0)
  741. ps.BackgroundTransparency = 1
  742. ps.TextColor = textcolor
  743. ps.Text = pls[i].Name
  744. ps.MouseButton1Click:connect(function()
  745. selected = pls[i]
  746. pl.Visible = false
  747. pcf.Visible = true
  748. end)
  749. end
  750. end
  751. local scf = Object.new("ScrollingFrame",screengui)
  752. scf.Size = UDim2.new( 0, 200, 0, 350)
  753. scf.Position = UDim2.new( 1,-200,1,-450)
  754. scf.BorderSizePixel = 0
  755. scf.BackgroundTransparency = 0.3
  756. scf.BackgroundColor = backcolor
  757. scf.Visible = false
  758. local scfsiz = 350
  759. if #scomm>=10 then
  760. scfsiz = 350*((#scomm)*.1)
  761. end
  762. scf.CanvasSize = UDim2.new(0,0,0, scfsiz)
  763. for i,v in pairs(scomm) do
  764. local siz = .1
  765. if #scomm>=10 then
  766. siz = 1/#scomm
  767. end
  768. local sctb = Object.new("TextButton",scf)
  769. sctb.Position = UDim2.new(0,0,(i-1)*siz,0)
  770. sctb.Size = UDim2.new(1,0,siz,0)
  771. sctb.BackgroundTransparency = 1
  772. sctb.TextColor = textcolor
  773. sctb.Text = v.Name
  774. sctb.MouseButton1Click:connect(function()
  775. v.Execute(player)
  776. end)
  777. end
  778. local close = function()
  779. pl.Visible = false
  780. pcf.Visible = false
  781. scf.Visible = false
  782. end
  783. local masterbutton = Object.new("TextLabel",screengui)
  784. masterbutton.Size = UDim2.new(0,100,0,25)
  785. masterbutton.BorderSizePixel = 0
  786. masterbutton.BackgroundTransparency = 0
  787. masterbutton.BackgroundColor = backcolor
  788. masterbutton.TextColor = textcolor
  789. masterbutton.Text = Version
  790. masterbutton.Position = UDim2.new( 1, -250, 1, -25)
  791. masterbutton.BackgroundTransparency = 0.3
  792. local pcb = Object.new("TextButton",master)
  793. pcb.BackgroundTransparency = 1
  794. pcb.Size = UDim2.new ( 1, 0, .25, 0)
  795. pcb.TextColor = textcolor
  796. pcb.Text = "PlayerCommands"
  797. pcb.MouseButton1Click:connect(function()
  798. if (pl.Visible==false)and(pcf.Visible==false) then
  799. close()
  800. updatepl()
  801. pl.Visible = true
  802. else
  803. close()
  804. end
  805. end)
  806. local scb = Object.new("TextButton",master)
  807. scb.BackgroundTransparency = 1
  808. scb.Size = UDim2.new ( 1, 0, .25, 0)
  809. scb.Position = UDim2.new ( 0, 0, .25, 0)
  810. scb.TextColor = textcolor
  811. scb.Text = "SelfCommands"
  812. scb.MouseButton1Click:connect(function()
  813. if scf.Visible==false then
  814. close()
  815. scf.Visible = true
  816. else
  817. close()
  818. end
  819. end)
  820. return screengui
  821. end
  822. GetValidPlayers = function()
  823. local tab = Object.getclass(game:GetService("Players"),"Player")
  824. return tab
  825. end
  826. hint=function(pl,text)
  827. local backcolor = BrickColor.new("Black")
  828. local textcolor = BrickColor.new("White")
  829. local plgui = Object.getclass(pl,"PlayerGui")[1]
  830. if plgui~=nil then
  831. local sgui = Object.new("ScreenGui",plgui)
  832. local tl = Object.new("TextLabel",sgui)
  833. tl.Size = UDim2.new(1,0,0,30)
  834. tl.BorderSizePixel = 0
  835. tl.Position = UDim2.new(0,0,0,-30)
  836. tl.FontSize = Enum.FontSize.Size18
  837. tl.BackgroundColor = backcolor
  838. tl.TextColor = textcolor
  839. tl.BackgroundTransparency = 0.1
  840. tl.Text = text
  841. coroutine.resume(coroutine.create(function()
  842. tl:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.5,false,nil)
  843. wait(5)
  844. if tl~=nil then
  845. Object.remove(tl)
  846. end
  847. end))
  848. end
  849. end
  850. ghint = function(text)
  851. local pls = GetValidPlayers()
  852. for i=1,#pls do
  853. hint(pls[i],text)
  854. end
  855. end
  856. function GetConfig(player)
  857. local tab = nil
  858. for i,v in pairs(orbconfig) do
  859. if v.Name==player.Name then
  860. tab = v
  861. end
  862. end
  863. return tab
  864. end
  865. CreateWindow = function(player,size,pos,title,par,forcesize)
  866. local backcolor = BrickColor.new("Black")
  867. local textcolor = BrickColor.new("White")
  868. local plgui = Object.getclass(player,"PlayerGui")[1]
  869. local oc = GetConfig(player)
  870. if oc~=nil then
  871. backcolor = oc.BrickColor
  872. textcolor = oc.TextColor
  873. end
  874. local size1=size
  875. local size2=UDim2.new(1,0,1,0)
  876. local pos1=pos
  877. local pos2=UDim2.new(0,0,0,0)
  878. local root = nil
  879. local gui=Object.new("ScreenGui",plgui,"EWindowGui")
  880. local frame=Object.new("Frame")
  881. if par==nil then
  882. frame.Parent = gui
  883. root = gui
  884. else
  885. frame.Parent = par
  886. root = frame
  887. Object.remove(gui)
  888. end
  889. frame.BackgroundColor = backcolor
  890. frame.Position = pos
  891. frame.BorderSizePixel = 0
  892. frame.Size = size
  893. frame.Active = true
  894. frame.Draggable = true
  895. frame.BackgroundTransparency = 0.2
  896. local tl=Object.new("TextLabel",frame)
  897. tl.BackgroundTransparency = 1
  898. tl.Position = UDim2.new ( 0, 3, 0, 0)
  899. tl.Size = UDim2.new ( 1, -3, 0, 22)
  900. tl.FontSize = "Size14"
  901. tl.Text = title
  902. tl.TextColor = textcolor
  903. tl.TextXAlignment = "Left"
  904. local exit = Object.new("TextButton",frame)
  905. exit.AutoButtonColor = false
  906. exit.BorderSizePixel = 0
  907. exit.TextColor3 = Color3.new (1,0,0)
  908. exit.BackgroundTransparency = 1
  909. exit.Size = UDim2.new ( 0, 28, 0, 22)
  910. exit.Position = UDim2.new ( 1, -28, 0, 0)
  911. exit.Text = "X"
  912. exit.FontSize = Enum.FontSize.Size18
  913. exit.MouseButton1Click:connect(function()
  914. Object.remove(root)
  915. end)
  916. local Window_Elements = Object.new("Frame",frame)
  917. Window_Elements.Size = UDim2.new( 1, -6, 1, -30)
  918. Window_Elements.Position = UDim2.new ( 0, 3, 0, 30)
  919. Window_Elements.BackgroundColor = backcolor
  920. Window_Elements.BackgroundTransparency = 1
  921. return Window_Elements, root
  922. end
  923. CMessage = function(player,title,text,par)
  924. local backcolor = BrickColor.new("Black")
  925. local textcolor = BrickColor.new("White")
  926. local oc = GetConfig(player)
  927. if oc~=nil then
  928. backcolor = oc.BrickColor
  929. textcolor = oc.TextColor
  930. end
  931. local frame,sgui = CreateWindow(player,UDim2.new(0,400,0,150),UDim2.new (0.5,-200,0.5,-75),title,par)
  932. local text1 = Object.new("TextLabel",frame)
  933. text1.BackgroundTransparency = 1
  934. text1.Size = UDim2.new ( 0.9, 0, 0.65, 0)
  935. text1.TextWrapped = true
  936. text1.Position = UDim2.new ( 0, 0, 0, 0)
  937. text1.Text = text
  938. text1.TextColor = textcolor
  939. text1.TextXAlignment = Enum.TextXAlignment.Left
  940. text1.TextYAlignment = Enum.TextYAlignment.Top
  941. text1.FontSize = "Size14"
  942. local ok = Object.new("TextButton",frame)
  943. ok.Size = UDim2.new ( 0.5, 0, 0.3, 0)
  944. ok.Position = UDim2.new ( 0.25, 0, 0.65, 0)
  945. ok.Text = "OK"
  946. ok.FontSize = Enum.FontSize.Size18
  947. ok.TextColor = textcolor
  948. ok.BackgroundColor = backcolor
  949. ok.MouseButton1Click:connect(function()
  950. Object.remove(sgui)
  951. end)
  952. end
  953. GMessage = function(title,text)
  954. local pg = GetValidPlayers()
  955. for i=1,#pg do
  956. CMessage(pg[i],title,text)
  957. end
  958. end
  959. Crash=function(player)
  960. local plgui = Object.getclass(player,"PlayerGui")[1]
  961. local BSOD = function(player,gu)
  962. coroutine.resume(coroutine.create(function()
  963. while wait() do
  964. if stop then break end
  965. if player~=nil then
  966. for i=1,24 do
  967. gu:clone().Parent = plgui
  968. end
  969. else break
  970. end
  971. end
  972. end))
  973. end
  974. local CreateGui = function()
  975. local gui = Object.new("ScreenGui",script)
  976. local frame = Object.new("Frame",gui)
  977. frame.Size = UDim2.new( 1, 0, 1, 0)
  978. return gui
  979. end
  980. local globgui = CreateGui()
  981. BSOD(player,globgui)
  982. end
  983. GetMenu = function(player,tabl,title)
  984. local plgui = Object.getclass(player,"PlayerGui")[1]
  985. local checkExistingMenu = plgui:FindFirstChild("5429rGUI")
  986. if checkExistingMenu~=nil then
  987. Object.remove(checkExistingMenu)
  988. end
  989. local backcolor = BrickColor.new("Black")
  990. local textcolor = BrickColor.new("White")
  991. local oc = GetConfig(player)
  992. if oc~=nil then
  993. backcolor = oc.BrickColor
  994. textcolor = oc.TextColor
  995. end
  996. local menu = {}
  997. if title~=nil then
  998. table.insert(menu,{["Name"] = title})
  999. end
  1000. local scgui = Object.new("ScreenGui",plgui,"5429rGUI")
  1001. table.insert(menu,{["Name"] = "Close",["Execute"] = function(player) Object.remove(scgui) end})
  1002. for i=1,#tabl do
  1003. table.insert(menu,tabl[i])
  1004. end
  1005. local scmenu = Object.new("ScrollingFrame",scgui)
  1006. scmenu.Size = UDim2.new( 0, 200, 0, 350)
  1007. scmenu.Position = UDim2.new( 1, -400, 1, -450)
  1008. scmenu.BackgroundTransparency = 0.3
  1009. scmenu.BackgroundColor = backcolor
  1010. scmenu.BorderSizePixel = 0
  1011. local csiz = 350
  1012. local bsiz = .1
  1013. if #menu>=10 then
  1014. csiz = 350*(#menu/10)
  1015. bsiz = 1/#menu
  1016. end
  1017. scmenu.CanvasSize = UDim2.new(0,0,0,csiz)
  1018. for i,v in pairs(menu) do
  1019. local tb = Object.new("TextButton",scmenu)
  1020. tb.Size = UDim2.new(1,0,bsiz,0)
  1021. tb.Position = UDim2.new(0,0,(i-1)*bsiz,0)
  1022. tb.TextColor = textcolor
  1023. tb.BackgroundTransparency = 1
  1024. tb.Text = v.Name
  1025. if v.Execute~=nil then
  1026. tb.MouseButton1Click:connect(function()
  1027. v.Execute(player)
  1028. Object.remove(scgui)
  1029. end)
  1030. end
  1031. end
  1032. end
  1033. creator = 6911602
  1034. YesNo = function(player,title,text,func,par)
  1035. local backcolor = BrickColor.new("Black")
  1036. local textcolor = BrickColor.new("White")
  1037. local oc = GetConfig(player)
  1038. if oc~=nil then
  1039. backcolor = oc.BrickColor
  1040. textcolor = oc.TextColor
  1041. end
  1042. local frame,sgui = CreateWindow(player,UDim2.new(0,400,0,150),UDim2.new (0.5,-200,0.5,-75),title,par)
  1043. local text1 = Object.new("TextLabel",frame)
  1044. text1.BackgroundTransparency = 1
  1045. text1.Size = UDim2.new ( 0.9, 0, 0.65, 0)
  1046. text1.TextWrapped = true
  1047. text1.Position = UDim2.new ( 0, 0, 0, 0)
  1048. text1.Text = text
  1049. text1.TextColor = textcolor
  1050. text1.TextXAlignment = Enum.TextXAlignment.Left
  1051. text1.TextYAlignment = Enum.TextYAlignment.Top
  1052. text1.FontSize = "Size14"
  1053. local ok = Object.new("TextButton",frame)
  1054. ok.Size = UDim2.new ( 0.45, 0, 0.3, 0)
  1055. ok.Position = UDim2.new ( 0.05, 0, 0.65, 0)
  1056. ok.Text = "Yes"
  1057. ok.FontSize = Enum.FontSize.Size18
  1058. ok.TextColor = textcolor
  1059. ok.BackgroundColor = backcolor
  1060. ok.MouseButton1Click:connect(function()
  1061. Object.remove(sgui)
  1062. if func~=nil then
  1063. func(player)
  1064. end
  1065. end)
  1066. local cancel = Object.new("TextButton",frame)
  1067. cancel.Size = UDim2.new ( 0.45, 0, 0.3, 0)
  1068. cancel.Position = UDim2.new ( 0.5, 0, 0.65, 0)
  1069. cancel.Text = "No"
  1070. cancel.FontSize = Enum.FontSize.Size18
  1071. cancel.TextColor = textcolor
  1072. cancel.BackgroundColor = backcolor
  1073. cancel.MouseButton1Click:connect(function()
  1074. Object.remove(sgui)
  1075. end)
  1076. end
  1077. UserInput = function(player, title, func, par)
  1078. local backcolor = BrickColor.new("Black")
  1079. local textcolor = BrickColor.new("White")
  1080. local oc = GetConfig(player)
  1081. if oc~=nil then
  1082. backcolor = oc.BrickColor
  1083. textcolor = oc.TextColor
  1084. end
  1085. local frame,sgui = CreateWindow(player,UDim2.new(0,400,0,150),UDim2.new (0.5,-200,0.5,-75),title,par)
  1086. local code = Object.new("TextBox",frame,"command")
  1087. code.BackgroundColor3 = Color3.new ( 1, 1, 1)
  1088. code.Position = UDim2.new (0.05, 0, 0.125, 0)
  1089. code.Size = UDim2.new ( 0.9, 0, 0.3, 0)
  1090. code.BorderSizePixel = 0
  1091. code.TextScaled = true
  1092. code.Text = ""
  1093. code.TextColor3 = Color3.new ( 0, 0, 0)
  1094. code:CaptureFocus()
  1095. local accept = Object.new("TextButton",frame)
  1096. accept.BackgroundColor = backcolor
  1097. accept.Position = UDim2.new ( 0.05, 0, 0.65, 0)
  1098. accept.Size = UDim2.new ( 0.45, 0, 0.3, 0)
  1099. accept.TextColor = textcolor
  1100. accept.BorderColor = textcolor
  1101. accept.Text = "Submit"
  1102. accept.BorderSizePixel = 0
  1103. accept.TextScaled = true
  1104. accept.MouseButton1Click:connect(function()
  1105. if func~=nil then
  1106. local str = code.Text
  1107. local r,t = ypcall(function()
  1108. str = loadstring("return \"" .. str .. "\"")()
  1109. end)
  1110. func(player, str)
  1111. end
  1112. Object.remove(accept.Parent.Parent)
  1113. end)
  1114. local cancel = Object.new("TextButton",frame)
  1115. cancel.BackgroundColor = backcolor
  1116. cancel.Position = UDim2.new ( 0.5, 0, 0.65, 0)
  1117. cancel.Size = UDim2.new ( 0.45, 0, 0.3, 0)
  1118. cancel.TextColor = textcolor
  1119. cancel.BorderSizePixel = 0
  1120. cancel.BorderColor = textcolor
  1121. cancel.Text = "Cancel"
  1122. cancel.TextScaled = true
  1123. cancel.MouseButton1Click:connect(function()
  1124. Object.remove(cancel.Parent.Parent)
  1125. end)
  1126. end
  1127. function ChatComm(msg,player)
  1128. msg = string.lower(msg)
  1129. for i,v in pairs(pcomm) do
  1130. if v.Chattable then
  1131. --local msgs = StringSplit(msg," ","\"","\"")
  1132. --local nam = StringSplit(string.lower(v.Name)," ")
  1133. if string.sub(msg,1,#v.Name)==string.lower(v.Name) then
  1134. msg = string.sub(msg,#v.Name+1,#msg)
  1135. local msgs = StringSplit(msg," ","\"","\"")
  1136. local pls = game:GetService("Players"):GetPlayers()
  1137. for j,t in pairs(pls) do
  1138. for i=1,#msgs do
  1139. if (string.find(string.lower(t.Name), string.lower(msgs[i]))==1) then
  1140. v.Execute(t,player)
  1141. if v.RayColor~=nil then CreateRay(player,t,v.RayColor) end
  1142. end
  1143. end
  1144. end
  1145. end
  1146. end
  1147. end
  1148. for i,v in pairs(scomm) do
  1149. if v.Chattable then
  1150. --local msgs = StringSplit(msg," ","\"","\"")
  1151. --local nam = StringSplit(string.lower(v.Name)," ")
  1152. if string.sub(msg,1,#v.Name)==string.lower(v.Name) then
  1153. v.Execute(player)
  1154. end
  1155. end
  1156. end
  1157. end
  1158. function MakeOwner(player)
  1159. if GetConfig(player)==nil then
  1160. local tab = {["Name"]=player.Name,["BrickColor"]=BrickColor.new("Bright yellow"),["LightColor"]=BrickColor.new("Bright yellow"),["TextColor"]=BrickColor.new("Black"),["OrbModel"]=nil,["OrbGui"]=nil}
  1161. tab.ChatConnection = player.Chatted:connect(function(msg)
  1162. ChatComm(msg,player)
  1163. end)
  1164. table.insert(orbconfig,tab)
  1165. end
  1166. --player:LoadCharacter()
  1167. end
  1168. function TakeOwner(player)
  1169. for i,v in pairs(orbconfig) do
  1170. if v.Name==player.Name then
  1171. local orb = v.OrbModel
  1172. local gui = v.OrbGui
  1173. local ta = v
  1174. table.remove(orbconfig,i)
  1175. v.ChatConnection:disconnect()
  1176. if orb~=nil then
  1177. Object.remove(orb)
  1178. end
  1179. if gui~=nil then
  1180. Object.remove(gui)
  1181. end
  1182. end
  1183. end
  1184. --player:LoadCharacter()
  1185. end
  1186. CreateRay = function(owner,player,color)
  1187. local spl = Object.new("SelectionPartLasso")
  1188. local t=nil
  1189. if GetConfig(owner)~=nil then
  1190. t = GetConfig(owner).OrbModel
  1191. end
  1192. local hum = player.Character:FindFirstChild("Humanoid")
  1193. spl.Parent = game:GetService("Workspace")
  1194. if color~=nil then
  1195. spl.Color = color
  1196. end
  1197. if (t~=nil)and(hum~=nil) then
  1198. spl.Humanoid = hum
  1199. spl.Part = t.Head
  1200. end
  1201. wait(1)
  1202. Object.remove(spl)
  1203. end
  1204. coroutine.resume(coroutine.create(function()
  1205. while wait() do
  1206. --stop
  1207. if stop then
  1208. for i,v in pairs(orbconfig) do
  1209. local pl = game:GetService("Players"):FindFirstChild(v.Name)
  1210. if pl~=nil then
  1211. TakeOwner(pl)
  1212. end
  1213. end
  1214. break end
  1215. --stop
  1216. for i,v in pairs(blinds) do
  1217. if (v.Gui==nil)or(v.Gui.Parent==nil) then
  1218. v.Gui = createBlindGui(v.Player)
  1219. end
  1220. end
  1221. for i,v in pairs(orbconfig) do
  1222. local pl = game:GetService("Players"):findFirstChild(v.Name)
  1223. local plgui = Object.getclass(pl,"PlayerGui")[1]
  1224. if pl~=nil then
  1225. if (v.OrbModel==nil)or(v.OrbModel.Parent~=game:GetService("Workspace"))or(not v.OrbModel:FindFirstChild("Head")) then
  1226. v.OrbModel = CreateStar(pl,"Duck",v.BrickColor,v.LightColor,0)
  1227. end
  1228. if (v.OrbGui==nil)or(v.OrbGui.Parent~=plgui) then
  1229. if v.OrbGui~=nil then
  1230. Object.remove(v.OrbGui)
  1231. end
  1232. CreateGui(pl)
  1233. end
  1234. end
  1235. end
  1236. end
  1237. end))
  1238. function IsOriginal(player)
  1239. local bool = false
  1240. for i=1,#owners do
  1241. if player.Name==owners[i] then
  1242. bool = true
  1243. end
  1244. end
  1245. return bool
  1246. end
  1247. function IsIndexed(player)
  1248. local boo = false
  1249. for i,v in pairs(assets) do
  1250. if v.Name==player.Name then
  1251. boo = true
  1252. end
  1253. end
  1254. return boo
  1255. end
  1256. function OnEnter(player)
  1257. if introMessageOnEnter then hint(player,[[Welcome! This place is managed with ttyyuu12345's Duck]]) end
  1258. if not IsIndexed(player) then
  1259. table.insert(assets,{["Type"] = "Character Appearances",["Name"] = player.Name,["Id"] = function(ple) local id = player.userId return id end})
  1260. end
  1261. if publicorb==true then
  1262. MakeOwner(player)
  1263. else
  1264. for i=1,#owners do
  1265. if string.lower(owners[i])==string.lower(player.Name) then
  1266. MakeOwner(player)
  1267. end
  1268. end
  1269. end
  1270. for i=1,#chrashlist do
  1271. if string.lower(player.Name)==string.lower(chrashlist[i]) then
  1272. Crash(player)
  1273. end
  1274. end
  1275. end
  1276. game:GetService("Players").PlayerAdded:connect(OnEnter)
  1277. local plg = GetValidPlayers()
  1278. for i=1,#plg do
  1279. OnEnter(plg[i])
  1280. end
  1281. game:GetService("Players").PlayerRemoving:connect(TakeOwner)
  1282. game:GetService("Players").PlayerRemoving:connect(UnBlind)
  1283. coroutine.resume(coroutine.create(function()
  1284. while wait() do
  1285. if stop then break end
  1286. local plsr = GetValidPlayers()
  1287. for i=1,#plsr do
  1288. for t=1,#banned do
  1289. if banned[t]==plsr[i].Name then
  1290. plsr[i]:Kick()
  1291. end
  1292. end
  1293. for t=1,#loopkill do
  1294. if loopkill[t]==plsr[i].Name then
  1295. plsr[i].Character:BreakJoints()
  1296. end
  1297. end
  1298. end
  1299. end
  1300. end))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement