Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.1
- -- Instances:
- local thing = Instance.new("ScreenGui")
- local what = Instance.new("Frame")
- local exiles2 = Instance.new("ScrollingFrame")
- local layout2 = Instance.new("UIGridLayout")
- local openexile = Instance.new("TextButton")
- local titledrag = Instance.new("TextLabel")
- local start2 = Instance.new("TextButton")
- local whitelist2 = Instance.new("TextButton")
- local clear = Instance.new("TextButton")
- local friends = Instance.new("TextButton")
- local disable = Instance.new("TextButton")
- local whframe = Instance.new("ScrollingFrame")
- local layout_2 = Instance.new("UIGridLayout")
- --Properties:
- thing.Name = "thing"
- thing.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- thing.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- thing.ResetOnSpawn = false
- what.Name = "what"
- what.Parent = thing
- what.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- what.BorderSizePixel = 0
- what.Position = UDim2.new(0.399368584, 0, 0.299754292, 0)
- what.Size = UDim2.new(0.200000003, 0, 0.400000006, 0)
- what.Visible = false
- exiles2.Name = "exiles"
- exiles2.Parent = what
- exiles2.BackgroundColor3 = Color3.fromRGB(153, 140, 121)
- exiles2.BorderSizePixel = 0
- exiles2.Position = UDim2.new(1.00000012, 0, 4.6863601e-08, 0)
- exiles2.Size = UDim2.new(1, 0, 1, 0)
- exiles2.Visible = false
- exiles2.CanvasSize = UDim2.new(0, 0, 1, 0)
- layout2.Name = "layout"
- layout2.Parent = exiles2
- layout2.SortOrder = Enum.SortOrder.LayoutOrder
- layout2.CellPadding = UDim2.new(0, 0, 0, 0)
- layout2.CellSize = UDim2.new(0, 0, 0, 0)
- openexile.Name = "openexile"
- openexile.Parent = what
- openexile.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- openexile.BorderSizePixel = 0
- openexile.Position = UDim2.new(0, 0, 0.313267767, 0)
- openexile.Size = UDim2.new(1, 0, 0.136999995, 0)
- openexile.AutoButtonColor = false
- openexile.Font = Enum.Font.SourceSans
- openexile.Text = "Exile History"
- openexile.TextColor3 = Color3.fromRGB(0, 0, 0)
- openexile.TextSize = 20.000
- titledrag.Name = "titledrag"
- titledrag.Parent = what
- titledrag.Active = true
- titledrag.BackgroundColor3 = Color3.fromRGB(217, 198, 171)
- titledrag.BorderSizePixel = 0
- titledrag.Position = UDim2.new(-3.0108108e-08, 0, 0, 0)
- titledrag.Selectable = true
- titledrag.Size = UDim2.new(1, 0, 0.180000007, 0)
- titledrag.Font = Enum.Font.SourceSans
- titledrag.Text = "Anti-Fag"
- titledrag.TextColor3 = Color3.fromRGB(0, 0, 0)
- titledrag.TextSize = 25.000
- titledrag.TextWrapped = true
- start2.Name = "start"
- start2.Parent = what
- start2.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- start2.BorderSizePixel = 0
- start2.Position = UDim2.new(-4.65661287e-10, 0, 0.17506139, 0)
- start2.Size = UDim2.new(1, 0, 0.136999995, 0)
- start2.AutoButtonColor = false
- start2.Font = Enum.Font.SourceSans
- start2.Text = "Start"
- start2.TextColor3 = Color3.fromRGB(0, 0, 0)
- start2.TextSize = 20.000
- whitelist2.Name = "whitelist"
- whitelist2.Parent = what
- whitelist2.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- whitelist2.BorderSizePixel = 0
- whitelist2.Position = UDim2.new(0, 0, 0.448402882, 0)
- whitelist2.Size = UDim2.new(1, 0, 0.136999995, 0)
- whitelist2.AutoButtonColor = false
- whitelist2.Font = Enum.Font.SourceSans
- whitelist2.Text = "Whitelists"
- whitelist2.TextColor3 = Color3.fromRGB(0, 0, 0)
- whitelist2.TextSize = 20.000
- clear.Name = "clear"
- clear.Parent = what
- clear.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- clear.BorderSizePixel = 0
- clear.Position = UDim2.new(0, 0, 0.583538055, 0)
- clear.Size = UDim2.new(1, 0, 0.136999995, 0)
- clear.AutoButtonColor = false
- clear.Font = Enum.Font.SourceSans
- clear.Text = "Clear Exile History"
- clear.TextColor3 = Color3.fromRGB(0, 0, 0)
- clear.TextSize = 20.000
- friends.Name = "friends"
- friends.Parent = what
- friends.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- friends.BorderSizePixel = 0
- friends.Position = UDim2.new(0, 0, 0.71867311, 0)
- friends.Size = UDim2.new(1, 0, 0.136999995, 0)
- friends.AutoButtonColor = false
- friends.Font = Enum.Font.SourceSans
- friends.Text = "Allow Friends"
- friends.TextColor3 = Color3.fromRGB(0, 0, 0)
- friends.TextSize = 20.000
- disable.Name = "disable"
- disable.Parent = what
- disable.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- disable.BorderSizePixel = 0
- disable.Position = UDim2.new(0, 0, 0.853808165, 0)
- disable.Size = UDim2.new(1, 0, 0.146191821, 0)
- disable.AutoButtonColor = false
- disable.Font = Enum.Font.SourceSans
- disable.Text = "Disable"
- disable.TextColor3 = Color3.fromRGB(0, 0, 0)
- disable.TextSize = 20.000
- whframe.Name = "whframe"
- whframe.Parent = what
- whframe.BackgroundColor3 = Color3.fromRGB(153, 140, 121)
- whframe.BorderSizePixel = 0
- whframe.Position = UDim2.new(-1, 0, 0, 0)
- whframe.Size = UDim2.new(1, 0, 1, 0)
- whframe.Visible = false
- whframe.CanvasSize = UDim2.new(0, 0, 1, 0)
- whframe.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
- layout_2.Name = "layout"
- layout_2.Parent = whframe
- layout_2.SortOrder = Enum.SortOrder.LayoutOrder
- layout_2.CellPadding = UDim2.new(0, 0, 0, 0)
- layout_2.CellSize = UDim2.new(1, 0, 0.150000006, 0)
- -- Scripts:
- local function SLDXO_fake_script() -- thing.core
- local script = Instance.new('LocalScript', thing)
- --animation upvalues
- local mainframe = script.Parent:WaitForChild("what")
- local inputservice = game:GetService("UserInputService")
- local connection
- local isingame = false
- if game.PlaceId == 1033055123 then
- isingame = true
- end
- --draggable/visible keybind
- local function gethover(input)
- local pos = input.Position
- for i, v in pairs(game.Players.LocalPlayer.PlayerGui:GetGuiObjectsAtPosition(pos.X, pos.Y)) do
- if v == mainframe.titledrag then
- return true
- end
- end
- return false
- end
- local function togglevisible(obj)
- if obj == mainframe then
- obj.Visible = not obj.Visible
- if not inputservice.MouseIconEnabled and isingame then
- inputservice.MouseIconEnabled = true
- inputservice.MouseBehavior = Enum.MouseBehavior.Default
- elseif isingame then
- inputservice.MouseIconEnabled = false
- inputservice.MouseBehavior = Enum.MouseBehavior.LockCenter
- end
- if connection then
- connection:Disconnect()
- end
- else
- obj.Visible = not obj.Visible
- end
- end
- inputservice.InputBegan:Connect(function(what)
- if what.UserInputType == Enum.UserInputType.MouseButton1 and gethover(what) then
- local pos2 = inputservice:GetMouseLocation()
- local original = mainframe.Position
- connection = inputservice.InputChanged:Connect(function(whatchanged)
- if whatchanged.UserInputType == Enum.UserInputType.MouseMovement then
- local pos = inputservice:GetMouseLocation()
- 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()
- end
- end)
- elseif what.KeyCode == Enum.KeyCode.RightControl then
- togglevisible(mainframe)
- end
- end)
- inputservice.InputEnded:Connect(function(what)
- if what.UserInputType == Enum.UserInputType.MouseButton1 and connection then
- connection:Disconnect()
- end
- end)
- --core upvalues
- local exileremote = game:GetService("ReplicatedStorage").Remotes.ExileMember
- local openexile = mainframe:WaitForChild("openexile")
- local exiles = mainframe:WaitForChild("exiles")
- local clear = mainframe:WaitForChild("clear")
- local openwhite = mainframe:WaitForChild("whitelist")
- local whitframe = mainframe:WaitForChild("whframe")
- local start = mainframe:WaitForChild("start")
- local friends = mainframe:WaitForChild("friends")
- local disable = mainframe:WaitForChild("disable")
- local friendcheck = false
- local disabled = false
- local whitelist
- local function check(you)
- if you.TeamName.Value == "" or you.TeamName.Value == nil then
- return "Not in a Faction"
- elseif game:GetService("ReplicatedStorage").FactionStats.Factions:FindFirstChild(you.TeamName.Value).Monarch.Value ~= game.Players.LocalPlayer.Name then
- return "Not Monarch"
- else
- return you.TeamName.Value, game:GetService("ReplicatedStorage").FactionStats.Factions:FindFirstChild(you.TeamName.Value)
- end
- end
- local function notify(text)
- game.StarterGui:SetCore("SendNotification", {
- Title = "Anti-Fag";
- Text = text
- })
- end
- --add whitelist function
- local function dowhitelist(what, who)
- local contents = readfile("whitelists.txt")
- if what == "add" then
- if contents == "" and not string.find(contents, who) then
- appendfile("whitelists.txt", who)
- elseif not string.find(contents, who) then
- appendfile("whitelists.txt", " " .. who)
- end
- elseif what == "sub" then
- local thing2
- if string.find(contents, " " .. who) then
- thing2 = string.gsub(contents, " " .. who, "")
- else
- thing2 = string.gsub(contents, who, "")
- end
- writefile("whitelists.txt", thing2)
- end
- end
- local class = {
- new = function(self, data, option)
- if option == exiles and not exiles:FindFirstChild(data[1]) then
- local folder = Instance.new("Frame", exiles)
- local mugshot = Instance.new("ImageLabel", folder)
- local info = Instance.new("TextLabel", folder)
- local yes = Instance.new("TextButton", folder)
- local no = Instance.new("TextButton", folder)
- local layout = exiles.layout
- folder.Name = data[1]
- folder.BackgroundTransparency = 1
- folder.BorderSizePixel = 0
- mugshot.Image = game.Players:GetUserThumbnailAsync(game.Players:GetUserIdFromNameAsync(data[1]), Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size100x100)
- info.Text = data[1] .. "\n" .. data[2]
- yes.Text = "Whitelist"
- no.Text = "Deny"
- mugshot.Size = UDim2.new(.4, 0, .6, 0)
- info.BackgroundTransparency = 1
- info.TextSize = 20
- info.BorderSizePixel = 0
- info.Position = UDim2.new(.45, 0, 0, 0)
- info.Size = UDim2.new(.5, 0, .6, 0)
- yes.BackgroundColor3 = Color3.fromRGB(197, 202, 148)
- no.BackgroundColor3 = Color3.fromRGB(197, 202, 148)
- yes.BorderSizePixel = 0
- no.BorderSizePixel = 0
- yes.Position = UDim2.new(0, 0, 1, 0)
- no.Position = UDim2.new(.5, 0, 1, 0)
- yes.Size = UDim2.new(.5, 0, -.3, 0)
- no.Size = UDim2.new(.5, 0, -.3, 0)
- local sizer = Vector2.new(1, .51) * exiles.AbsoluteSize
- local sizer2 = Vector2.new(0, .04) * exiles.AbsoluteSize
- layout.CellSize = UDim2.new(0, sizer.X, 0, sizer.Y)
- layout.CellPadding = UDim2.new(0, sizer2.X, 0, sizer2.Y)
- exiles.CanvasSize = UDim2.new(0, layout.AbsoluteContentSize.X, 0, layout.AbsoluteContentSize.Y)
- local otherconn
- local someconn
- someconn = no.MouseButton1Click:Connect(function()
- someconn:Disconnect()
- otherconn:Disconnect()
- self.takeout(exiles, folder)
- end)
- otherconn = yes.MouseButton1Click:Connect(function()
- otherconn:Disconnect()
- someconn:Disconnect()
- self.takeout(exiles, folder)
- self:new(data[1], whitframe)
- end)
- elseif option == whitframe and not whitframe:FindFirstChild(data) then
- whitelist[data] = true
- dowhitelist("add", data)
- local folder = Instance.new("Frame", whitframe)
- local name = Instance.new("TextLabel", folder)
- local remove = Instance.new("TextButton", folder)
- folder.Name = data
- folder.BackgroundTransparency = 1
- folder.BorderSizePixel = 0
- name.Size = UDim2.new(.4, 0, 1, 0)
- name.Position = UDim2.new(0, 0, 0, 0)
- name.BackgroundTransparency = 1
- name.Text = data
- name.BorderSizePixel = 0
- remove.Size = UDim2.new(.6, 0, 1, 0)
- remove.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
- remove.Text = "Remove"
- remove.BorderSizePixel = 0
- remove.Position = UDim2.new(.4, 0, 0, 0)
- local sizer = Vector2.new(1, .15) * whitframe.AbsoluteSize
- whitframe.layout.CellSize = UDim2.new(0, sizer.X, 0, sizer.Y)
- whitframe.CanvasSize = UDim2.new(0, whitframe.layout.AbsoluteContentSize.X, 0, whitframe.layout.AbsoluteContentSize.Y)
- local connthing
- connthing = remove.MouseButton1Click:Connect(function()
- connthing:Disconnect()
- self.takeout(whitframe, folder)
- end)
- end
- end,
- takeout = function(option, data)
- if option == exiles and data == exiles then
- for i, v in pairs(data:GetChildren()) do
- if v ~= exiles.layout then
- v:Destroy()
- end
- end
- exiles.CanvasSize = UDim2.new(0, exiles.layout.AbsoluteContentSize.X, 0, exiles.layout.AbsoluteContentSize.Y)
- elseif option == exiles then
- data:Destroy()
- exiles.CanvasSize = UDim2.new(0, exiles.layout.AbsoluteContentSize.X, 0, exiles.layout.AbsoluteContentSize.Y)
- elseif option == whitframe then
- whitelist[data.Name] = nil
- dowhitelist("sub", data.Name)
- data:Destroy()
- whitframe.CanvasSize = UDim2.new(0, whitframe.layout.AbsoluteContentSize.X, 0, whitframe.layout.AbsoluteContentSize.Y)
- end
- end
- }
- --whitelist
- if isfile("whitelists.txt") then
- local content = readfile("whitelists.txt")
- if content ~= "" and content ~= nil then
- whitelist = string.split(content, " ")
- for i = 1, #whitelist do
- class:new(whitelist[i], whitframe)
- end
- else
- whitelist = {}
- end
- else
- writefile("whitelists.txt", "")
- whitelist = {}
- end
- --actual core
- start.MouseButton1Click:Connect(function()
- local you = game:GetService("ReplicatedStorage").PlayerStats:FindFirstChild(game.Players.LocalPlayer.Name)
- local teamname, current = check(you)
- if teamname and current then
- for i, v in pairs(current.Members:GetChildren()) do
- if friendcheck and game.Players.LocalPlayer:IsFriendsWith(game.Players[v.Name].UserId) or disabled or whitelist[v.Name] then
- notify("Player " .. v.Name .. " is exempt!")
- elseif v.Name ~= game.Players.LocalPlayer.Name then
- class:new({v.Name, game:GetService("ReplicatedStorage").PlayerStats[v.Name].Level.Value}, exiles)
- notify("Player " .. v.Name .. " has been exiled!")
- exileremote:FireServer(
- v.Name,
- teamname
- )
- end
- end
- local monitorconn = current.Members.ChildAdded:Connect(function(plr)
- if friendcheck and game.Players.LocalPlayer:IsFriendsWith(game.Players[plr.Name].UserId) or disabled or whitelist[plr.Name] then
- notify("Player " .. plr.Name .. " has joined!")
- elseif plr.Name ~= game.Players.LocalPlayer.Name then
- class:new({plr.Name, game:GetService("ReplicatedStorage").PlayerStats[plr.Name].Level.Value}, exiles)
- notify("Player " .. plr.Name .. " has been exiled!")
- exileremote:FireServer(
- plr.Name,
- teamname
- )
- end
- end)
- local otherconn
- otherconn = current.AncestryChanged:Connect(function()
- if not current.Parent then
- monitorconn:Disconnect()
- otherconn:Disconnect()
- notify("Something changed, terminated")
- end
- end)
- else
- notify(teamname)
- end
- end)
- openexile.MouseButton1Click:Connect(function()
- togglevisible(exiles)
- end)
- openwhite.MouseButton1Click:Connect(function()
- togglevisible(whitframe)
- end)
- disable.MouseButton1Click:Connect(function()
- if disabled then
- disabled = false
- disable.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- else
- disabled = true
- disable.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- end
- end)
- friends.MouseButton1Click:Connect(function()
- if friendcheck then
- friendcheck = false
- friends.BackgroundColor3 = Color3.fromRGB(255, 233, 201)
- else
- friendcheck = true
- friends.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- end
- end)
- clear.MouseButton1Click:Connect(function()
- class.takeout(exiles, exiles)
- end)
- end
- coroutine.wrap(SLDXO_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement