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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help - Dont know what to call the title

Previous Thread :: Next Thread 
jetlogan is not online. jetlogan
Joined: 05 May 2010
Total Posts: 1423
13 Oct 2013 01:04 PM
wait()
repeat wait() until game.Players.LocalPlayer
repeat wait() until game.Players.LocalPlayer.PlayerGui
repeat wait() until game.Players.LocalPlayer.Backpack

local TimePlaying
local ItemEquipedRight
local ItemEquipedLeft
local Zone
local Inventory
local Speed
local Health
local Hunger
local Thirst
local BlinkRate
local ClosestObject

function updateTimePlayingValue()
TimePlaying = TimePlaying + 1
print(tostring(TimePlaying))
end

coroutine.resume(coroutine.create(updateTimePlayingValue))

Shouldn't it print something?
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
13 Oct 2013 01:06 PM
Take out the last 2 repeat waits, they are unnecessary and probably why it isn't running the coroutine.
Report Abuse
jetlogan is not online. jetlogan
Joined: 05 May 2010
Total Posts: 1423
13 Oct 2013 01:08 PM
doesn't work
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
13 Oct 2013 01:10 PM
coroutine.resume(coroutine.create(updateTimePlayingValue())

^
There's also some other issues but it should run now
Report Abuse
jetlogan is not online. jetlogan
Joined: 05 May 2010
Total Posts: 1423
13 Oct 2013 01:13 PM
okay, now it says its nil on line 20
Report Abuse
lordrambo is not online. lordrambo
Joined: 16 Jun 2009
Total Posts: 20628
13 Oct 2013 01:13 PM
actually:

repeat wait() until game.Players.LocalPlayer:FindFirstChild("PlayerGui")

local TimePlaying
local ItemEquipedRight
local ItemEquipedLeft
local Zone
local Inventory
local Speed
local Health
local Hunger
local Thirst
local BlinkRate
local ClosestObject

function updateTimePlayingValue()
TimePlaying = TimePlaying + 1
print(tostring(TimePlaying))
end

coroutine.resume(coroutine.create(updateTimePlayingValue())) -- you forgot the () entirely
Report Abuse
jetlogan is not online. jetlogan
Joined: 05 May 2010
Total Posts: 1423
13 Oct 2013 01:18 PM
but what about line 17 now, still doesn't work
Report Abuse
jetlogan is not online. jetlogan
Joined: 05 May 2010
Total Posts: 1423
13 Oct 2013 01:26 PM
bumpo
Report Abuse
jetlogan is not online. jetlogan
Joined: 05 May 2010
Total Posts: 1423
13 Oct 2013 02:25 PM
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