Roblox Mount of the Gods Script GUI [KICK, BAN, TOGGLE PVP, ETC]

Roblox Mount of the Gods Script GUI [KICK, BAN, TOGGLE PVP, ETC]

Script By Shutta

-- Gui to Lua
-- Version: 3.2

-- Instances:

local MOTG = Instance.new("ScreenGui")
local Main = Instance.new("Frame")
local PrintBanned = Instance.new("TextButton")
local TextButton = Instance.new("TextButton")
local TextButton_2 = Instance.new("TextButton")
local TextButton_3 = Instance.new("TextButton")
local TextLabel = Instance.new("TextLabel")
local KickBanUnban = Instance.new("Folder")
local UnbanConfirm = Instance.new("TextButton")
local KickConfirm = Instance.new("TextButton")
local BanConfirm = Instance.new("TextButton")
local Bans = Instance.new("Folder")
local Name = Instance.new("TextBox")

--Properties:

MOTG.Name = "MOTG"
MOTG.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

Main.Name = "Main"
Main.Parent = MOTG
Main.Active = true
Main.AnchorPoint = Vector2.new(0.5, 0.5)
Main.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Main.Position = UDim2.new(0, 469, 0, 203)
Main.Size = UDim2.new(0, 228, 0, 160)

PrintBanned.Name = "PrintBanned"
PrintBanned.Parent = Main
PrintBanned.AnchorPoint = Vector2.new(0.5, 0.5)
PrintBanned.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
PrintBanned.Position = UDim2.new(0, 114, 0, 99)
PrintBanned.Size = UDim2.new(0.877192974, 0, 0.119999997, 0)
PrintBanned.Font = Enum.Font.GothamSemibold
PrintBanned.Text = "Print Banned Users"
PrintBanned.TextColor3 = Color3.fromRGB(0, 0, 0)
PrintBanned.TextScaled = true
PrintBanned.TextSize = 14.000
PrintBanned.TextWrapped = true

TextButton.Parent = Main
TextButton.AnchorPoint = Vector2.new(0.5, 0.5)
TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton.Position = UDim2.new(0, 114, 0, 22)
TextButton.Size = UDim2.new(0.876312077, 0, 0.125, 0)
TextButton.Font = Enum.Font.GothamSemibold
TextButton.Text = "Expand Island"
TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton.TextScaled = true
TextButton.TextSize = 25.000
TextButton.TextWrapped = true

TextButton_2.Parent = Main
TextButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton_2.Position = UDim2.new(0, 114, 0, 47)
TextButton_2.Size = UDim2.new(0.877192974, 0, 0.125, 0)
TextButton_2.Font = Enum.Font.GothamSemibold
TextButton_2.Text = "Toggle PvP"
TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton_2.TextScaled = true
TextButton_2.TextSize = 25.000
TextButton_2.TextWrapped = true

TextButton_3.Parent = Main
TextButton_3.AnchorPoint = Vector2.new(0.5, 0.5)
TextButton_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextButton_3.Position = UDim2.new(0, 114, 0, 73)
TextButton_3.Size = UDim2.new(0.875025153, 0, 0.125000015, 0)
TextButton_3.Font = Enum.Font.GothamSemibold
TextButton_3.Text = "Freeze the Gods"
TextButton_3.TextColor3 = Color3.fromRGB(0, 0, 0)
TextButton_3.TextScaled = true
TextButton_3.TextSize = 14.000
TextButton_3.TextWrapped = true

TextLabel.Parent = Main
TextLabel.Active = true
TextLabel.AnchorPoint = Vector2.new(0.5, 0.5)
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.Position = UDim2.new(0, 114, 0, -10)
TextLabel.Size = UDim2.new(1.00176048, 0, 0.163313895, 0)
TextLabel.Font = Enum.Font.GothamSemibold
TextLabel.Text = "MOTG Server Control Panel"
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.TextSize = 14.000

KickBanUnban.Name = "KickBanUnban"
KickBanUnban.Parent = Main

