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: ImageLabel Problem...

Previous Thread :: Next Thread 
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 01:28 PM
I've made a script so I can make to image slowly appear on the ###een then slowly fade from the ###een and I wanted to make it for when someone joins the ###e, like localplayer. Anyone help fix my s##ipt?

local logo = script.Parent.ImageLabel

function onPlayerEntered(player)
logo.ImageTransparency = 1
wait()
logo.ImageTransparency = 0.9
wait()
logo.ImageTransparency = 0.8
wait()
logo.ImageTransparency = 0.7
wait()
logo.ImageTransparency = 0.6
wait()
logo.ImageTransparency = 0.5
wait()
logo.ImageTransparency = 0.4
wait()
logo.ImageTransparency = 0.3
wait()
logo.ImageTransparency = 0.2
wait()
logo.ImageTransparency = 0.1
wait()
logo.ImageTransparency = 0
wait(10) -- Adjust how long should the logo stay on screen?
logo.ImageTransparency = 0
wait()
logo.ImageTransparency = 0.1
wait()
logo.ImageTransparency = 0.2
wait()
logo.ImageTransparency = 0.3
wait()
logo.ImageTransparency = 0.4
wait()
logo.ImageTransparency = 0.5
wait()
logo.ImageTransparency = 0.6
wait()
logo.ImageTransparency = 0.7
wait()
logo.ImageTransparency = 0.8
wait()
logo.ImageTransparency = 0.9
wait()
logo.ImageTransparency = 1
print("Successfully Loaded Logo")
end

game.Players.PlayerAdded:connect(onPlayerEntered)



#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 01:30 PM
b1


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
18 Feb 2017 01:47 PM
Make this a localscript and but this code in. It will run for each localplayer as they join local logo = script.Parent.ImageLabel local player = game.Players.LocalPlayer local function rungui() for i=1,0,0.1 do logo.ImageTransparency=i wait() end wait(10) for i=0,1,0.1 do logo.ImageTransparency=i wait() end ################### Loaded Logo") end rungui()
Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
18 Feb 2017 01:47 PM
Make this a localscript and but this code in. It will run for each localplayer as they join


local logo = script.Parent.ImageLabel
local player = game.Players.LocalPlayer

local function rungui()
for i=1,0,0.1 do
logo.ImageTransparency=i
wait()
end
wait(10)
for i=0,1,0.1 do
logo.ImageTransparency=i
wait()
end
end

rungui()


Report Abuse
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
18 Feb 2017 01:54 PM
I feel dumb adding that player variable


Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 03:22 PM
It works but I want the beginning to fade in. Sorry, not sure how to deal with "for" statements. I'm still learning.


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
18 Feb 2017 03:23 PM
http://wiki.roblox.com/?title=Loops#For


Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 03:25 PM
It would be easier if you can fix ### script for me then I would understand ### before and after result, anyway thanks for ### wiki link. I'll read it later. #code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 03:26 PM
It would be easier if you can fix the script for me then I would understand the before and after result, anyway thanks for the wiki link. I'll read it later.

hashtags rip


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 03:43 PM
b3


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 04:05 PM
b4


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 05:15 PM
b5


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 05:33 PM
b6


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
18 Feb 2017 05:33 PM
local logo = script.Parent.ImageLabel;
repeat wait() until game.Players.LocalPlayer.Character;
for i = 1,0,-.01 do
logo.ImageTransparency = i;
wait();
end
wait(10) -- How long it stays on the screen
for i = 0,1,.01 do
logo.ImageTransparency = i;
wait()
end
Report Abuse
cavanperera is online. cavanperera
Joined: 04 Jul 2012
Total Posts: 839
18 Feb 2017 05:36 PM
Thank you! Props to you.

Thread Closed.


#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self
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