Startergui isn't working for me? it says it isnt a valid member of playergui
Asked by
6 years ago Edited 6 years ago
when I touch the part it says shop isn't a valid member of playergui
script.Parent.Touch.Touched:connect(function(hit)
if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil then
game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.Shop.Shop.Visible = true
end
end)
and when i try this it only comes up with FreeCamera
for i,v in pairs(game.Players.6LB0.PlayerGui:GetChildren()) do
print(v.Name)
end