The script is supposed to destroy the screen gui, "ClassPicker," no error just wont work.

local Player = game.Players.LocalPlayer
function leftClick()
	Player.PlayerGui.ClassPicker:destroy()
	game.StarterGui.ClassPicker:destroy()
end

function rightClick()
	print("Right mouse click")
end

script.Parent.MouseButton1Click:Connect(leftClick)
script.Parent.MouseButton2Click:Connect(rightClick)