Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local TextButton = Instance.new("TextButton")
- local KickButon = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- TextButton.Parent = ScreenGui
- TextButton.BackgroundColor3 = Color3.fromRGB(83, 255, 27)
- TextButton.Position = UDim2.new(0.0241666697, 0, 0.25333336, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "Server Unlocked"
- TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.TextScaled = true
- TextButton.TextSize = 14.000
- TextButton.TextWrapped = true
- KickButon.Name = "KickButon"
- KickButon.Parent = ScreenGui
- KickButon.BackgroundColor3 = Color3.fromRGB(28, 222, 255)
- KickButon.Position = UDim2.new(0.024166666, 0, 0.362666667, 0)
- KickButon.Size = UDim2.new(0, 200, 0, 50)
- KickButon.Font = Enum.Font.SourceSans
- KickButon.Text = "Kick Others"
- KickButon.TextColor3 = Color3.fromRGB(255, 255, 255)
- KickButon.TextScaled = true
- KickButon.TextSize = 14.000
- KickButon.TextWrapped = true
- -- Scripts:
- local function VASQOVX_fake_script() -- TextButton.LocalScriptSL
- local script = Instance.new('LocalScript', TextButton)
- script.Parent.MouseButton1Click:Connect(function()
- print("Server Locked")
- local player = game.Players
- local TextButton = game.StarterGui.ScreenGui.TextButton
- game.Players.PlayerAdded:Connect(function(player)
- player:Kick(player.Name.. ", the server has been unfortunately locked", print(player.Name.. " has attempted to join."))
- end)
- script.Parent.ScriptDisabler.Disabled = false
- script.Parent.LocalScriptSL.Disabled = true
- end)
- script.Parent.MouseButton1Click:Connect(function()
- local TextButton = script.Parent
- TextButton.BackgroundColor3 = Color3.fromRGB(252, 0, 6)
- TextButton.Text = "Server Locked"
- end)
- end
- coroutine.wrap(VASQOVX_fake_script)()
- -- TextButton.ScriptDisabler is disabled.
- -- TextButton.ScriptDisabler2 is disabled.
- local function JTJUOY_fake_script() -- KickButon.LocalScript
- local script = Instance.new('LocalScript', KickButon)
- local player = game.Players.ImNoobie12Dojo -- Replace your name!!!
- local others = game.Players
- game.Players.PlayerAdded:Connect(function(player)
- print("Welcome", player.Name)
- end)
- game.Players.PlayerAdded:Connect(function(others)
- others:Kick("ImNoobie12Dojo has kicked others.", print("Other players have been kicked"))
- end)
- end
- coroutine.wrap(JTJUOY_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement