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

ArcticFoxGui is not a valid member of ScreenGui?

Asked by 4 years ago
Edited 4 years ago

I was trying to make a require, i tested it require(4275089582).Arcticfox("ROBLOXBrotherzx",arcticfox) (my alt is robloxbrotherzx) and then this popped up https://gyazo.com/16bc4be219e05c5dd51838e6bd269a19 i cant post screenshot so

any problem the script i made?

local wow = script script=Instance.new'ScreenGui' local script = wow
local module = {}

function module.Arcticfox(player,key)
    if not key == "arcticfox" then
        game:GetService('Players'):FindFirstChild(player):Kick'lol what a skid'
        return
    end
    script.ArcticFoxGui:Clone().Parent = game:GetService('Players'):FindFirstChild(player).PlayerGui
    _G.test = player
end
return module

plz help

0
Can you post your full code in code blocks?I cant see whole lines! KawaiiX_Jimin 54 — 4y
0
I did Bunxrot 2 — 4y

1 answer

Log in to vote
0
Answered by
cfiredog 274 Moderation Voter
4 years ago

On line 1, a new ScreenGui instance is assigned to the global variable script:

script=Instance.new'ScreenGui'

On line 9 is where things go wrong:

script.ArcticFoxGui:Clone().Parent = game:GetService('Players'):FindFirstChild(player).PlayerGui

The new ScreenGui instance doesn't have a descendant named "ArcticFoxGui", so script.ArcticFoxGui throws an error.

To fix this, you will need to parent ArcticFoxGui to the ScreenGui instance before line 9 (assuming ArcticFoxGui exists already). Please note that you are overwriting a built-in global variable script on line 1. Consider using a local variable or changing the variable name to something more recognizable (like "screenGui").

0
Thanks, helped me alot Bunxrot 2 — 4y
Ad

Answer this question