-- Services local Players = game:GetService("Players")
-- Example function to handle button click local function onButtonClick() -- Handle button click print("Button clicked!") end
-- Connect to PlayerAdded event Players.PlayerAdded:Connect(function(player) -- Wait for the character to spawn (optional, depends on your use case) player.CharacterAdded:Wait() -- Create GUI for player createGUI(player) end)
-- Services local Players = game:GetService("Players")
-- Example function to handle button click local function onButtonClick() -- Handle button click print("Button clicked!") end roblox fe gui script better
-- Connect to PlayerAdded event Players.PlayerAdded:Connect(function(player) -- Wait for the character to spawn (optional, depends on your use case) player.CharacterAdded:Wait() -- Create GUI for player createGUI(player) end) roblox fe gui script better