So this localscript is suppost to choose random quotes and send them client rise through a remote event. It doesn't show when I play the actual game but when I test in studio it works. It says player must be a player object.
local m1 = math.random(0, 1000) local m2 = math.random(m1, m1*2) local ans = m1*m2 local choice = { [1] = {"Join Red Dev Studio for cool perks and updates on the game!"}, [2] = {"The version of this server is version 2.0."}, [3] = {"Did you know "..m1.." x "..m2.." = "..ans.."?"}, [4] = {"The version of this server is version ".. game.Workspace.GameSettings.GameVersion.Value}, [5] = {"If you find a bug/glitch please report it to us via the suggestions."}, [6] = {"Please fallow our rules and roblox's rules too!"}, [7] = {"Say 'money' for a chance for you to get double your cash or loose half of your cash! (It's a 10% chance)"}, } while wait(0.1) do wait(math.random(0.1, 0.1)) local ch = choice[math.random(1,#choice)] print("MEMES") game.ReplicatedStorage.ServerChatEvents.ServerEvent:FireClient(game.Players.LocalPlayer, ch[1]) end