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

What is wrong with this ClickDetector script?

function open()
	script.Parent.Parent.Parent.Parent.Items.NightVision.Value = true
	game.StarterGui.ToolBar.Inventory.NIGHTVISION.nv.Value = true
end
script.Parent.MouseClick:connect(open)

For some reason, the script isn't working... can anyone figure it out? Thanks! (Sorry for my -7 reputation... a lot of people have been down voting my stuff for no reason)

2 comments

0

Upvote to get you back on track. Just remember to keep your questions relevant and to have an honest attempt! Can you tell me where this script is located?

0

I will put a link into this post for the location.

1 answer

✓ Accepted answer

Possibility 1: You are not getting to the value correctly Possibility 2: The NightVision value is not a BoolValue Possibility 3: You might be trying to access the player's backpack; not the StarterPack.

If Possibility 3 is correct, please tell me and I will try to write a code for you below.

If my answer helped you, accept and upvote it.

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