So before I changed the first line of the first script the gui buttons worked, but the gui itself wouldn't show up in a clone of the tool, only the first one. Now the gui shows everytime, but the buttons don't work. This was the first line before I changed it
Picture = game.Workspace.Makeabook.Picture
Heres the script for the tool
local Picture = game.Workspace.Makeabook.Picture:Clone() function onEquippedLocal(mouse) Player = game.Players.LocalPlayer Picture.Parent = Player.PlayerGui end function onUnS() selected = false Picture.Parent = script.Parent end script.Parent.Equipped:Connect(onEquippedLocal) script.Parent.Unequipped:Connect(onUnS)
and here's the code for one of the gui buttons
local Base = script.Parent.Parent.Parent local Button = script.Parent local MyPage = Button.Parent local ShowPage1 = MyPage.Parent:findFirstChild("Page1") local ShowPage2 = MyPage.Parent:findFirstChild("Page2") function temp() MyPage.Visible = false ShowPage1.Visible = true ShowPage2.Visible = true end Button.MouseButton1Click:connect(temp)
I figured it out. I just needed to change the scripts in the guis to local scripts