This has been flipping me for hours.
On Replicated Storage: LoadingScreenMarkAsReadyEvent [RemoteEvent]
On Local Script:
local LoadingScreenMarkAsReadyEvent = game.ReplicatedStorage:WaitForChild('LoadingScreenMarkAsReadyEvent) local Team1 = {} local Team2 = {} local teamName = "Red" local player = game.Players.LocalPlayer print(player.Name) --/Comment1 print(teamName) --/Comment2 print(teamName .. " ") --/Comment3 LoadingScreenMarkAsReadyEvent:FireServer(player, teamName, Team1, Team2)
Comment1: Consteleo
Comment2: Red
Comment3: Red
On Server Script:
local LoadingScreenMarkAsReadyEvent = game.ReplicatedStorage:WaitForChild('LoadingScreenMarkAsReadyEvent) local function LoadingScreenMarkAsReady(localPlayer, teamName, Team1, Team2) print(localPlayer.Name) --/Comment1 print(teamName) --/Comment2 print(teamName .. " ") --/Comment3 end LoadingScreenMarkAsReadyEvent:OnServerEvent:Connect(LoadingScreenMarkAsReady)
Comment1: Consteleo
Comment2: Consteleo //???
Comment3: Error: Attempt to concatenate Instance with string. //?????????????
There is no line jump in my actual code. It's just in the preview of ScriptingHelpers Lua code block