So I am working on a game, however I am using Image Buttons, but when I use a script to open another thing with it, it won't open even though everything looks fine and there are no errors.
Here is the original script! All help appreciated!
local players = game:GetService("Players")
local player = players.LocalPlayer
local name = player.Name
local playerGui = player:WaitForChild("PlayerGui")
local gui = playerGui:WaitForChild("Main")
local frame = gui:WaitForChild("MainFrame")
local display = frame:WaitForChild("Player")
local backDis = display:WaitForChild("Background")
local help = frame:WaitForChild("Help")
local openH = help:WaitForChild("Open")
local frameH = gui:WaitForChild("HelpFrame")
local exitH = frameH:WaitForChild("Close")
local rank = frame:WaitForChild("Rank")
local openR = rank:WaitForChild("Open")
local shop = frame:WaitForChild("Shop")
local openS = shop:WaitForChild("Open")
while true do
wait(0.03)
display.Text = name
backDis.Text = name
wait(0.03)
end
help.MouseButton1Click:connect(function(onClicked)
wait(0.03)
if frameH.Visible == false then
frameH.Visible = true
else
frameH.Visible = false
end
end)
exitH.MouseButton1Click:connect(function(onClicked)
wait(0.03)
frameH.Visible = false
end)
