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

Help with ".."?

usally .. would add letters or numbers to something but it doesn't work here

local Frame = 1
player.Backpack.ChildAdded:connect(function(instance)
	local name=instance.Name
	if name==game.Lighting.E:GetChildren()[1].Name or name==game.Lighting.Q:GetChildren()[1].Name or name==game.Lighting.R:GetChildren()[1].Name or name==game.Lighting.F:GetChildren()[1].Name or name==game.Lighting.G:GetChildren()[1].Name then
		print(instance.Name .. " added to the backpack by item Clone")
	else
    	print(instance.Name .. " added to the backpack by item pickup")
		player.PlayerGui.Invintory.Frame .. Frame.Frame1.Visible = true
	end
end)

it puts the red line under the .. saying expected = but i thought the .. added stuff but it doesn't here why

1 answer

✓ Accepted answer

Well to be honest, You didn't post a line for the error so this is where I think it is and also I have no idea what you're attempting to accomplish here so uh yeah.

 player.PlayerGui.Invintory.Frame .. Frame.Frame1.Visible = true

You can't just define a certain path then go ".." and change some other frame. That defined path has to have some sort of ending event/action.

and ps this falls under variadic functions, link:

http://wiki.roblox.com/index.php?title=...

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