script.Parent.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then local playergui = player:WaitForChild("PlayerGui") if playergui then local shophud = playergui:WaitForChild("ShopHUD") if shophud then local shopframe = shophud:WaitForChild("ShopFrame") if shopframe then shopframe.Visible = true end end end end end)
This seems to stop at line 6 when I add prints to see where it will stop. Their is no error in the output, and it works on Play Solo, but not on servers or online. Please help.
I'm pretty sure you have clone your gui into the player I think .