Look further down for the whole script. But, it’s not updating a value in RepilcatedStorage. I believe I made a simple mistake, but I been working this for a good few hours going on my 5th hour working on this. 2.5 hours of trial and error. Still not working. I been using ROBLOX developer hub to help with a lot of pass errors, but I getting tired of reading things. Sorry for any grammar mistakes.
Part of the script that not working
local n = script.Parent.Parent
local p1 = script.Parent.Parent.p1.Value
local p2 = script.Parent.Parent.p2.Value
local announce = game.ReplicatedStorage:WaitForChild(“AnnouncementText”)
function onclick()
if n.p2.Value ~= “NOTHING” and n.p1.Value ~= “NOTHING” then
if n.p1.Value == “System” then
announce.Value = p2
elseif script.Parent.Parent.p1.Value ~= (“System” or “NOTHING”) then
announce.Value = p1…": "…p2
Whole script
local n = script.Parent.Parent
local p1 = script.Parent.Parent.p1.Value
local p2 = script.Parent.Parent.p2.Value
local announce = game.ReplicatedStorage:WaitForChild(“AnnouncementText”)
function onclick()
if n.p2.Value ~= “NOTHING” and n.p1.Value ~= “NOTHING” then
if n.p1.Value == “System” then
announce.Value = p2
elseif script.Parent.Parent.p1.Value ~= (“System” or “NOTHING”) then
announce.Value = p1…": "…p2
script.Parent.Parent.Done.Visible = false
script.Parent.Parent.Text.Visible = true
local d = script.Parent.Parent.System
d.Script.Disabled = false
d.Selectable = false
d.BackgroundTransparency = 0
d.TextTransparency = 0
d.TextStrokeTransparency = 0
d.Script.Disabled = false
local n = script.Parent.Parent.Message
n.Script.Disabled = false
n.Selectable = false
n.BackgroundTransparency = 0
n.TextTransparency = 0
n.TextStrokeTransparency = 0
script.Parent.Parent.p1.Value = “NOTHING”
script.Parent.Parent.Text.TextBox.LocalScript.Disabled = false
script.Parent.Parent.Visible = false
script.Parent.Parent.Sumbit.Text = “Select Message or System!”
end
end
end
script.Parent.MouseButton1Down:Connect(onclick)