local button = script.Parent
local button1 = script.Parent.SettingsBackground.Button1
local button2 = script.Parent.SettingsBackground.Button2
local button3 = script.Parent.SettingsBackground.Button3
local button4 = script.Parent.SettingsBackground.Button4
local button5 = script.Parent.SettingsBackground.Button5
local open = false
local VersionFrame = game.ReplicatedStorage.GUI.Version
script.Parent.Gear.MouseButton1Click:Connect(function(player)	
end)

button1.MouseButton1Click:Connect(function(player)
	print("Test")
	if VersionFrame.Parent==game.ReplicatedStorage then
	game.ReplicatedStorage.GUI.Version.Parent = script.Parent.Parent.SettingsBackground
	print("Done")
	else
		end
end)
button2.MouseButton1Click:Connect(function(player)
	
end)
button3.MouseButton1Click:Connect(function(player)
	
end)
button4.MouseButton1Click:Connect(function(player)
	
end)
button5.MouseButton1Click:Connect(function(player)
	
end)

For some reason this script doesnt want to work when a button is clicked

2 comments

0

Is there any output, errors or otherwise? Does Test print? Is the button enabled, visible and active and all the other GUI magic settings you need for it be considered clickable?

0

Solved it for some reason the buttons were misnamed and i was testing with the wrong set of buttons. Thanks for helping :D