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: Help me with this script?

Previous Thread :: Next Thread 
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 02:46 PM



wait(20)
tran.BackgroundTransparancy = 0.95
wait(0.1)
tran.BackgroundTransparancy = 0.90
wait(0.1)
tran.BackgroundTransparancy = 0.85
wait(0.1)
tran.BackgroundTransparancy = 0.80
wait(0.1)
tran.BackgroundTransparancy = 0.75
wait(0.1)
tran.BackgroundTransparancy = 0.70
wait(0.1)
tran.BackgroundTransparancy = 0.65
wait(0.1)
tran.BackgroundTransparancy = 0.60
wait(0.1)
tran.BackgroundTransparancy = 0.55
wait(0.1)
tran.BackgroundTransparancy = 0.50
wait(0.1)
tran.BackgroundTransparancy = 0.45
wait(0.1)
tran.BackgroundTransparancy = 0.40
wait(0.1)
tran.BackgroundTransparancy = 0.35
wait(0.1)
tran.BackgroundTransparancy = 0.30
wait(0.1)
tran.BackgroundTransparancy = 0.25
wait(0.1)
tran.BackgroundTransparancy = 0.20
wait(0.1)
tran.BackgroundTransparancy = 0.15
wait(0.1)
tran.BackgroundTransparancy = 0.10
wait(0.1)
tran.BackgroundTransparancy = 0.5
wait(0.1)
tran.BackgroundTransparancy = 0

if tran.BackgroundTranspatancy == 0 then
print("It worked")
end

Please?
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 02:47 PM
Can someone make it so if they click an item called "Button1" that happens.
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 02:47 PM
forgot to add this

local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
02 Apr 2014 02:48 PM
for i = 1, 0, -0.05 do
tran.BackgroundTransparency = i
wait(0.1)
end
print 'it worked'





i'm asian
Report Abuse
trogyssy is not online. trogyssy
Joined: 29 Oct 2010
Total Posts: 2322
02 Apr 2014 02:50 PM
Gawd that's ugly

local b=Instance.new("ClickButton")
b.Parent=script.Parent
b.Clicked:connect(function()
for i=1, 0, 0.05 do
script.Parent.Transparency=i
end
end)

===A silent guardian, a watchful protector, a doge knight===
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
02 Apr 2014 02:51 PM
Put a ClickDetector in the brick and put this script in the brick and make sure that 'tran' is defined..

script.Parent.ClickDetector.MouseClick:connect(function()
wait(20)
for i = 1, 20,.05 do
tran.BackgroundTransparancy = i
wait(0.1)
if tran.BackgroundTranspatancy == 0 then
print("It worked")
end end end)
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
02 Apr 2014 02:52 PM
@trog
wouldn't work because you would increment the initialization, and that would return false
the loop would not iterate

i'm asian
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
02 Apr 2014 02:54 PM
Put a ClickDetector in the brick and put this script in the brick.

local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame

script.Parent.ClickDetector.MouseClick:connect(function()
wait(20)
for i = 1, 20,.05 do
tran.BackgroundTransparancy = i
wait(0.1)
if tran.BackgroundTransparancy == 0 then
print("It worked")
end end end)
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
02 Apr 2014 02:55 PM
local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame
b = Instance.new('TextButton', tran)

b.MouseButton1Down:connect(function()
for i = 1, 0, -0.05 do
tran.BackgroundTransparency = i
wait(0.1)
end
print 'it worked'
end)

i'm asian
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
02 Apr 2014 02:55 PM
@goulstem
it's a gui not a brick

i'm asian
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 02:55 PM
@Goul, do i put it in a local script or normal?
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 02:56 PM
So who's do i use, ._.
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 02:57 PM
@jigg, i meant a brick :/
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
02 Apr 2014 02:58 PM
Wait, you're using a SurfaceGui?

i'm asian
Report Abuse
Rspkme is not online. Rspkme
Joined: 06 Feb 2008
Total Posts: 1013
02 Apr 2014 03:06 PM
They click a brick, the surfaceGUI pops up fading to black, they teleport to a diff room, black fades out, they're in a new place.
Report Abuse
JigglingJack is not online. JigglingJack
Joined: 25 Mar 2014
Total Posts: 11263
02 Apr 2014 03:08 PM
local tran = game.Players.LocalPlayers.PlayerGui.ScreenGui.Frame
b = Instance.new('ClickDetector', PUTBRICKPATHHERE)

b.MouseClick:connect(function()
for i = 1, 0, -0.05 do
tran.BackgroundTransparency = i
wait(0.1)
end
print 'it worked'
end)


and by the way, if this script manipulates a surface gui, and is inside a brick, it will not work as a local script
i'm asian
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