i am trying to make a script where it shows a gui when you activate a proxmity prompt but it isnt working

this is in a local script inside of the proximity prompt

local px = script.Parent

px.Triggered:Connect(function()
	game.ReplicatedStorage["Blacksmith shop"].Parent = game.Players.LocalPlayer.PlayerGui
	
end)


4 comments

0

Is it working just the first time you trigger it? or not at all?

0

not at all

0

please help me with this

1

i think the problem is that it is a local script, and doesnt run in workspace. try putting it in the StarterGui, and change px to reference the proximity prompt from ther.