So I have this code and I keep getting an error saying "player is not a valid member of data model" anyone know a way I can fix this?

game.Workspace.Teleporters.blueshop.touched:connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.parent)then game.ReplicatedStorage.ShowGUI:FireClient(game.player:GetPlayerfromCharacter(hit.parents)) end end)

1 comment

0

You attempted to index "game.player" instead of "game.Players" on your third line.