|
| 11 Apr 2012 08:05 AM |
I am making an opening GUI for my game Expedition 19. I put this script into a screen GUI under Starter Gui. For whatever reason, It wont work. Does anyone know why its not working?
Heres the script:
back=script.Parent.Background logo=script.Parent.Background.E19Logo welcome=script.Parent.Background.Welcome
function enter(player) back.Visible=true welcome.Visible=true welcome.TextTransparency=0 wait(3) welcome.TextTransparency=0.1 wait(0.1) welcome.TextTransparency=0.2 wait(0.1) welcome.TextTransparency=0.3 wait(0.1) welcome.TextTransparency=0.4 wait(0.1) welcome.TextTransparency=0.5 wait(0.1) welcome.TextTransparency=0.6 wait(0.1) welcome.TextTransparency=0.7 wait(0.1) welcome.TextTransparency=0.8 wait(0.1) welcome.TextTransparency=0.9 wait(0.1) welcome.TextTransparency=1 welcome.Visible=false wait(2) logo.Visible=true wait(5) logo.Visible=false back.Visible=false end
script.Parent.Parent.Parent.Parent.ChildAdded:connect(enter)
|
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 11 Apr 2012 08:18 AM |
back=script.Parent.Background logo=script.Parent.Background.E19Logo welcome=script.Parent.Background.Welcome
function enter(player)
back.Visible=true welcome.Visible=true welcome.TextTransparency=0 wait(3) welcome.TextTransparency=0.1 wait(0.1) welcome.TextTransparency=0.2 wait(0.1) welcome.TextTransparency=0.3 wait(0.1) welcome.TextTransparency=0.4 wait(0.1) welcome.TextTransparency=0.5 wait(0.1) welcome.TextTransparency=0.6 wait(0.1) welcome.TextTransparency=0.7 wait(0.1) welcome.TextTransparency=0.8 wait(0.1) welcome.TextTransparency=0.9 wait(0.1) welcome.TextTransparency=1 welcome.Visible=false wait(2) logo.Visible=true wait(5) logo.Visible=false back.Visible=false
end
game.Players.ChildAdded:connect(enter)
I just changed the connection line now. Is it really called TextTransparency? Also what does the output say? Is the script disabled? |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 08:23 AM |
When your changing text transparency it would be Text.Transparency = ...
|
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 11 Apr 2012 08:24 AM |
| srsly ffs inefficitn qqqqqqqqqqq |
|
|
| Report Abuse |
|
|
Cheater
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 5258 |
|
|
| 11 Apr 2012 08:25 AM |
No it's really TextTransparency, I checked it.
You know that guys is talking about GUIs? |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 08:25 AM |
| No i was wrong, it is text transparency. Sorry! |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 08:26 AM |
| yes i do, im on party chat with him :D |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 08:47 AM |
Could you possibly create a Model of the GUI for us to fix? It would be easier for us to repair whatever is broken if so. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 08:54 AM |
| @cheater(first post): That new connection line didnt change anything :/ |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 08:55 AM |
| @Vic: Sure, but I g2g, unfortuantly, and I wont be back 'till Friday. :/ |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 09:01 AM |
back = script.Parent.Background logo = back.E19Logo welcome = back.Welcome
Game.Players.PlayerAdded:connect(function() back.Visible = true welcome.Visible = true welcome.TextTransparency = 0 wait(3) for i = 0.1, 1, 0.1 do welcome.TextTransparency = i wait(0.1) end welcome.Visible=false wait(2) logo.Visible=true wait(5) logo.Visible=false back.Visible=false end)
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 09:15 AM |
| @knight: Kinda worked, but didnt do what i ment. Let me re-word what i said. I want the GUI to come up when soemone respawns, or jons the game, and i ONLY want it to show up on their screen, not everybodys screen. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 09:16 AM |
Specify "kinda worked", what didn't it do?
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 09:23 AM |
| Use loops, it'll cut your work in half. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Apr 2012 09:29 AM |
| @knight: My friend helped me test it. When i entered, nothing showed up, when he entered, it showed up on my screen and not his. Thats not what i wanted. I want it to show when soemone enters the game, and only they see it. And also, so they see it only once, so they cant reset and see it again. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 12:59 PM |
try using this connect line:
game.Players.PlayerAdded:connect(enter)
in the function enter you have the variable player, just set the parent of the GUI as this before running the fade: game.Players:GetCharacterFromPlayer(player).PlayerGui this could be set as a variable to save time if multiple elements must be included in the same location
hope it helped! |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 01:07 PM |
| If it is for when a player respawns why do you even need a connection line? A player gets a new GUI every time they respawn. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 01:09 PM |
@aircraft: You just confused me. I'm a great scripter, and I was confused by that -.-
Knight, do u have any new ideas, you seem like the best scripter here (No offense to everyone else) |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 01:10 PM |
| @Ratex: You obviously dont know anything about scripting. |
|
|
| Report Abuse |
|
|
VBRoblox
|
  |
| Joined: 03 May 2011 |
| Total Posts: 31 |
|
|
| 11 Apr 2012 01:13 PM |
@ziggyblock i think aircraft thaught that u wanted the GUI to appear when the player joined the game. that would work if u had another script that was triggered when the player respawns to do the same thing but without setting the parent.
the game.Players.PlayerAdded event is fired when a new player joins the game. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 01:14 PM |
| @Ziggy are you sure on that? I think you might want to think about that before you make any statements against me. |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 01:16 PM |
| I bet if you did what I told you it'd do what you want. |
|
|
| Report Abuse |
|
|
VBRoblox
|
  |
| Joined: 03 May 2011 |
| Total Posts: 31 |
|
|
| 11 Apr 2012 01:16 PM |
@Ratex(last post): i agree
@ziggy: i know that connection works as i have used it many times, as for the respawn script i have yet to see one :( |
|
|
| Report Abuse |
|
|
|
| 11 Apr 2012 01:18 PM |
| @VB If he has the script under a ScreenGui inside the StarterGui then everytime a player respawns it will run the script, since a player gets a new gui every time they respawn, if it's in a normal script you can just use CharacterAdded event on the player, which will fire each time the character spawns and returns the character. |
|
|
| Report Abuse |
|
|