I have a script that's supposed to display a parts name in a text GUI. This is particularly useful because the name could be different every time. However, I always get returned with "bad argument #3 (string expected, got nil)"
local name = game.Workspace.key.part.Name
wait(0.2) -- ignore this
script.Parent.dialogue.Text = name

3 comments
Could you provide an image of the "Explorer" tab of your Roblox Studio? I think that would help pinpoint the problem here.
Thoroughly check through your "Parents" and "Childs" to make sure that they all line up, if that helps.
here, i think its correct. either that or im being dumb ahah https://i.imgur.com/0I2wRPh.png