NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
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
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 10 May 2014 11:51 PM |
| It makes sense, it's just inefficient. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 11 May 2014 08:11 AM |
| Use .PlayerAdded and don't place it in StarterGui. |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
|
| 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 |
|
|