im making a dialogue script that changes the dialogue box when an image button is clicked im getting the error in the title
1 | while true do |
2 | wait( 0.1 ) |
3 | game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.ImageButton.MouseButton 1 Down:Connect( function () |
4 | local words = { "Test1" , "Test2" } |
5 |
6 | local wordSelect = words [ math.random( 1 , #words) ] |
7 | game.StarterGui.DialogueGui.Frame.Dialogue.Text = worldSelect |
8 | end ) |
9 | end |
The issue is that you typed "worldSelect" instead of "wordSelect".