I want to make when a player chats in the chat. It runs the script and it passes it to a gui something like this
The problem I manually added the name so I want to add the name to see who is talking
for _, v in pairs(peopleallowed) do
if v == player.Name then
name.Text = player.Name
Any help will be appreciated
Players.manuelprocrack.PlayerGui.Dialog.Frame.Text.DisplayText:25: attempt to index string with 'Text' `
I don’t think there is anything wrong with the script, are you using another ui to display the text other than the one with the white background?
Can I see what the displayDialouge function says?
I forgot to mention the error oops
Players.manuelprocrack.PlayerGui.Dialog.Frame.Text.DisplayText:25: attempt to index string with 'Text'
Its a typewritting effect nothing special
Just detect the player.Name and send it to the ui text label right?
That is the part where the error happens
Yes, but where did you define
name, try script.Parent.Text = player.Name
From the player name? player.Name?
Your trying to check the player name, and change the text of the gui label to the name of the player name right?
The Solution was i was trying to indexing with a in built property so roblox though that name was a property so it index to nil so I just changed the variable name and it now works thanks for the help!