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: What's wrong with this script?

Previous Thread :: Next Thread 
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
15 May 2013 03:32 PM
[ Content Deleted ]
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 03:33 PM
Output?
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
15 May 2013 03:35 PM
[ Content Deleted ]
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 03:38 PM
Try:
while true do
print ("Loop cycle start")
game.Lighting.TimeOfDay = "18:30:00"
wait (5)
game.Lighting.TimeOfDay = "19:00:00"
PlayerGui.NightGui.ItsNight.Visible = true
wait(5)
PlayerGui.NightGui.ItsNight.Visible = false
wait (60)
game.Lighting.TimeOfDay = "19:30:00"
end
Report Abuse
JusticeLym is not online. JusticeLym
Joined: 07 Oct 2011
Total Posts: 261
15 May 2013 03:39 PM
Hahaha...

You need to change the path to your Characters PlayerGui, not the workspace.

-Bump-


Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
15 May 2013 03:42 PM
[ Content Deleted ]
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 03:42 PM
Where is "playerGui" located?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 May 2013 03:43 PM
chao leave right now, you don't know how to script
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 03:43 PM
Explain please, masterblokz.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 May 2013 03:44 PM
while true do
print ("Loop cycle start")
game.Lighting.TimeOfDay = "18:30:00"
wait (5)
game.Lighting.TimeOfDay = "19:00:00"
PlayerGui.NightGui.ItsNight.Visible = true
wait(5)
PlayerGui.NightGui.ItsNight.Visible = false
wait (60)
game.Lighting.TimeOfDay = "19:30:00"
end

^^ you said that
playergui is not defined fool
just leave
that's a horrible attempt at fixing/trolling
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 03:47 PM
WOW dude, you locked your post your so clever. Anyways he didn't tell me where his playergui is located. I have never used GUIs before I assumed playergui was in the same place as startergui. However, because I don't know where one object is I am bad at scripting?
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 May 2013 03:47 PM
didn't mean to lock it
anyways
out pls
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 03:48 PM
No, I have helped more people than you.
Report Abuse
JusticeLym is not online. JusticeLym
Joined: 07 Oct 2011
Total Posts: 261
15 May 2013 03:51 PM
PlayerGui is located in the Player. -game.Players.Player1.PlayerGui-

-Bumb-
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
15 May 2013 03:54 PM
[ Content Deleted ]
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
15 May 2013 04:07 PM
[ Content Deleted ]
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
15 May 2013 04:10 PM
Ironman, get out, you know how to script less than chao.

game.Players.Player
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 04:11 PM
local character = game.Workspace.Character
local player = game.Players:GetPlayerFromCharacter(character)

while true do
print ("Loop cycle start")
game.Lighting.TimeOfDay = "18:30:00"
wait (5)
game.Lighting.TimeOfDay = "19:00:00"
player.PlayerGui.NightGui.ItsNight.Visible = true
wait(5)
player.PlayerGui.NightGui.ItsNight.Visible = false
wait (60)
game.Lighting.TimeOfDay = "19:30:00"

end

Try this and let me know what the output says if it does not work.
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 04:12 PM
That's why he is here ForceSky. If he knew how to script flawlessly he wouldn't be here.
Report Abuse
ForceSky is not online. ForceSky
Joined: 30 Jul 2012
Total Posts: 2379
15 May 2013 04:16 PM
Well, he should know that the PlayerGui is in the Player if he's a scripter.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 May 2013 04:32 PM
Chao that script is still so horrible
and force, he never said he was a scripter. So be quiet, he's here for help.
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 04:32 PM
Well blokz since you are "Le mastr skriptr ftw" why don't you write him a script?
Report Abuse
ironman0001 is not online. ironman0001
Joined: 19 Oct 2008
Total Posts: 15676
15 May 2013 04:35 PM
[ Content Deleted ]
Report Abuse
chaokid9 is not online. chaokid9
Joined: 29 Aug 2008
Total Posts: 6187
15 May 2013 04:39 PM
Maybe try:
players = game.Players:GetChildren()

while true do
print ("Loop cycle start")
game.Lighting.TimeOfDay = "18:30:00"
wait (5)
game.Lighting.TimeOfDay = "19:00:00"
players.PlayerGui.NightGui.ItsNight.Visible = true
wait(5)
players.PlayerGui.NightGui.ItsNight.Visible = false
wait (60)
game.Lighting.TimeOfDay = "19:30:00"

end

I'm still not 100% sure where PlayerGui is located, but the wiki doesn't have much information on it so I am going by what other people have told me.
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
15 May 2013 04:40 PM
That last one should work
PlayerGui is in the player
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