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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 May 2014 11:46 PM
[ Content Deleted ]
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 May 2014 11:49 PM
[ Content Deleted ]
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
10 May 2014 11:50 PM
"repeat wait() until game.Players.PlayerAdded"

Game.Players.PlayerAdded:wait()

Also this script makes no sense...
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
10 May 2014 11:51 PM
[ Content Deleted ]
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
10 May 2014 11:51 PM
It makes sense, it's just inefficient.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
10 May 2014 11:53 PM
No, it doesn't make sense
It looks like the script is in a gui, in startergui
So this

repeat wait() until game.Players.PlayerAdded

Doesn't make sense
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
11 May 2014 08:10 AM
[ Content Deleted ]
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
11 May 2014 08:11 AM
Use .PlayerAdded and don't place it in StarterGui.
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
11 May 2014 08:42 AM
[ Content Deleted ]
Report Abuse
Verthandi is not online. Verthandi
Joined: 21 Apr 2014
Total Posts: 65
11 May 2014 09:11 AM
If you only want it to come up once, it'd be best to place it in workspace and added a PlayerAdded function.

Otherwise, you could keep it where it is and have it add a BoolValue or something inside the player. Then have it check if said player has that value already, and if so, don't show the gui.
Report Abuse
Verthandi is not online. Verthandi
Joined: 21 Apr 2014
Total Posts: 65
11 May 2014 09:14 AM
if not game.Players.LocalPlayer:findFirstChild("LoadedGui") then
Instance.new("BoolValue",game.Players.LocalPlayer).Name="LoadedGui";
else return end;


Add this to the start.
Report Abuse
Spongocardo is not online. Spongocardo
Joined: 06 Sep 2008
Total Posts: 2843
11 May 2014 09:14 AM
Take a look at the second example code here:
http://wiki.roblox.com/index.php/Camera_manipulation#Using_a_Script

Use player.CharacterAdded:wait() (where player is the player)

Here's my siggy... Done.
Report Abuse
Verthandi is not online. Verthandi
Joined: 21 Apr 2014
Total Posts: 65
11 May 2014 09:15 AM
Sorry, that's assuming that this is in a LocalScript.

If not, replace LocalPlayer with script.Parent.Parent.Parent ( However many parents you may need, since your script may be located somewhere else. )
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
11 May 2014 09:17 AM
[ Content Deleted ]
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
11 May 2014 09:31 AM
First off. PLEASE make it shorter. I'm begging you


repeat wait() until game.Players.LocalPlayer
for I = 1,4 do
script.Parent.LoadingText.Text = ("Loading..")
wait(1)
script.Parent.LoadingText.Text = ("Loading.")
wait(1)
script.Parent.LoadingText.Text = ("Loading..")
wait(1)
script.Parent.LoadingText.Text = ("Loading...")
end
wait(1)
script.Parent.LoadingText.Text = "Done!"
wait(0.5)
script.Parent:TweenPosition(UDim2.new(1.1, 0, 0, 0), "Out", "Quad", 1.3, true)
script.Parent.Parent.Frame.Visible = true
wait(3)
script.Parent.Parent.Frame.Visible = false



And put the gui in Lighting and use this script;



GUI = game.Lighting.NAMEOFGUI

game.Players.PlayerAdded:connect(function(p)
GUI:Clone().Parent = p.PlayerGui
end)




Hope that helps :D
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