Hello everyone, today I made a gui that lets you send a message to the whole server, the problem is, that only the person who send it can see it, the rest of the server can’t, I think I know why, its maybe because its a Local Script, but I dont know how to fix it, if anyone could help, Id be very greatful, thank you!
Here are the scripts:
1st (Announce Script [Local Script])
local frame = script.Parent.Frame
local button = script.Parent
button.MouseButton1Click:Connect(function()
if frame.Visible == true then
frame.Visible = false
else
frame.Visible = true
end
end)
frame.Cancel.MouseButton1Click:Connect(function()
frame.Visible = false
end)
frame.Announce.MouseButton1Click:Connect(function()
local message = script.Parent.Frame.Announcement.Text
game.ReplicatedStorage.Announce:FireServer(message)
end)
The scripts itself are looking pretty great. Isn’t the issue that the script.Parent.Frame or script.Parent.Frame.Message is not getting visible? If this is the issue, then this edited version of the 2nd LocalScript might fix the issue.
The frame with the message is visible, it works fine, the issue is that only the person who sent the message can see it, the rest of the server can’t. And I want to all the server to see it, like a “Server Message”, but ill try your script anyway
I modified the scripts with what you said, and I am still the only one to see the message, the rest of the server can’t, here are the scripts, in case you see an error.
It doesnt work, I think i forgot to tell you guys something, I dont know if this will be useful. But this is an admin panel, which only the admin team have acces. Its from there that the messages are sent.
Well, if this is a admin panel all exploiter can currently call the remote because is not having any security in the server side . The rule one with the events Never trust the client
Here is a sample example of security
local users = { -- using the user id
-1, -- Player1
39842, -- Random number
}
function isAdmin(userID)
for i, currID in pairs(users) do
if userID == currID then
return true
end
return false
end
end
Otherwise I can’t help you, the script works, it probably has something wrong with your code / gui but for me everything works