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 » Scripters
Home Search
 

Re: No error in output?

Previous Thread :: Next Thread 
NoobPlayer03 is not online. NoobPlayer03
Joined: 11 Dec 2013
Total Posts: 231
08 Oct 2015 03:25 PM
MoneyEarn = Game.StarterGui.MoneyEarn.TextLabel
function Touched(hit)
MoneyEarn.Visible = true
wait(2)
MoneyEarn.TextTransparency = .2
wait(.5)
MoneyEarn.TextTransparency = .5
wait(.5)
MoneyEarn.TextTransparency = .8
wait(.5)
MoneyEarn.Visible = false
end
script.Parent.Touched:connect(Touched)



--{ Any unnecessary var. will be used in the future, this is only testing a part of a script.

Yes, this is in a part.
Yes, the GUI is showing up on my screen in studio.
Yes, the GUI's visibility is set to false before script is ran.
Report Abuse
GlacierGames is not online. GlacierGames
Joined: 22 Oct 2011
Total Posts: 1549
08 Oct 2015 03:31 PM

function Touched(hit)
plr = game.Players:GetPlayerFromCharacter(hit.Paren)
if not plr then return end

MoneyEarn = plr.PlayerGui.MoneyEarn.TextLabel
MoneyEarn.TextTransparency = 0
MoneyEarn.Visible = true
wait(2)
for i = 1, 100 do
MoneyEarn.TextTransparency = MoneyEarn.TextTransparency + 0.001
wait()
end
MoneyEarn.Visible = false
end
script.Parent.Touched:connect(Touched)



[http://www.roblox.com/Naruto-Shippuuden-Sasuke-Theme-1-item?id=159498348 http://www.roblox.com/Akatsuki-Theme-item?id=149318510]
Report Abuse
NoobPlayer03 is not online. NoobPlayer03
Joined: 11 Dec 2013
Total Posts: 231
08 Oct 2015 03:37 PM
Thanks Glacier, but do mind explaining how that works? I'm trying to learn because I don't want to come on here and ask for everything.
Report Abuse
NoobPlayer03 is not online. NoobPlayer03
Joined: 11 Dec 2013
Total Posts: 231
08 Oct 2015 03:40 PM
Also it did not work.
Report Abuse
NoobPlayer03 is not online. NoobPlayer03
Joined: 11 Dec 2013
Total Posts: 231
08 Oct 2015 03:42 PM
Gah sorry for the spam I found an error :) Paren should have been Parent. Thanks anyway
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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