Hiya! Sorry if my title is confusing, I’ll explain more in depth below;
so I’m currently working on a staff-only messaging system which I have not finished yet. When testing, I have noticed that after one message is sent and I go to send another one, when I press it a new template isn’t sent, instead it just edits the previous message, I’ll leave my script below
Any help is appreciated
SendButton.MouseButton1Click:Connect(function()
for i,plr in pairs(game.Players:GetChildren()) do
if plr:GetRankInGroup(Group) >= MinStaffRank then
local NewMessage = MessageTemplate:Clone()
NewMessage.Visible = true
NewMessage.User.Image = "https://www.roblox.com/headshot-thumbnail/image?userId="..plr.UserId.."&width=420&height=420&format=png"
NewMessage.Username.Text = plr.Name
NewMessage.Message.Text = MessagingOptions.Typer.Text
print(NewMessage.Message.Text)
NewMessage.Parent = MessageList
end
end
end)