Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I don't understand this, may you help?

Asked by
Andorks 23
9 years ago

I keep getting the error code "Menu is not a valid member of ScreenGui." Also the donating thing doesn't work. I believe it could be because of the Menu thing, but I am not sure. Here is the explorer: http://prntscr.com/7zzw9z The Gui is in StarterGui, also.

local menu = script.Parent.Menu
local menub = script.Parent.Menu
local donateb = menu.Donate
local adminb = menu.Admin
local helpb = menu.Teams
local updateb = menu.Updatel
local player = script.Parent.Parent.Parent
local adminmenu = script.Parent.AdminMenu
local TeamMenu = script.Parent.TeamMenu
local updatelog = script.Parent.UpdateLog
function donatebc() --donate button
    Game:GetService("MarketplaceService"):PromptPurchase(player, 275739274)--id
end


function teambc() --team button
    TeamMenu.Visible = true
    menu.Visible = false
end
function updatebc() --update log
    updatelog.Visible = true
    menu.Visible = false
end
script.Parent.Menu.Updatel.MouseButton1Click:connect(updatebc) --update button
script.Parent.Menu.Teams.MouseButton1Click:connect(teambc) --team button
script.Parent.Menu.Donate.MouseButton1Click:connect(donatebc) --donate button
0
I don't help with stolen scripts. ObscureEntity 294 — 9y
0
This isn't stole, I hand made it.. Andorks 23 — 9y

Answer this question