How would I go over about making an announcement system?
I have a ScreenGui that gets cloned into the player’s StarterGui if their username is the admins;
I also have another GUI with a little dropdown for the text.
But because the announceUi is only available to admins i have to make another one ( realAnnouncement) and I am thinking I should go first by having the realAnnouncement read for when the textBox inside of announceUi changes and change along with that, and then have whenever the admin clicks “Submit” or “Send” it will tween the realAnnouncement down onto the player screen?
Is that correct? I’m not really sure and I’m 100% sure there is an easier way that I just dont understand or thought of.
Any help & recommendations would be helpful.
Not quite sure what you mean, this could give you an idea though:
for i, v in pairs(game:GetService("Players"):getChildren()) do
local UI = v.PlayerGui.Announcement
UI.Enabled = true
if v.Name == "ADMIN" or v:FindFirstChild("ADMIN_TAG") then
UI.Part1.Transparency = 0 -- or tween in
else
for i, v in pairs(UI:GetChildren()) do
v.Transparency = 0
end
end
end
I want to make the text from the TextBox inside of the announceUi to be the announcement, when the admin hits the send button the announcement will drop down from the top of the screen on all players screens, but they are two different ScreenGui’s.
You could use a RemoteEvent to fire the server from a client (specifically the client performing the announcement), then that same RemoteEvent can fire all clients and the reproduction (replication) of the announcement can be handled locally for each client.