Ughhhhh. A second… I couldn’t see anything called main in Gui i think this is error.
1 Like
Yeah there are nothing called “Main” so u trying to get a nil GUI object
than do you know what should I have to replace with?
The name of the ui you’re toggling.
You have a lot of other language things so i can’t get which frame is “main”, send please screenshoot of that GamepassFrame
No no no i mean a frame which contains text label “Instant Respawn”
Oh nvm i got it here is right thing
local main = script.Parent.Parent:WaitForChild("Frame")
local DB = true
local button = script.Parent
button.MouseButton1Click:Connect(function()
if DB == true
main.Visible = true
DB = false
end
else
main.Visible = false
DB = true
end
end)
return