my math.random script doesnt work
local ChatService = game:GetService(“Chat”)
local talkpart = script.Parent.Head
local dialog = {“Good morning”,“Hello”,“Greetings”}
–local player = game.Players.PlayerAdded
game.Players.PlayerAdded:Connect(function(Player)
ChatService:Chat(talkpart, math.random(1 ,#dialog)…Player.Name, “White”)
end)