of     1   

millakai1236573
#227601953Thursday, November 16, 2017 8:12 AM GMT

Hi, I was wondering how a walk up shop would work for example if a player walks up to a shop and a shop gui pops up. Something like the bloxhunt shop
balcktack
#227602579Thursday, November 16, 2017 9:28 AM GMT

a block that is invisible and when a players touches it a gui shows up. how it would work: player = game.players.LocalPlayer gui = player.ScreenGui.shop part = game.workspace.part part.Touched:connect(function(touched) if game.players:FindFirstChild(touched.Parent.Name) then gui.Visible = True end end)
millakai1236573
#227604771Thursday, November 16, 2017 1:10 PM GMT

Okay thank you very much
Goulstem
#227605263Thursday, November 16, 2017 1:54 PM GMT

He has the right idea with the Touched event on the client, but you must compare the Touched event's parameter with the client to determine if it's actually YOU who touched. --LocalScript local plrs = game.Players; local plr = plrs.LocalPlayer; local gui = script.Parent; local part = workspace.part part.Touched:Connect(function(hit) local plrThatTouched = plrs:GetPlayerFromCharacter(hit.Parent); if plrThatTouched == plr then gui.Visible = true; end end)

    of     1