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: My script wont work when I'm pretty sure it should......

Previous Thread :: Next Thread 
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
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 is not online. 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
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
11 Apr 2012 08:23 AM
When your changing text transparency it would be Text.Transparency = ...
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
11 Apr 2012 08:24 AM
srsly ffs inefficitn qqqqqqqqqqq
Report Abuse
Cheater is not online. 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
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
11 Apr 2012 08:25 AM
No i was wrong, it is text transparency. Sorry!
Report Abuse
ChocCookieRaider is not online. ChocCookieRaider
Joined: 10 Mar 2012
Total Posts: 338
11 Apr 2012 08:26 AM
yes i do, im on party chat with him :D
Report Abuse
VictoriousMaxPower is not online. VictoriousMaxPower
Joined: 14 Jan 2010
Total Posts: 841
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
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
11 Apr 2012 08:54 AM
@cheater(first post): That new connection line didnt change anything :/
Report Abuse
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
11 Apr 2012 08:55 AM
@Vic: Sure, but I g2g, unfortuantly, and I wont be back 'till Friday. :/
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
11 Apr 2012 09:16 AM
Specify "kinda worked", what didn't it do?

† KMXD †
Report Abuse
thek00lkid is not online. thek00lkid
Joined: 18 Jun 2011
Total Posts: 2778
11 Apr 2012 09:23 AM
Use loops, it'll cut your work in half.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
11 Apr 2012 09:24 AM
@Kool

I did...

† KMXD †
Report Abuse
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
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
aircraft123 is not online. aircraft123
Joined: 02 May 2011
Total Posts: 1
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
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
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
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
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
Ziggyblock is not online. Ziggyblock
Joined: 12 Nov 2010
Total Posts: 481
11 Apr 2012 01:10 PM
@Ratex: You obviously dont know anything about scripting.
Report Abuse
VBRoblox is not online. 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
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
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
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
11 Apr 2012 01:16 PM
I bet if you did what I told you it'd do what you want.
Report Abuse
VBRoblox is not online. 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
RATEXmegaGAMER is not online. RATEXmegaGAMER
Joined: 10 Dec 2010
Total Posts: 4046
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
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