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: Scripting Problem

Previous Thread :: Next Thread 
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 06:23 PM
I want the size of Y to add on .001 every 0.00001 seconds, until I want it to stop

while true do
Stuff.Size.Y = +0.001
wait(0.00001)
until Stuff.Size.Y = 350
end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
04 Apr 2014 06:24 PM
repeat wait()
--lowest wait time,dont use stuff like 0.00001 because it just returns wait() anyways
Stuff.Size.Y = +0.001
until Stuff.Size.Y >= 350
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 06:33 PM
Doesn't Work
Stuff.Size.Y = +0.001 says Unexpected Symbol "+" near =
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 06:42 PM
Bump
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
04 Apr 2014 06:45 PM
repeat wait()
Stuff.Size = Stuff.Size + Vector3.new(0, 0.001, 0)
until Stuff.Size.Y >= 350


--I think, I might be doing this wrong
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 06:47 PM
Its a GUI. just so you know.
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 06:54 PM
Bump
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
04 Apr 2014 06:54 PM
repeat wait()
Stuff.Size = Stuff.Size + UDim2(0, 0, 0, 0.001)
until Stuff.Size.YOffset >= 350
Report Abuse
MarioKartAddict is not online. MarioKartAddict
Joined: 11 Nov 2009
Total Posts: 42774
04 Apr 2014 06:58 PM
repeat wait()
Stuff.Size = Stuff.Size + UDim2(0, 0, 0, 0.001)
until Stuff.Size.Y.Offset >= 350
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 07:22 PM
Doesnt work
Report Abuse
jeremy3199 is not online. jeremy3199
Joined: 02 Sep 2013
Total Posts: 8
04 Apr 2014 07:24 PM
while true do
function(bunghole)
bunghole.Size.Y = +0.001
wait(0.00001)
until bunghole.Size.Y = 350
end
end
end
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 07:26 PM
Let me make this easier.
I have 9 Frames that are supposed to resize on hover of a button. When leaving the button, they resize back to 0. Their max is 350 of y offset.

A = script.Parent.Parent.Games
B1 = A.Frame1
B2 = A.Frame2
B3 = A.Frame3
B4 = A.Frame4
B5 = A.Frame5
B6 = A.Frame6
B7 = A.Frame7
B8 = A.Frame8
B9 = A.Frame9
A1 = A.FrameBackground

if B1.Visible == true then
script.Parent.MouseEnter:connect(function ()
repeat wait()
B1.Size = B1.Size + UDim2(0, 0, 0, 0.001)
until B1.Size.Y.Offset >= 350
end)


function leaving()
repeat wait()
B1.Size = B1.Size - UDim2(0, 0, 0, 0.001)
until B1.Size.Y.Offset >= 350
end
script.Parent.MouseLeave:connect(leaving)
end
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 07:34 PM
Bump
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 07:44 PM
Bump...
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 08:00 PM
Bump
Report Abuse
iloveijoker is not online. iloveijoker
Joined: 06 Jul 2011
Total Posts: 595
04 Apr 2014 08:01 PM
a = true

while a == true do
print("cframing")
end
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 08:54 PM
Bump
Report Abuse
powertool is not online. powertool
Joined: 01 Feb 2008
Total Posts: 3771
04 Apr 2014 08:59 PM
I want the size of Y to add on .001 every 0.00001 seconds, until I want it to stop

while true do
Stuff.Size.Y = +0.001
wait(0.00001)
until Stuff.Size.Y = 350
end

So you want to increase the offset by a thousandth of a pixel every millionth of a second?


Figure out exactly how long it'll take (3.5 seconds), then tweensize.


path.to.gui:TweenSize(UDim2.new(0,0,0,350), "Out", "Linear", 3.5, false)
Report Abuse
Olama5 is not online. Olama5
Joined: 31 Jan 2010
Total Posts: 2827
04 Apr 2014 09:02 PM
That Simple, I feel stupid!
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
04 Apr 2014 09:04 PM
while true do
Stuff.Size.Y = +0.001
wait(0.00001)
until Stuff.Size.Y = 350
end

Incorrect

while true do
Stuff.Size.Y = Stuff.Size.Y + 0.001
wait(0.00001)
until Stuff.Size.Y = 350
end
Report Abuse
BladeXE is not online. BladeXE
Joined: 22 Dec 2012
Total Posts: 3857
04 Apr 2014 09:05 PM
repeat
Stuff.Size.Y = Stuff.Size.Y + 0.001
wait(0.00001)
until Stuff.Size.Y = 350

--Correct
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