Ive tried this script but it doesn't seem to work:
script.Parent.MouseButton1Down:Connect(function() game.StarterGui.PurchaseGUI.Frame=true end
Make sure this is in a local script in StarterGui, and that you replace the variable.
local part = game.Workspace.Part -- Your part here local playerGui = game.Players.LocalPlayer:WaitForChild("PlayerGui") part.ClickDetector.MouseClick:Connect(function() playerGui.PurchaseGUI.Enabled = true end)
The PlayerGui is what the players see, so you need to put that there to enable it for a certain player.
ClickDetector use MouseClick Event, and you could use the parameter:
script.Parent.ClickDetector.MouseClick:Connect(function(PlayerWhoClickedNotCharacter) PlayerWhoClickedNotCharacter.PlayerGui.PurchaseGUI.Enabled = true end)
Also i don't understand what u mean by .PurchaseGUI.Frame, so i changed it to .PurchaseGUI.Enabled