|
| 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 |
|
|
|
| 18 Feb 2017 01:30 PM |
b1
#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 18 Feb 2017 01:54 PM |
I feel dumb adding that player variable
|
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 18 Feb 2017 03:23 PM |
http://wiki.roblox.com/?title=Loops#For
|
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 18 Feb 2017 03:43 PM |
b3
#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2017 04:05 PM |
b4
#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2017 05:15 PM |
b5
#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2017 05:33 PM |
b6
#code local plr = game.Workspace.cavanperera.Humanoid.MaxHealth + inf -- god me self |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|