generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Works, Does not display...

Previous Thread :: Next Thread 
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
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 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Feb 2012 08:18 AM
[ Content Deleted ]
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
17 Feb 2012 08:25 AM
No, I'm saying if V == nil then run No boat else etc...
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
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
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
17 Feb 2012 09:20 AM
Bump.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image