|
| 11 May 2015 09:48 PM |
| how am I to do that? and im trying to "tween" a part c; |
|
|
| Report Abuse |
|
|
|
| 11 May 2015 09:50 PM |
Theres offset, and scale In a Gui Object.
Go over the Constructors of the UDim, and UDim2.
http://wiki.roblox.com/index.php?title=UDim http://wiki.roblox.com/index.php?title=UDim2.new |
|
|
| Report Abuse |
|
|
|
| 11 May 2015 10:02 PM |
Instance.new("Frame",game.Geomentry).Name = "Testing Frame" wait() Instance.new("Part", Workspace).FormFactor = "Custom" wait() Frame:TweenSize(UDim2.new(1, 0, 1, 0)) while wait() do game.Workspace.Part.Size = Vector3.new() end
ima guess now at SB, ill check this soon |
|
|
| Report Abuse |
|
|
|
| 11 May 2015 10:10 PM |
would this work? Instance.new("Frame",game.Geometry).Name = "TestingFrame" wait() Instance.new("Part", Workspace).FormFactor = "Custom" wait() game.Workspace.Part.Anchored = true game.Geometry.TestingFrame:TweenSize(UDim2.new(1, 0, 1, 0)) while wait() do game.Workspace.Part.Size = Vector3.new(game.Geometry.TestingFrame.Size.X, game.Geometry.TestingFrame.Size.Y, 0.2) end
|
|
|
| Report Abuse |
|
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 05 Aug 2015 07:45 PM |
what are you doing
local yourPart = workspace.Part
local endCFrame = your wanted end cframe
for clerp = 0, 1, 0.1 do yourPart.CFrame = yourPart.CFrame:lerp(endCFrame, clerp/30) wait() end |
|
|
| Report Abuse |
|
|
Everment
|
  |
| Joined: 08 Oct 2009 |
| Total Posts: 6020 |
|
|
| 05 Aug 2015 07:49 PM |
@insta two issues with that:
1. It's linear. Linear is bland and boring. 2. That's position, not size. OP wants size.
If OP doesn't care about #1, then use Vector3's lerp method.
local part = some.part.somewhere -- Make sure the formfactor is custom local size = Vector3.new(10, 10, 10) local startSize = part.Size local startCFrame = part.CFrame -- so it stays in place
for i = 1, 100 do part.Size = startSize:lerp(size, i/100) part.CFrame = startCFrame end
Pretty crude implementation, but it works. |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 05 Aug 2015 07:50 PM |
wait that's wrong
remove that part where i divided, simply replace it with clerp lol |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 05 Aug 2015 07:52 PM |
i got ninja'd
anyway, sorry, i didn't pay attention enough i guess thought you wanted to lerp the CFrame |
|
|
| Report Abuse |
|
|
| |
|