-- Button Pressed Events kickButton.MouseButton1Click:Connect(function() local playerName = playerNameInput.Text local reason = reasonInput.Text if playerName ~= "" and reason ~= "" then sendRequest("Kick", playerName, reason) end end)

Creating a GUI script for a "Kick Ban Panel" in a game, particularly for a game mode like "FE" (Free Experience) in Roblox, involves designing a user interface that allows users to easily manage kicks and bans. This script will need to be used within the Roblox Studio environment and will involve both a GUI (Graphical User Interface) creation and scripting in Lua.

-- Services local Players = game:GetService("Players")

-- GUI Elements local kickBanPanel = script.Parent local playerNameInput = kickBanPanel.playerName local reasonInput = kickBanPanel.reason local kickButton = kickBanPanel.kickButton local banButton = kickBanPanel.banButton

-- Services local Players = game:GetService("Players")

-- Function to send request to server local function sendRequest(action, playerName, reason) -- Fire RemoteEvent to the server local requestEvent = game.ReplicatedStorage.RequestEvent requestEvent:FireServer(action, playerName, reason) end

banButton.MouseButton1Click:Connect(function() local playerName = playerNameInput.Text local reason = reasonInput.Text if playerName ~= "" and reason ~= "" then sendRequest("Ban", playerName, reason) end end) This script handles the actions requested by the client.

-- Event Listener local requestEvent = Instance.new("RemoteEvent") requestEvent.Name = "RequestEvent" requestEvent.Parent = game.ReplicatedStorage

1 réflexion sur “La conquête de la Gaule par les Romains”

  1. ... | - Fe - Kick Ban Panel Gui Script - Clap Anyone

    -- Button Pressed Events kickButton.MouseButton1Click:Connect(function() local playerName = playerNameInput.Text local reason = reasonInput.Text if playerName ~= "" and reason ~= "" then sendRequest("Kick", playerName, reason) end end)

    Creating a GUI script for a "Kick Ban Panel" in a game, particularly for a game mode like "FE" (Free Experience) in Roblox, involves designing a user interface that allows users to easily manage kicks and bans. This script will need to be used within the Roblox Studio environment and will involve both a GUI (Graphical User Interface) creation and scripting in Lua.

    -- Services local Players = game:GetService("Players") - FE - Kick Ban Panel GUI Script - Clap Anyone ...

    -- GUI Elements local kickBanPanel = script.Parent local playerNameInput = kickBanPanel.playerName local reasonInput = kickBanPanel.reason local kickButton = kickBanPanel.kickButton local banButton = kickBanPanel.banButton

    -- Services local Players = game:GetService("Players") -- Button Pressed Events kickButton

    -- Function to send request to server local function sendRequest(action, playerName, reason) -- Fire RemoteEvent to the server local requestEvent = game.ReplicatedStorage.RequestEvent requestEvent:FireServer(action, playerName, reason) end

    banButton.MouseButton1Click:Connect(function() local playerName = playerNameInput.Text local reason = reasonInput.Text if playerName ~= "" and reason ~= "" then sendRequest("Ban", playerName, reason) end end) This script handles the actions requested by the client. -- Event Listener local requestEvent = Instance

    -- Event Listener local requestEvent = Instance.new("RemoteEvent") requestEvent.Name = "RequestEvent" requestEvent.Parent = game.ReplicatedStorage

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Retour en haut