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

Help with ".."?

Asked by
qwrn12 85
8 years ago

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

Log in to vote
0
Answered by
NotSoNorm 777 Moderation Voter
8 years ago

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=...

Ad

Answer this question