My goal is to have this print out a message in a gui and this is code from my main game script so it can end up guiding the game but I need a place to keep the players informed on how my game works and how long each round has. Line 5 has the place the nil error is:
local display
game.Workspace:FindFirstChild("valueHold", display)
wait (10)
display.Value = "Welcome to Game. thanks for joining"
print "Initial Message was set"
--wait(10)
--display.Value = "Game still being developed, stay tuned"
--print "Secondary message set"
local display = script.Parent
local messa
game.Workspace:FindFirstChild("StringValue", messa)
local messageToDisplay = messa.Value
local function messageChange(messageToDisplay)--if the value is changed in the valueHold then do the following
local messageTyped = {} --attempts to put message into a table
for i,sub in pairs(messageToDisplay) do
messageTyped[i] = messageToDisplay:sub(i,i)
print (messageTyped)
end
for i,letter in pairs(messageTyped) do --loop set up
local finalSend
finalSend = finalSend + letter --for each letter in message write and then the next and so on
display.Text = finalSend
wait(.2)
end
print "Message Successfully Displayed"
end
Thank you for the help! P.S. I know the code is a little messy, but I'm learning and it's in the works :)

2 comments
Yes it was itentional! Have to put that later on haha thanks!
No problem! Always happy to help!