i have been trying to do this for a while but every tutorial on youtube does not work and i need help i dont know how to do this but this is the last script i entered
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players.LocalPlayer.ScreenGui.Frame.Visible=true
end
end)
idk what to do for this and its really annoying going from tutorial after tutorial and them not working. if somebody can get me a working script that would be really helpful

2 comments
btw im trying to make a simulator shop
Make sure you're using a local script for this and if you're going find the frame the way you're finding it instead of "game.Players.LocalPlayer.ScreenGui.Frame.Visible = true" do "game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = true"