Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.50 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local thing = Instance.new("ScreenGui")
  7. local what = Instance.new("Frame")
  8. local exiles2 = Instance.new("ScrollingFrame")
  9. local layout2 = Instance.new("UIGridLayout")
  10. local openexile = Instance.new("TextButton")
  11. local titledrag = Instance.new("TextLabel")
  12. local start2 = Instance.new("TextButton")
  13. local whitelist2 = Instance.new("TextButton")
  14. local clear = Instance.new("TextButton")
  15. local friends = Instance.new("TextButton")
  16. local disable = Instance.new("TextButton")
  17. local whframe = Instance.new("ScrollingFrame")
  18. local layout_2 = Instance.new("UIGridLayout")
  19.  
  20. --Properties:
  21.  
  22. thing.Name = "thing"
  23. thing.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  24. thing.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  25. thing.ResetOnSpawn = false
  26.  
  27. what.Name = "what"
  28. what.Parent = thing
  29. what.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  30. what.BorderSizePixel = 0
  31. what.Position = UDim2.new(0.399368584, 0, 0.299754292, 0)
  32. what.Size = UDim2.new(0.200000003, 0, 0.400000006, 0)
  33. what.Visible = false
  34.  
  35. exiles2.Name = "exiles"
  36. exiles2.Parent = what
  37. exiles2.BackgroundColor3 = Color3.fromRGB(153, 140, 121)
  38. exiles2.BorderSizePixel = 0
  39. exiles2.Position = UDim2.new(1.00000012, 0, 4.6863601e-08, 0)
  40. exiles2.Size = UDim2.new(1, 0, 1, 0)
  41. exiles2.Visible = false
  42. exiles2.CanvasSize = UDim2.new(0, 0, 1, 0)
  43.  
  44. layout2.Name = "layout"
  45. layout2.Parent = exiles2
  46. layout2.SortOrder = Enum.SortOrder.LayoutOrder
  47. layout2.CellPadding = UDim2.new(0, 0, 0, 0)
  48. layout2.CellSize = UDim2.new(0, 0, 0, 0)
  49.  
  50. openexile.Name = "openexile"
  51. openexile.Parent = what
  52. openexile.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  53. openexile.BorderSizePixel = 0
  54. openexile.Position = UDim2.new(0, 0, 0.313267767, 0)
  55. openexile.Size = UDim2.new(1, 0, 0.136999995, 0)
  56. openexile.AutoButtonColor = false
  57. openexile.Font = Enum.Font.SourceSans
  58. openexile.Text = "Exile History"
  59. openexile.TextColor3 = Color3.fromRGB(0, 0, 0)
  60. openexile.TextSize = 20.000
  61.  
  62. titledrag.Name = "titledrag"
  63. titledrag.Parent = what
  64. titledrag.Active = true
  65. titledrag.BackgroundColor3 = Color3.fromRGB(217, 198, 171)
  66. titledrag.BorderSizePixel = 0
  67. titledrag.Position = UDim2.new(-3.0108108e-08, 0, 0, 0)
  68. titledrag.Selectable = true
  69. titledrag.Size = UDim2.new(1, 0, 0.180000007, 0)
  70. titledrag.Font = Enum.Font.SourceSans
  71. titledrag.Text = "Anti-Fag"
  72. titledrag.TextColor3 = Color3.fromRGB(0, 0, 0)
  73. titledrag.TextSize = 25.000
  74. titledrag.TextWrapped = true
  75.  
  76. start2.Name = "start"
  77. start2.Parent = what
  78. start2.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  79. start2.BorderSizePixel = 0
  80. start2.Position = UDim2.new(-4.65661287e-10, 0, 0.17506139, 0)
  81. start2.Size = UDim2.new(1, 0, 0.136999995, 0)
  82. start2.AutoButtonColor = false
  83. start2.Font = Enum.Font.SourceSans
  84. start2.Text = "Start"
  85. start2.TextColor3 = Color3.fromRGB(0, 0, 0)
  86. start2.TextSize = 20.000
  87.  
  88. whitelist2.Name = "whitelist"
  89. whitelist2.Parent = what
  90. whitelist2.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  91. whitelist2.BorderSizePixel = 0
  92. whitelist2.Position = UDim2.new(0, 0, 0.448402882, 0)
  93. whitelist2.Size = UDim2.new(1, 0, 0.136999995, 0)
  94. whitelist2.AutoButtonColor = false
  95. whitelist2.Font = Enum.Font.SourceSans
  96. whitelist2.Text = "Whitelists"
  97. whitelist2.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. whitelist2.TextSize = 20.000
  99.  
  100. clear.Name = "clear"
  101. clear.Parent = what
  102. clear.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  103. clear.BorderSizePixel = 0
  104. clear.Position = UDim2.new(0, 0, 0.583538055, 0)
  105. clear.Size = UDim2.new(1, 0, 0.136999995, 0)
  106. clear.AutoButtonColor = false
  107. clear.Font = Enum.Font.SourceSans
  108. clear.Text = "Clear Exile History"
  109. clear.TextColor3 = Color3.fromRGB(0, 0, 0)
  110. clear.TextSize = 20.000
  111.  
  112. friends.Name = "friends"
  113. friends.Parent = what
  114. friends.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  115. friends.BorderSizePixel = 0
  116. friends.Position = UDim2.new(0, 0, 0.71867311, 0)
  117. friends.Size = UDim2.new(1, 0, 0.136999995, 0)
  118. friends.AutoButtonColor = false
  119. friends.Font = Enum.Font.SourceSans
  120. friends.Text = "Allow Friends"
  121. friends.TextColor3 = Color3.fromRGB(0, 0, 0)
  122. friends.TextSize = 20.000
  123.  
  124. disable.Name = "disable"
  125. disable.Parent = what
  126. disable.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  127. disable.BorderSizePixel = 0
  128. disable.Position = UDim2.new(0, 0, 0.853808165, 0)
  129. disable.Size = UDim2.new(1, 0, 0.146191821, 0)
  130. disable.AutoButtonColor = false
  131. disable.Font = Enum.Font.SourceSans
  132. disable.Text = "Disable"
  133. disable.TextColor3 = Color3.fromRGB(0, 0, 0)
  134. disable.TextSize = 20.000
  135.  
  136. whframe.Name = "whframe"
  137. whframe.Parent = what
  138. whframe.BackgroundColor3 = Color3.fromRGB(153, 140, 121)
  139. whframe.BorderSizePixel = 0
  140. whframe.Position = UDim2.new(-1, 0, 0, 0)
  141. whframe.Size = UDim2.new(1, 0, 1, 0)
  142. whframe.Visible = false
  143. whframe.CanvasSize = UDim2.new(0, 0, 1, 0)
  144. whframe.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  145.  
  146. layout_2.Name = "layout"
  147. layout_2.Parent = whframe
  148. layout_2.SortOrder = Enum.SortOrder.LayoutOrder
  149. layout_2.CellPadding = UDim2.new(0, 0, 0, 0)
  150. layout_2.CellSize = UDim2.new(1, 0, 0.150000006, 0)
  151.  
  152. -- Scripts:
  153.  
  154. local function SLDXO_fake_script() -- thing.core
  155. local script = Instance.new('LocalScript', thing)
  156.  
  157. --animation upvalues
  158. local mainframe = script.Parent:WaitForChild("what")
  159. local inputservice = game:GetService("UserInputService")
  160. local connection
  161. local isingame = false
  162.  
  163. if game.PlaceId == 1033055123 then
  164. isingame = true
  165. end
  166.  
  167. --draggable/visible keybind
  168. local function gethover(input)
  169. local pos = input.Position
  170. for i, v in pairs(game.Players.LocalPlayer.PlayerGui:GetGuiObjectsAtPosition(pos.X, pos.Y)) do
  171. if v == mainframe.titledrag then
  172. return true
  173. end
  174. end
  175. return false
  176. end
  177.  
  178. local function togglevisible(obj)
  179. if obj == mainframe then
  180. obj.Visible = not obj.Visible
  181. if not inputservice.MouseIconEnabled and isingame then
  182. inputservice.MouseIconEnabled = true
  183. inputservice.MouseBehavior = Enum.MouseBehavior.Default
  184. elseif isingame then
  185. inputservice.MouseIconEnabled = false
  186. inputservice.MouseBehavior = Enum.MouseBehavior.LockCenter
  187. end
  188. if connection then
  189. connection:Disconnect()
  190. end
  191. else
  192. obj.Visible = not obj.Visible
  193. end
  194. end
  195.  
  196. inputservice.InputBegan:Connect(function(what)
  197. if what.UserInputType == Enum.UserInputType.MouseButton1 and gethover(what) then
  198. local pos2 = inputservice:GetMouseLocation()
  199. local original = mainframe.Position
  200. connection = inputservice.InputChanged:Connect(function(whatchanged)
  201. if whatchanged.UserInputType == Enum.UserInputType.MouseMovement then
  202. local pos = inputservice:GetMouseLocation()
  203. game:GetService("TweenService"):Create(mainframe, TweenInfo.new(.4), {Position = UDim2.new(original.X.Scale, original.X.Offset + (pos.X - pos2.X), original.Y.Scale, original.Y.Offset + (pos.Y - pos2.Y))}):Play()
  204. end
  205. end)
  206. elseif what.KeyCode == Enum.KeyCode.RightControl then
  207. togglevisible(mainframe)
  208. end
  209. end)
  210.  
  211. inputservice.InputEnded:Connect(function(what)
  212. if what.UserInputType == Enum.UserInputType.MouseButton1 and connection then
  213. connection:Disconnect()
  214. end
  215. end)
  216.  
  217. --core upvalues
  218. local exileremote = game:GetService("ReplicatedStorage").Remotes.ExileMember
  219. local openexile = mainframe:WaitForChild("openexile")
  220. local exiles = mainframe:WaitForChild("exiles")
  221. local clear = mainframe:WaitForChild("clear")
  222. local openwhite = mainframe:WaitForChild("whitelist")
  223. local whitframe = mainframe:WaitForChild("whframe")
  224. local start = mainframe:WaitForChild("start")
  225. local friends = mainframe:WaitForChild("friends")
  226. local disable = mainframe:WaitForChild("disable")
  227. local friendcheck = false
  228. local disabled = false
  229. local whitelist
  230.  
  231. local function check(you)
  232. if you.TeamName.Value == "" or you.TeamName.Value == nil then
  233. return "Not in a Faction"
  234. elseif game:GetService("ReplicatedStorage").FactionStats.Factions:FindFirstChild(you.TeamName.Value).Monarch.Value ~= game.Players.LocalPlayer.Name then
  235. return "Not Monarch"
  236. else
  237. return you.TeamName.Value, game:GetService("ReplicatedStorage").FactionStats.Factions:FindFirstChild(you.TeamName.Value)
  238. end
  239. end
  240.  
  241. local function notify(text)
  242. game.StarterGui:SetCore("SendNotification", {
  243. Title = "Anti-Fag";
  244. Text = text
  245. })
  246. end
  247.  
  248. --add whitelist function
  249. local function dowhitelist(what, who)
  250. local contents = readfile("whitelists.txt")
  251. if what == "add" then
  252. if contents == "" and not string.find(contents, who) then
  253. appendfile("whitelists.txt", who)
  254. elseif not string.find(contents, who) then
  255. appendfile("whitelists.txt", " " .. who)
  256. end
  257. elseif what == "sub" then
  258. local thing2
  259. if string.find(contents, " " .. who) then
  260. thing2 = string.gsub(contents, " " .. who, "")
  261. else
  262. thing2 = string.gsub(contents, who, "")
  263. end
  264. writefile("whitelists.txt", thing2)
  265. end
  266. end
  267.  
  268. local class = {
  269. new = function(self, data, option)
  270. if option == exiles and not exiles:FindFirstChild(data[1]) then
  271. local folder = Instance.new("Frame", exiles)
  272. local mugshot = Instance.new("ImageLabel", folder)
  273. local info = Instance.new("TextLabel", folder)
  274. local yes = Instance.new("TextButton", folder)
  275. local no = Instance.new("TextButton", folder)
  276. local layout = exiles.layout
  277. folder.Name = data[1]
  278. folder.BackgroundTransparency = 1
  279. folder.BorderSizePixel = 0
  280. mugshot.Image = game.Players:GetUserThumbnailAsync(game.Players:GetUserIdFromNameAsync(data[1]), Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
  281. info.Text = data[1] .. "\n" .. data[2]
  282. yes.Text = "Whitelist"
  283. no.Text = "Deny"
  284. mugshot.Size = UDim2.new(.4, 0, .6, 0)
  285. info.BackgroundTransparency = 1
  286. info.TextSize = 20
  287. info.BorderSizePixel = 0
  288. info.Position = UDim2.new(.45, 0, 0, 0)
  289. info.Size = UDim2.new(.5, 0, .6, 0)
  290. yes.BackgroundColor3 = Color3.fromRGB(197, 202, 148)
  291. no.BackgroundColor3 = Color3.fromRGB(197, 202, 148)
  292. yes.BorderSizePixel = 0
  293. no.BorderSizePixel = 0
  294. yes.Position = UDim2.new(0, 0, 1, 0)
  295. no.Position = UDim2.new(.5, 0, 1, 0)
  296. yes.Size = UDim2.new(.5, 0, -.3, 0)
  297. no.Size = UDim2.new(.5, 0, -.3, 0)
  298.  
  299. local sizer = Vector2.new(1, .51) * exiles.AbsoluteSize
  300. local sizer2 = Vector2.new(0, .04) * exiles.AbsoluteSize
  301. layout.CellSize = UDim2.new(0, sizer.X, 0, sizer.Y)
  302. layout.CellPadding = UDim2.new(0, sizer2.X, 0, sizer2.Y)
  303. exiles.CanvasSize = UDim2.new(0, layout.AbsoluteContentSize.X, 0, layout.AbsoluteContentSize.Y)
  304.  
  305. local otherconn
  306. local someconn
  307. someconn = no.MouseButton1Click:Connect(function()
  308. someconn:Disconnect()
  309. otherconn:Disconnect()
  310. self.takeout(exiles, folder)
  311. end)
  312. otherconn = yes.MouseButton1Click:Connect(function()
  313. otherconn:Disconnect()
  314. someconn:Disconnect()
  315. self.takeout(exiles, folder)
  316. self:new(data[1], whitframe)
  317. end)
  318. elseif option == whitframe and not whitframe:FindFirstChild(data) then
  319. whitelist[data] = true
  320. dowhitelist("add", data)
  321. local folder = Instance.new("Frame", whitframe)
  322. local name = Instance.new("TextLabel", folder)
  323. local remove = Instance.new("TextButton", folder)
  324. folder.Name = data
  325. folder.BackgroundTransparency = 1
  326. folder.BorderSizePixel = 0
  327. name.Size = UDim2.new(.4, 0, 1, 0)
  328. name.Position = UDim2.new(0, 0, 0, 0)
  329. name.BackgroundTransparency = 1
  330. name.Text = data
  331. name.BorderSizePixel = 0
  332. remove.Size = UDim2.new(.6, 0, 1, 0)
  333. remove.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
  334. remove.Text = "Remove"
  335. remove.BorderSizePixel = 0
  336. remove.Position = UDim2.new(.4, 0, 0, 0)
  337.  
  338. local sizer = Vector2.new(1, .15) * whitframe.AbsoluteSize
  339. whitframe.layout.CellSize = UDim2.new(0, sizer.X, 0, sizer.Y)
  340. whitframe.CanvasSize = UDim2.new(0, whitframe.layout.AbsoluteContentSize.X, 0, whitframe.layout.AbsoluteContentSize.Y)
  341.  
  342. local connthing
  343. connthing = remove.MouseButton1Click:Connect(function()
  344. connthing:Disconnect()
  345. self.takeout(whitframe, folder)
  346. end)
  347. end
  348. end,
  349. takeout = function(option, data)
  350. if option == exiles and data == exiles then
  351. for i, v in pairs(data:GetChildren()) do
  352. if v ~= exiles.layout then
  353. v:Destroy()
  354. end
  355. end
  356. exiles.CanvasSize = UDim2.new(0, exiles.layout.AbsoluteContentSize.X, 0, exiles.layout.AbsoluteContentSize.Y)
  357. elseif option == exiles then
  358. data:Destroy()
  359. exiles.CanvasSize = UDim2.new(0, exiles.layout.AbsoluteContentSize.X, 0, exiles.layout.AbsoluteContentSize.Y)
  360. elseif option == whitframe then
  361. whitelist[data.Name] = nil
  362. dowhitelist("sub", data.Name)
  363. data:Destroy()
  364. whitframe.CanvasSize = UDim2.new(0, whitframe.layout.AbsoluteContentSize.X, 0, whitframe.layout.AbsoluteContentSize.Y)
  365. end
  366. end
  367. }
  368.  
  369. --whitelist
  370. if isfile("whitelists.txt") then
  371. local content = readfile("whitelists.txt")
  372. if content ~= "" and content ~= nil then
  373. whitelist = string.split(content, " ")
  374. for i = 1, #whitelist do
  375. class:new(whitelist[i], whitframe)
  376. end
  377. else
  378. whitelist = {}
  379. end
  380. else
  381. writefile("whitelists.txt", "")
  382. whitelist = {}
  383. end
  384.  
  385. --actual core
  386.  
  387. start.MouseButton1Click:Connect(function()
  388. local you = game:GetService("ReplicatedStorage").PlayerStats:FindFirstChild(game.Players.LocalPlayer.Name)
  389. local teamname, current = check(you)
  390. if teamname and current then
  391. for i, v in pairs(current.Members:GetChildren()) do
  392. if friendcheck and game.Players.LocalPlayer:IsFriendsWith(game.Players[v.Name].UserId) or disabled or whitelist[v.Name] then
  393. notify("Player " .. v.Name .. " is exempt!")
  394. elseif v.Name ~= game.Players.LocalPlayer.Name then
  395. class:new({v.Name, game:GetService("ReplicatedStorage").PlayerStats[v.Name].Level.Value}, exiles)
  396. notify("Player " .. v.Name .. " has been exiled!")
  397. exileremote:FireServer(
  398. v.Name,
  399. teamname
  400. )
  401. end
  402. end
  403. local monitorconn = current.Members.ChildAdded:Connect(function(plr)
  404. if friendcheck and game.Players.LocalPlayer:IsFriendsWith(game.Players[plr.Name].UserId) or disabled or whitelist[plr.Name] then
  405. notify("Player " .. plr.Name .. " has joined!")
  406. elseif plr.Name ~= game.Players.LocalPlayer.Name then
  407. class:new({plr.Name, game:GetService("ReplicatedStorage").PlayerStats[plr.Name].Level.Value}, exiles)
  408. notify("Player " .. plr.Name .. " has been exiled!")
  409. exileremote:FireServer(
  410. plr.Name,
  411. teamname
  412. )
  413. end
  414. end)
  415. local otherconn
  416. otherconn = current.AncestryChanged:Connect(function()
  417. if not current.Parent then
  418. monitorconn:Disconnect()
  419. otherconn:Disconnect()
  420. notify("Something changed, terminated")
  421. end
  422. end)
  423. else
  424. notify(teamname)
  425. end
  426. end)
  427.  
  428. openexile.MouseButton1Click:Connect(function()
  429. togglevisible(exiles)
  430. end)
  431.  
  432. openwhite.MouseButton1Click:Connect(function()
  433. togglevisible(whitframe)
  434. end)
  435.  
  436. disable.MouseButton1Click:Connect(function()
  437. if disabled then
  438. disabled = false
  439. disable.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  440. else
  441. disabled = true
  442. disable.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  443. end
  444. end)
  445.  
  446. friends.MouseButton1Click:Connect(function()
  447. if friendcheck then
  448. friendcheck = false
  449. friends.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
  450. else
  451. friendcheck = true
  452. friends.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  453. end
  454. end)
  455.  
  456. clear.MouseButton1Click:Connect(function()
  457. class.takeout(exiles, exiles)
  458. end)
  459. end
  460. coroutine.wrap(SLDXO_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement