of     1   

friendlyBoy15
#141072320Monday, July 21, 2014 5:44 PM GMT

The code below is meant to give the SlectionBox Adornee to the Target. ERROR: Players.Player1.Backpack.Pickup_Check:14: bad argument #3 to 'Adornee' (Object expected, got string) Code: Player = game.Players.LocalPlayer mouse = Player:GetMouse() GrabValue = Player.Backpack.Grab_.V_Grab mouse.Move:connect(function() local Target = mouse.Target if Target ~= nil then if Target.Name == "PickupItem_" or Target.Name == "Bag" then Player.PlayerGui.SelectionBox.Adornee = Target Player.Backpack.Grab_.Disabled = false Player.PlayerGui.G_Hint.MainFrame.Visible = true else Player.PlayerGui.SelectionBox.Adornee = "" Player.Backpack.Grab_.Disabled = true Player.PlayerGui.G_Hint.MainFrame.Visible = false GrabValue.Value = 0 end end end) GrabValue.Changed:connect(function() if GrabValue.Value == 5 then local Target = mouse.Target if Target ~= nil then Target:Destroy() end end end)
sbk28
#141072416Monday, July 21, 2014 5:46 PM GMT

try using nil instead of ""
Zawie
#141073418Monday, July 21, 2014 5:57 PM GMT

To make selection boxes apear you have to set the Adornee to the part Like this: SelectionBox.Adornee = Part
Zawie
#141073478Monday, July 21, 2014 5:57 PM GMT

Wait nevermind you did that...
C_Sharper
#141073621Monday, July 21, 2014 5:59 PM GMT

Player.PlayerGui.SelectionBox.Adornee = nil Instead of Player.PlayerGui.SelectionBox.Adornee = ""
friendlyBoy15
#141074745Monday, July 21, 2014 6:13 PM GMT

when i switch nil instend of "" now i have a problem with G_Hint is not a valid member of PlayerGui

    of     1