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 » Game Design
Home Search
 

Re: UDim GUI

Previous Thread :: Next Thread 
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
18 Dec 2014 04:33 PM
I'm trying to create a GUI that rises and falls with a value (-2600 - 2600) without using position but size. Anyone have any idea how to get it working? The frame just goes out of the map.
Report Abuse
vividtrip is not online. vividtrip
Joined: 14 Oct 2008
Total Posts: 2890
18 Dec 2014 04:37 PM
Please elaborate, I can't understand anything in your original post.

Becuz I Used Corrects Grammer
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
18 Dec 2014 04:37 PM
I'm so confused as to what you're asking...
Report Abuse
vividtrip is not online. vividtrip
Joined: 14 Oct 2008
Total Posts: 2890
18 Dec 2014 04:40 PM
Your original post makes no sense.

Becuz I Used Corrects Grammer
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
18 Dec 2014 04:44 PM
I need a GUI frame that can rise and fall depending on the value.
Value = workspace.Brick.Value

while true do
(script.Parent.Size = UDim2.new(0, 0, Value, 0)
wait(.2)
end
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
18 Dec 2014 04:47 PM
Value = workspace.Brick.Value.Value *
Report Abuse
vividtrip is not online. vividtrip
Joined: 14 Oct 2008
Total Posts: 2890
18 Dec 2014 04:54 PM
newSize = workspace.Brick.Value

newSize.Value.Changed:connect(function()
script.Parent:TweenSize(UDim2.new(0, 0, newSize, 0)
end)

Is this what you're looking for. I can't be bothered to check if it works, and you might have to modify it a bit.


Becuz I Used Corrects Grammer
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
18 Dec 2014 05:29 PM
Nope,
- Workspace.base.SurfaceGui.Frame.Frame.Script:3: attempt to index global 'newSize' (a number value)
- Stack Begin
- Script 'Workspace.base.SurfaceGui.Frame.Frame.Script', Line 3
- Stack End
"newSize.Value.Changed:connect(function()"
Report Abuse
vividtrip is not online. vividtrip
Joined: 14 Oct 2008
Total Posts: 2890
18 Dec 2014 05:31 PM
Were you sure to add the line 'newSize = workspace.Brick.Value'? The variable points to the actual instance instead of the 'Value' property, from experience ROBLOX is stupid when you define the 'Value' property directly.

Becuz I Used Corrects Grammer
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
18 Dec 2014 05:50 PM
Yes, I just copied it over.
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 Dec 2014 03:28 PM
Meh, this post is dead, I'll try some other place.
Report Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12490
19 Dec 2014 04:31 PM
Vivid failed a bit.

newSize = workspace.Brick.Value

newSize.Changed:connect(function()
script.Parent:TweenSize(UDim2.new(0, 0, newSize.Value, 0))
end)

That should do the job.
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 Dec 2014 04:50 PM
The frame goes down to a thin line, but it's working, I should be able to get it working.
Report Abuse
vividtrip is not online. vividtrip
Joined: 14 Oct 2008
Total Posts: 2890
19 Dec 2014 04:51 PM
@Prehistoric
Ah, you're right. My bad.

Becuz I Used Corrects Grammer
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 Dec 2014 04:59 PM
Also, if you need to see what it's doing.. http://www.roblox.com/Test-Site-place?id=191981715
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 Dec 2014 07:40 PM
I found the problem, I just don't know how to solve it, it's shrinking down to zero, but when I change the XScale, it multiplies that... so how do I fix this?
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 Dec 2014 10:50 PM
Wonder if it'd work if I lock the frame's position constantly...
Report Abuse
LetterSlayer is not online. LetterSlayer
Joined: 02 Aug 2010
Total Posts: 946
19 Dec 2014 10:52 PM
Wait, it's not a position problem, it's a size problem... uhg.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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