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 » Scripters
Home Search
 

Re: pixels to size?

Previous Thread :: Next Thread 
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
11 May 2015 09:48 PM
how am I to do that? and im trying to "tween" a part c;
Report Abuse
juniorjfive is not online. juniorjfive
Joined: 05 Jan 2010
Total Posts: 671
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
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
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
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
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
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
05 Aug 2015 07:36 PM
Bump...
Report Abuse
instawin is not online. 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 is not online. 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 is not online. 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 is not online. 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
TheScripterGeek is not online. TheScripterGeek
Joined: 02 Sep 2012
Total Posts: 1192
05 Aug 2015 08:10 PM
cool... e-e-
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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