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: Roblox coming up with random errors now?

Previous Thread :: Next Thread 
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 12:35 PM
I have this output:
Wed Sep 07 18:34:47 2011 - Players.digpoe.PlayerGui.TimeGui.TextButton.Script:13: 'do' expected near 'true'
that came from this script:

gui = script.Parent.Text
player = nil
time = {script.Parent.Parent.Hours.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Mins.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Secs.Value}
function timing()
if game.Players:findFirstChild(LocalPlayer) then
player = game.Players:findFirstChild(script.Parent.Name)
else
player = nil
end
if player then
script.Parent.Text = time
end
while wait(1) true do
script.Parent.Parent.Secs.Value = script.Parent.Parent.Secs.Value +1
script.Parent.Text = time
end
while wait (60) true do
script.Parent.Parent.Mins.Value = script.Parent.Parent.Mins.Value +1
end
while wait (3600) true do
script.Parent.Parent.Hours.Value = script.Parent.Parent.Hours.Value +1
end
end

I mean, everything seems OK so I dont understand whats wrong.


Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
07 Sep 2011 12:42 PM
while wait(1) do
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 12:43 PM
I just tried, it came up with the same output.
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
07 Sep 2011 12:50 PM
Change it for all the while loops.
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 12:54 PM
No, now theres no output at all, and it dosent work!
Report Abuse
connordaman is not online. connordaman
Joined: 20 Mar 2011
Total Posts: 2
07 Sep 2011 01:03 PM
same
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 01:42 PM
Bawmpeddy Dawmpedy, Plz help!!
Report Abuse
myrco919 is not online. myrco919
Joined: 12 Jun 2009
Total Posts: 13241
07 Sep 2011 01:45 PM
[ Content Deleted ]
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
07 Sep 2011 01:47 PM
*facenuke*
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 01:49 PM
I didn't call the function? U mean?
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
07 Sep 2011 01:51 PM
You need to call the function in order for it to run...
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 01:52 PM
Call it WHERE?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
07 Sep 2011 02:04 PM
PBumpp

Please
Bring
Up
My
Post
PLEASE!!
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
07 Sep 2011 02:10 PM
you created a function called "timing" so you need to call it by doing this at the end of your script: timing()
Report Abuse
lukasbreki is not online. lukasbreki
Joined: 08 Mar 2010
Total Posts: 13560
07 Sep 2011 02:17 PM
You basically just need to call the function. It's like that in all scripts with a function.
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
07 Sep 2011 02:25 PM
Connection line, or automatically-starting function..
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 09:43 AM
grimm, wher do i need connection line?
Report Abuse
digpoe is not online. digpoe
Joined: 02 Nov 2008
Total Posts: 9092
08 Sep 2011 09:49 AM
Fail with the call script, it said:
Thu Sep 08 15:49:25 2011 - timing is not a valid member of Script
Thu Sep 08 15:49:25 2011 - Script "Players.Player.PlayerGui.TimeGui.TextButton.Script", Line 24

when I added the call function.
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
08 Sep 2011 12:18 PM
gui = script.Parent.Text
player = nil
time = {script.Parent.Parent.Hours.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Mins.Value, script.Parent.Parent[":"].Value, script.Parent.Parent.Secs.Value}

function timing()
if game.Players:findFirstChild(LocalPlayer) then
player = game.Players:findFirstChild(script.Parent.Name)
else
player = nil
end
if player then
script.Parent.Text = time
end
while wait(1) do
script.Parent.Parent.Secs.Value = script.Parent.Parent.Secs.Value +1
script.Parent.Text = time
end
while wait(60) do
script.Parent.Parent.Mins.Value = script.Parent.Parent.Mins.Value +1
end
while wait(3600) do
script.Parent.Parent.Hours.Value = script.Parent.Parent.Hours.Value +1
end
end

wait(5)
timing()
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