I think I should add something like function or something like that
local clickdetector = workspace.PassportDealer.ClickDetector
local GUI = game.StarterGui.PassportGUI
local tool = game.ServerStorage.Passport
clickdetector.MouseClick:Connect(function()
GUI.Enabled = true
end)
GUI.Frame.X.MouseButton1Click:Connect(function()
GUI.Enabled = false
end)
GUI.Frame.ImageButton.MouseButton1Click:Connect(function()
tool.Parent = game.StarterPack
end)

1 comment
Thank you.