So I was messing around with Core-scripts from the GitHub and I came across the chat.lua and i followed the instructions but seems like i get a require error and this is what the instructions says:
"-- NOTE: IF YOU WANT TO USE THIS CHAT SCRIPT IN YOUR OWN GAME: -- 1) COPY THE CONTENTS OF THIS FILE INTO A MODULE -- 2) CREATE A LOCALSCRIPT AND PARENT IT TO StarterGui -- 3) IN THE LOCALSCRIPT require() THE CHAT MODULE YOU MADE IN STEP 1 -- 4) CONFIGURE YOUR PLACE ON THE WEBSITE TO USE BUBBLE-CHAT -- 5) SET THE FOLLOWING TWO VARIABLES TO TRUE local FORCE_CHAT_GUI = false local NON_CORESCRIPT_MODE = false -- 6) (OPTIONAL) PUT THE FOLLOWING LINE IN A SERVER SCRIPT TO MAKE CHAT PERSIST THROUGH RESPAWNING -- game:GetService('StarterGui').ResetPlayerGuiOnSpawn = false"
And I did so and I get a required error Wounding if anyone knows how to fix this?
"04:01:58.206 - Attempted to call require with invalid argument(s).
04:01:58.207 - Stack Begin
04:01:58.207 - Script 'Players.Player1.PlayerGui.Require', Line 2
04:01:58.208 - Stack End>
My require script is in Starter gui.
game:GetService('StarterGui').ResetPlayerGuiOnSpawn = false
require(game.Chat.Chat)

5 comments
is game.Chat.Chat a module script?
Pretty sure but i could be wrong. in the chat menu the second chat is a module script.
Can you check that it is a module script.
It is a module script.
The only reason you can get a "Call require with invalid argument(s)" is if its: 1. RobloxLocked, 2. Not a modulescript.