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
 

Changing a whole models position via script

Previous Thread :: Next Thread 
mightyplate is not online. mightyplate
Joined: 28 Aug 2010
Total Posts: 4465
25 Jun 2014 09:43 PM
How do I change All the bricks posistion within a model in front of the player

onActivation()

c=game.Lighting.BARB:clone() -- Barb is a model
c.Parent=game.Workspace
c.Name="Barbarian"
c.Position=script.Parent.Parent. -- How do I change the entire models position to in front of the player who is using the tool.


function onActivation()
print("Tool activated")
end

tool.Activated:connect(onActivation)
Report Abuse
COOLDUDE11OO is not online. COOLDUDE11OO
Joined: 21 Aug 2011
Total Posts: 5115
25 Jun 2014 09:50 PM
You use MoveTo or TranslateBy

TranslateBy offsets it though.

model:MoveTo(Vector3.new())
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