Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

ArcticFoxGui is not a valid member of ScreenGui?

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

2 comments

0

Can you post your full code in code blocks?I cant see whole lines!

0

I did

1 answer

✓ Accepted answer

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").

1 comment

0

Thanks, helped me alot

This discussion is preserved as it was. New answers, comments, and votes are closed.