Roblox Fe Gui Script Link
local button = script.Parent local remote = game.ReplicatedStorage:WaitForChild("MyRemoteEvent") button.MouseButton1Click:Connect(function() remote:FireServer("SpeedBooster") -- Tell server what we want print("Request sent to server!") end) Use code with caution. Copied to clipboard 2. The Server Script
event.OnServerEvent:Connect(function(player, action) -- Basic validation: only accept expected string values if type(action) ~= "string" then return end if action ~= "Kill" and action ~= "Respawn" then return end onAction(player, action) end) roblox fe gui script
-- LocalScript inside GUI Button local remote = game.ReplicatedStorage.KillRequest script.Parent.MouseButton1Click:Connect(function() remote:FireServer() end) -- ServerScript in ServerScriptService local remote = game.ReplicatedStorage.KillRequest local COOLDOWN = 3 local lastUse = {} local button = script