so I want it that when you join the game the text randomizes between certain letters, I have done what should have worked and I see no problems with it but I need help with it
1 | local text = script.Parent.Text |
2 | local Players = game:GetService( "Players" ) |
3 |
4 | Players.PlayerAdded:Connect( function (player) |
5 | text.Value = math.random( "A" , "B" , "C" , "D" , "E" ) |
6 | end ) |
You should be using text.Text and you can only use math.random for numbers.
1 | local text = script.Parent.Text |
2 | local Players = game:GetService( "Players" ) |
3 | local myLetters = { "A" , "B" , "C" , "D" , "E" } |
4 |
5 | Players.PlayerAdded:Connect( function (player) |
6 | text.Text = math.random( 1 ,#myLetters) |
7 | end ) |