local UpdateTextGui = game.ReplicatedStorage.MakeAuctionVisible
-- Allow the clients to request the data immediately
UpdateTextGui.OnServerEvent:connect(function(player)
UpdateTextGui:FireAllClients()
end)
server
script.Parent.MouseButton1Click:Connect(function()
print("Auction clicked")
-- We named our RemoteEvent "UpdateTextGui"
local UpdateTextGui = game.ReplicatedStorage.MakeAuctionVisible
local player = game.Players.LocalPlayer
-- Hook into the event and change the GUI text
UpdateTextGui.OnClientEvent:connect(function()
print("event executed")
player.PlayerGui.Auction.Frame.Visible = true
player.PlayerGui.Auction.Frame.Lots.Text = "Islamabad"
UpdateTextGui:FireServer()
print("Fire Server")
end)
end)
local I want to fire server from the player and the player to fire all the clients, for a gui to be visible for everyone. I dont want to loop through all players to make this happen. I want it done using remote events. Wat is my mistake? Why isnt my script working? (I want this to happen when a text button is clicked)