UnbanConfirm.Name = "UnbanConfirm"
UnbanConfirm.Parent = KickBanUnban
UnbanConfirm.AnchorPoint = Vector2.new(0.5, 0.5)
UnbanConfirm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
UnbanConfirm.Position = UDim2.new(0, 170, 0, 147)
UnbanConfirm.Size = UDim2.new(0.219298244, 0, 0.0799999982, 0)
UnbanConfirm.Font = Enum.Font.SourceSans
UnbanConfirm.Text = "Unban"
UnbanConfirm.TextColor3 = Color3.fromRGB(0, 0, 0)
UnbanConfirm.TextScaled = true
UnbanConfirm.TextSize = 14.000
UnbanConfirm.TextWrapped = true

KickConfirm.Name = "KickConfirm"
KickConfirm.Parent = KickBanUnban
KickConfirm.AnchorPoint = Vector2.new(0.5, 0.5)
KickConfirm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
KickConfirm.Position = UDim2.new(0, 62, 0, 147)
KickConfirm.Size = UDim2.new(0.219298244, 0, 0.0799999982, 0)
KickConfirm.Font = Enum.Font.SourceSans
KickConfirm.Text = "Kick"
KickConfirm.TextColor3 = Color3.fromRGB(0, 0, 0)
KickConfirm.TextScaled = true
KickConfirm.TextSize = 14.000
KickConfirm.TextWrapped = true

BanConfirm.Name = "BanConfirm"
BanConfirm.Parent = KickBanUnban
BanConfirm.AnchorPoint = Vector2.new(0.5, 0.5)
BanConfirm.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
BanConfirm.Position = UDim2.new(0, 116, 0, 147)
BanConfirm.Size = UDim2.new(0.219298244, 0, 0.0799999982, 0)
BanConfirm.Font = Enum.Font.SourceSans
BanConfirm.Text = "Ban"
BanConfirm.TextColor3 = Color3.fromRGB(0, 0, 0)
BanConfirm.TextScaled = true
BanConfirm.TextSize = 14.000
BanConfirm.TextWrapped = true

Bans.Name = "Bans"
Bans.Parent = BanConfirm

Name.Name = "Name"
Name.Parent = KickBanUnban
Name.AnchorPoint = Vector2.new(0.5, 0.5)
Name.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Name.Position = UDim2.new(0, 114, 0, 125)
Name.Size = UDim2.new(0.877192974, 0, 0.119999997, 0)
Name.ClearTextOnFocus = false
Name.Font = Enum.Font.GothamSemibold
Name.PlaceholderText = "Enter Full Player Name (Case Sensetive)"
Name.Text = ""
Name.TextColor3 = Color3.fromRGB(0, 0, 0)
Name.TextScaled = true
Name.TextSize = 14.000
Name.TextWrapped = true

-- Scripts:

local function KPPHLPN_fake_script() -- PrintBanned.LocalScript 
	local script = Instance.new('LocalScript', PrintBanned)

	local Bans = script.Parent.Parent.KickBanUnban.BanConfirm.Bans
	
	script.Parent.MouseButton1Click:Connect(function()
		for _, v in pairs(Bans:GetChildren()) do
			if v:IsA("StringValue") then
				print(v.Value)
				script.Parent.Text = "Printed! Press F9 to see a list of banned users!"
				wait(1.5)
				script.Parent.Text = "Print Banned Users"
			else
				local Check = Bans:FindFirstChildWhichIsA("StringValue")
				if Check == nil then script.Parent.Text = "There are no banned users!" wait(1.5) script.Parent.Text = "Print Banned Users"
				end
			end
		end
	end)
end
coroutine.wrap(KPPHLPN_fake_script)()
local function EKOAIKJ_fake_script() -- TextButton.LocalScript 
	local script = Instance.new('LocalScript', TextButton)

	local Remote = game:GetService("ReplicatedStorage").Resources.Remotes['RaiseIsland']
	_G.Stopped = true
	
	script.Parent.MouseButton1Click:Connect(function()
		if script.Parent.Text == "Expand Island" then
			if _G.Stopped == false then
				_G.Stopped = true
			end
			script.Parent.Text = "Stop Expanding Island"
			while wait(.05) do
				if _G.Stopped == false then return end
				Remote:FireServer()
			end
		else
			if script.Parent.Text == "Stop Expanding Island" then
				script.Parent.Text = "Expand Island"
				_G.Stopped = false
			end
		end
	end)
