|
| 17 Feb 2012 08:09 AM |
Boats = {"HawkV8", "Eagle"} while wait(1) do for i, v in pairs (Boats) do if game.Players.LocalPlayer.Character:FindFirstChild(v, nil) then script.Parent.Text = "Current boat; None" else script.Parent.Text = "Current boat; "..v end end end
It always says None even when I am in the boat and it puts the boat in the character...
Any Ideas? |
|
|
| Report Abuse |
|
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
|
| 17 Feb 2012 08:25 AM |
| No, I'm saying if V == nil then run No boat else etc... |
|
|
| Report Abuse |
|
|
|
| 17 Feb 2012 08:51 AM |
This works, But when I'm in a Eagle it does not...
local Boats = {"Hawk","Eagle"} for i, v in pairs (Boats) do while wait() do if game.Players.LocalPlayer.Character:FindFirstChild(v) == nil then script.Parent.Text = "Current boat; None" else script.Parent.Text = "Current boat; "..v end end end |
|
|
| Report Abuse |
|
|
| |
|