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 » Scripting Helpers
Home Search
 

Re: How do I use Vector3.FromNormalId?

Previous Thread :: Next Thread 
IlIll is not online. 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 is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
19 Jul 2012 10:09 PM
bump
Report Abuse
rayoma is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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