Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to fix "Player is not a valid member of DataModel"?

Asked by 3 years ago

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)

0
You attempted to index "game.player" instead of "game.Players" on your third line. Benbebop 1049 — 3y

Answer this question