IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 19 Jul 2012 09:49 PM |
In my script, I want an object to resize on the z axis itself from the normal. What is this enum it's talking about? I checked the wiki but I don't understand it. SO.. how would I do this BUT with FromNormalId instead of new? v.Size = v.Size + Vector3.new(0,0,2) |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
| |
|
rayoma
|
  |
| Joined: 13 Nov 2009 |
| Total Posts: 1911 |
|
|
| 19 Jul 2012 10:19 PM |
| What article in the wiki are you referring to? |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 19 Jul 2012 10:24 PM |
I read: http://wiki.roblox.com/index.php/Vector3#Constructors http://wiki.roblox.com/index.php/NormalId http://wiki.roblox.com/index.php/Enum
Reading that did not show me how to type it up |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 19 Jul 2012 10:24 PM |
| Like I don't know which parts of: Vector3.FromNormalId(NormalId (Enum) normalId) to keep and which parts to change |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 19 Jul 2012 10:29 PM |
The NormalId is the facial surface - which, if you want the Z axis, won't do what you want.
Part:Resize( Vector3.new(0,0,1) ) |
|
|
| Report Abuse |
|
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 19 Jul 2012 11:07 PM |
It says Unable to cast Instance to int at v:Resize( Vector3.new(0,0,1),game.Workspace.Base) btw this script is inside a brick
wait() v = script.Parent t = v.Parent:FindFirstChild("Torso") for i = 1, 10 do wait(0.01) v:Resize( Vector3.new(0,0,1),game.Workspace.Base) end wait(0.2) for i = 1, 10 do wait(0.01) v:Resize( Vector3.new(0,0,1),game.Workspace.Base) end v.Parent:FindFirstChild("Humanoid").WalkSpeed = 16 v:remove()
|
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 20 Jul 2012 07:08 AM |
Ah woops, I have it wrong.
Part:Resize("Front", 1)
It resizes the face by an amount. |
|
|
| Report Abuse |
|
|