end
coroutine.wrap(EKOAIKJ_fake_script)()
local function AXLYJCC_fake_script() -- TextButton_2.LocalScript 
	local script = Instance.new('LocalScript', TextButton_2)

	local Remote = game:GetService("ReplicatedStorage").Resources.Remotes.TogglePVP
	local Check = game.ReplicatedStorage:FindFirstChild("PVP")
	
	script.Parent.MouseButton1Click:Connect(function()
		_G.Enabled = Check.Value
		if _G.Enabled == false then
			Remote:FireServer()
			script.Parent.Text = "PvP has been enabled!"
			wait(1.5)
			script.Parent.Text = "Toggle PvP"
		else
			if _G.Enabled == true then
				Remote:FireServer()
				script.Parent.Text = "PvP has been disabled!"
				wait(1.5)
				script.Parent.Text = "Toggle PvP"
			end
		end
	end)
end
coroutine.wrap(AXLYJCC_fake_script)()
local function MGTRYA_fake_script() -- TextButton_3.LocalScript 
	local script = Instance.new('LocalScript', TextButton_3)

	local Remote = game:GetService("ReplicatedStorage").Resources.Remotes.ToggleTimer
	local Check = game.ReplicatedStorage:FindFirstChild("TimerPaused")
	
	script.Parent.MouseButton1Click:Connect(function()
		_G.StoppedTime = Check.Value
		if _G.StoppedTime == false then
			Remote:FireServer()
			script.Parent.Text = "Unfreeze the Gods"
		else
			if _G.StoppedTime == true then
				Remote:FireServer()
				script.Parent.Text = "Freeze the Gods"
			else
				return
			end
		end
	end)
	
	while wait() do
		if Check == true then
			script.Parent.Text = "Unfreeze the Gods"
		else
			if Check == false then 
				script.Parent.Text = "Freeze the Gods"
			end
		end
	end
	
	
end
coroutine.wrap(MGTRYA_fake_script)()
local function YIPF_fake_script() -- UnbanConfirm.LocalScript 
	local script = Instance.new('LocalScript', UnbanConfirm)

	local Remote = game:GetService("ReplicatedStorage").Resources.Remotes["InteractItem"]
	local Username = script.Parent.Parent:FindFirstChild("Name")
	local Bans = script.Parent.Parent.BanConfirm:FindFirstChild("Bans")
	
	script.Parent.MouseButton1Click:Connect(function()
		for _,v in pairs(Bans:GetChildren()) do
			if v:IsA("StringValue") then
				if Username.Text == v.Value then
					v:Destroy()
					Username.Text = "Sucessfully unbanned " ..Username.Text.. "!"
					wait(1.5)
					Username.Text = ""
				else
					if Username.Text == "all" then
						Bans:ClearAllChildren()
						Username.Text = "Unbanned all!"
						wait(1.5)
						Username.Text = ""
					else
						Username.Text = "No ban data found for " ..Username.Text.. "!"
						wait(1.5)
						Username.Text = ""
					end
				end
			end
		end
	end)
	
end
coroutine.wrap(YIPF_fake_script)()
local function JRDAG_fake_script() -- KickConfirm.LocalScript 
	local script = Instance.new('LocalScript', KickConfirm)

	local Remote = game:GetService("ReplicatedStorage").Resources.Remotes["InteractItem"]
	local Username = script.Parent.Parent:FindFirstChild("Name")
	
	script.Parent.MouseButton1Click:Connect(function()
		local TargetPlr = game.Players:FindFirstChild(Username.Text)
		if TargetPlr then
			if Username.Text == "shutta2" or Username.Text == game.Players.LocalPlayer.Name then Username.Text = "You cannot kick that player!" wait(1.5) Username.Text = "" return end
			print("Found player.. attempting to kick!")
			Remote:FireServer("Destroy", TargetPlr)
			if TargetPlr == nil then
				Username.Text = "Successfully kicked" ..TargetPlr.Name.. "!"
				wait(1.5)
				Username.Text = ""
			end
		else
			if Username.Text == "all" then
				for _, v in pairs(game.Players:GetChildren()) do
					if v:IsA("Player") then
						Remote:FireServer("Destroy", v)
					end
				end
			else
				Username.Text = "Invalid username!"
				wait(1.5)
				Username.Text = ""
			end
		end
	end)
