|
| 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
|
  |
| 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 |
|
|
|
| 18 Dec 2014 04:37 PM |
| I'm so confused as to what you're asking... |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 18 Dec 2014 04:47 PM |
| Value = workspace.Brick.Value.Value * |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 18 Dec 2014 05:50 PM |
| Yes, I just copied it over. |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 03:28 PM |
| Meh, this post is dead, I'll try some other place. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 19 Dec 2014 10:50 PM |
| Wonder if it'd work if I lock the frame's position constantly... |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2014 10:52 PM |
| Wait, it's not a position problem, it's a size problem... uhg. |
|
|
| Report Abuse |
|
|