of     1   

ledger
#40293811Monday, January 03, 2011 11:29 PM GMT

'Search.Character.Torso.Position' ---LINE 6 That's a part of my script. The output says: Players.Player.PlayerGui.Gadgets.Tray.Messenger.Send.Wifi:6: attempt to index global 'Search' (a nil value) Search is: Search = game.Players:findFirstChild(Receiver)
egghead
#40293987Monday, January 03, 2011 11:31 PM GMT

Your other post answers this. Reciever isn't a proper arg of :findFirstChild() so the game doesn't recognize it as a valid object, thus giving you the error.
ledger
#40294757Monday, January 03, 2011 11:39 PM GMT

Everything before it is working...So...
ledger
#40295739Monday, January 03, 2011 11:49 PM GMT

Bump.
ledger
#40296694Monday, January 03, 2011 11:59 PM GMT

Bump.
abx1
#40296787Monday, January 03, 2011 11:59 PM GMT

If Search doesn't exist, then it would error.
ChatR
#40296848Tuesday, January 04, 2011 12:00 AM GMT

what exactly is 'Receiver'
peter99
#40296983Tuesday, January 04, 2011 12:01 AM GMT

Have you tried making Search a local variable?
peter99
#40297130Tuesday, January 04, 2011 12:03 AM GMT

Like this. "local Search = game.Players:FindFirstChild("Receiver")"
ledger
#40297246Tuesday, January 04, 2011 12:04 AM GMT

I might as well give you guys the whole thing: function SendMessageViaWifi() local Player = script.Parent.Parent.Parent.Parent.Parent.Parent.Character local Tower = Workspace:findFirstChild("WifiTower") local Receiver = script.Parent.Parent.NameInput.Text local Search = game.Players:findFirstChild(Receiver) if (Player.Torso.Position - Tower.Blinker.Position).Magnitude <= Tower.SignalStrength.Value and (Search.Character.Torso.Position - Tower.Blinker.Position).Magnitude <= Tower.SignalStrength.Value then local Sender = script.Parent.Parent.Parent.Parent.Parent.Parent local Message = script.Parent.Parent.MessageInput.Text Search.PlayerGui.Gadgets.Tray.Messenger.MessageSlot.Text = Message.." From: "..Sender repeat wait(.5) Search.PlayerGUI.Gadgets.Tray.Messenger.Inbox.BackgroundColor3 = Color3.new(255,0,0) wait(.5) Search.PlayerGUI.Gadgets.Tray.Messenger.Inbox.BackgroundColor3 = Color3.new(255,255,255) until script.Parent.Parent.Inbox.Selected == true else script.Parent.Parent.Notification.Visible = true end end script.Parent.MouseButton1Down:connect(SendMessageViaWifi) Alright. No more snips. :D

    of     1