end
coroutine.wrap(JRDAG_fake_script)()
local function YSVVSTH_fake_script() -- BanConfirm.LocalScript 
	local script = Instance.new('LocalScript', BanConfirm)

	local Remote = game:GetService("ReplicatedStorage").Resources.Remotes["InteractItem"]
	local Username = script.Parent.Parent:FindFirstChild("Name")
	
	script.Parent.MouseButton1Click:Connect(function()
		if game.Players:FindFirstChild(Username.Text) then
			local Player = game.Players:FindFirstChild(Username.Text)
			if Player then
				
				if Username.Text == "shutta2" or Username.Text == game.Players.LocalPlayer.Name then Username.Text = "You cannot ban that player!" wait(1.5) Username.Text = "" return end
				
				local BanData = Instance.new("StringValue", script.Parent.Bans)
				BanData.Value = Player.Name
				
				Remote:FireServer("Destroy", Player)
				
				Username.Text = "Successfully banned " ..Player.Name.. "!"
				wait(1.5)
				Username.Text = ""
			end
		else
			if Username.Text == "all" then
				for _, v in pairs(game.Players:GetChildren()) do
					if v:IsA("Player") then
						local BanData = Instance.new("StringValue", script.Parent.Bans)
						BanData.Value = v.Name
						
						Remote:FireServer("Destroy", v)
					end
				end
			else
				Username.Text = "Invalid username!"
				wait(1.5)
				Username.Text = ""
			end
		end
	end)
end
coroutine.wrap(YSVVSTH_fake_script)()
local function IZTM_fake_script() -- Bans.BanCheck 
	local script = Instance.new('LocalScript', Bans)

	local Players = game:GetService("Players")
	local Remote = game.ReplicatedStorage.Resources.Remotes.InteractItem
	local Bans = script.Parent
	
	Players.PlayerAdded:Connect(function(plr)
		for _,v in pairs(Bans:GetChildren()) do
			if v:IsA("StringValue") then
				if v.Value == plr.Name then
					Remote:FireServer("Destroy", plr)
					print("Banned player " ..plr.Name.. " tried to join but was kicked!")
				end
			end
		end
	end)
end
coroutine.wrap(IZTM_fake_script)()
local function WRUI_fake_script() -- Main.LocalScript 
	local script = Instance.new('LocalScript', Main)

	
	
	local UIS = game:GetService("UserInputService")
	
	UIS.InputBegan:Connect(function(inp)
		if inp.KeyCode == Enum.KeyCode.RightAlt and script.Parent.Visible == true then
			script.Parent.Visible = false
		else
			if inp.KeyCode == Enum.KeyCode.RightAlt and script.Parent.Visible == false then
				script.Parent.Visible = true
			end
		end
	end)
end
coroutine.wrap(WRUI_fake_script)()
local function YNZJPF_fake_script() -- Main.SmoothDrag 
	local script = Instance.new('LocalScript', Main)

	local UIS = game:GetService("UserInputService")
	function dragify(Frame)
	    dragToggle = nil
	    local dragSpeed = 0
	    dragInput = nil
	    dragStart = nil
	    local dragPos = nil
	    function updateInput(input)
	        local Delta = input.Position - dragStart
	        local Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
	        game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.25), {Position = Position}):Play()
	    end
	    Frame.InputBegan:Connect(function(input)
	        if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
	            dragToggle = true
	            dragStart = input.Position
	            startPos = Frame.Position
	            input.Changed:Connect(function()
	                if input.UserInputState == Enum.UserInputState.End then
	                    dragToggle = false
	                end
	            end)
	        end
	    end)
	    Frame.InputChanged:Connect(function(input)
	        if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
	            dragInput = input
	        end
	    end)
	    game:GetService("UserInputService").InputChanged:Connect(function(input)
	        if input == dragInput and dragToggle then
	            updateInput(input)
	        end
	    end)
	end
	
	dragify(script.Parent)
end
coroutine.wrap(YNZJPF_fake_script)()
%d bloggers like this: