|
| 07 Mar 2013 08:26 PM |
I have made a script which is inside of gui which is to start 3 seconds after the player has entered but apparently it isn't working. Here is the script:
function onPlayerEntered(player)
wait(3) script.Parent.UCR:TweenPosition(UDim2.new(0.3, 0, 0.15, 0), "In", "Quad", 3, true) wait(3) script.Parent.Bar1.Visible = true script.Parent.Bar1:TweenSize(UDim2.new(0.45, 0, 0.05, 0), "In", "Quad", 5, true) --Start script.Parent.Frame.Visible = true script.Parent.REC.Visible = true script.Parent.Logo.Visible = true game.Workspace.PlayerEntered.Script.Disabled = true end
game.Players.PlayerAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
| |
|
HD188753
|
  |
| Joined: 13 Jun 2012 |
| Total Posts: 5021 |
|
|
| 07 Mar 2013 08:37 PM |
output also, why do you have a BC alt that looks exactly like you? |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
|
| 07 Mar 2013 08:40 PM |
@HD
Output says nothing.
and it isn't a bc alt, I just switched accounts recently and posted it this post by accident with my old account. |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2013 08:46 PM |
| Where is the script located? |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
|
| 07 Mar 2013 08:48 PM |
| inside a gui which is in StarterGui |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
|
| 07 Mar 2013 09:05 PM |
| 33 views and not a single person knows what the problem is? |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 07 Mar 2013 09:34 PM |
You don't need the event. If the original GUI is put into the StarterGui, then that GUI will already be in the player. This means that the event never fires because the player is already added to the game. How else would the GUI show up without a character?
local p = Game.Players.LocalPlayer if not p:FindFirstChild("AlreadyShown") then Instance.new("StringValue", p).Name = "AlreadyShown" wait(3) script.Parent.UCR:TweenPosition(UDim2.new(0.3, 0, 0.15, 0), "In", "Quad", 3, true) wait(3) script.Parent.Bar1.Visible = true script.Parent.Bar1:TweenSize(UDim2.new(0.45, 0, 0.05, 0), "In", "Quad", 5, true) script.Parent.Frame.Visible = true script.Parent.REC.Visible = true script.Parent.Logo.Visible = true game.Workspace.PlayerEntered.Script.Disabled = true end |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 07 Mar 2013 09:37 PM |
"That didn't work."
Thanks for your long description of assisting me with finding the error!
....It'd be nice to know if there was output, or if something did happen. Or even more, if the GUI is actually in the StarterGui. |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
| |
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 07 Mar 2013 09:41 PM |
| Then good luck with your issue, because there are no syntax problems with my code, and you're not being of any help. |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
|
| 07 Mar 2013 09:43 PM |
| It works if I change it into a textbutton click function. |
|
|
| Report Abuse |
|
|
iLikePHP
|
  |
| Joined: 24 Feb 2013 |
| Total Posts: 372 |
|
|
| 07 Mar 2013 09:48 PM |
You could always do... game.Players.ChildAdded:connect(blargh) { iLikePHP("official"); } |
|
|
| Report Abuse |
|
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
| |
|
| |
|
Optiics
|
  |
| Joined: 05 Mar 2013 |
| Total Posts: 1619 |
|
| |
|
|
| 07 Mar 2013 10:28 PM |
| Post the StarterGui Tree and the code. |
|
|
| Report Abuse |
|
|