Hi Developers,
Can someone tell me how to make the Frame visible to everyone when I say a command?
You’ll need to use a remote event so everyone can see the frame
I tried but it doesn’t work, the frame was visible only for me!
You would in a basic manner use RemoteEvents for this.
Example:
Server
local RemoteEvent = game.ReplicatedStorage.RemoteEvent
game.Players.PlayerAdded:Connect(function(Player)
Player.Chatted:Connect(function(Message)
if string.lower(Message) == "frame" then
RemoteEvent:FireAllClients()
end
end
end
Client
local RemoteEvent = game.ReplicatedStorage.RemoteEvent
local Frame = ??
RemoteEvent.OnClientEvent:Connect(function()
print("Frame is now visible")
Frame.Visible = true
end)
3 Likes
Which event did you use because that would make a difference. Server to Client, Client Server, Client Client?
Client to Client doesn’t exist.
The wiki says there is? (30charrrss)
Let’s continue in DMs to not flood this thread.
Thanks, It works!