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: HOW DO I MAKE AN OBJECT POINT AT A CERTAIN SPOT

Previous Thread :: Next Thread 
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
07 Jun 2015 08:07 PM
NOT BODYGYRO--
like
CAN YOU PICTURE A CAMPFIRE?
YOU KNOW HOW ALL THE LOGS ARE BASICALLY FACING THE SAME WAY?
I WANT TO DO SOMETHING LIKE THAT

EXCEPT
WITH SURFACEGUIS

CAN ANYONE HELP ON HOW TO DO THIS?
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
09 Jun 2015 01:51 PM
bump
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
09 Jun 2015 06:46 PM
buu u u bmbpbbpmbpbpb ub mp


professional thinker - THE TAPPIER ARMY
Report Abuse
infortality is not online. infortality
Joined: 28 May 2012
Total Posts: 942
09 Jun 2015 07:05 PM
You really didn't explain your question with enough detail.
Sticks in a campfire definitely do not point in the same direction, unless you're talking about like pointing towards the center (but again you didn't explain it good)
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
09 Jun 2015 07:10 PM
@infortality
LIKE BILLBOARDGUIS
EXCEPT THEY DONT GET 'BIGGER'
AND
THEY DONT POINT UPWARDS

like, as you get farther they 'SHRINK'


professional thinker - THE TAPPIER ARMY
Report Abuse
swordmaster7359 is not online. swordmaster7359
Joined: 17 May 2012
Total Posts: 14
09 Jun 2015 07:13 PM
Well, making an object point a certain direction you could do:

Part.CFrame=CFrame.new(Point1,Point2)

This situation will result in the part facing the points on opposing sides.
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
09 Jun 2015 07:16 PM
@sword
but doesnt it need 3 things?
can u explain that little line for me?
well, i understand it

but how would it work?


professional thinker - THE TAPPIER ARMY
Report Abuse
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
09 Jun 2015 07:19 PM
When using CFrame.new(), you can give it two points (Vector3 values). This will return a CFrame which has a position of the first point, and an orientation such that it points towards the second point.

E.g.:

point1 = Vector3.new(0,0,0)
point2 = player.Character.Torso

part.CFrame = CFrame.new(point1, point2) --Part now has a position of 0,0,0, and if player is defined, it points at player.
Report Abuse
infortality is not online. infortality
Joined: 28 May 2012
Total Posts: 942
09 Jun 2015 07:23 PM
Yeah don't be confused by the fact you can use a different number of argument in a function. They're called constructors and you can see them all for CFrame here: http://wiki.roblox.com/index.php?title=CFrame#Constructors
Report Abuse
Joe11Joe99 is not online. Joe11Joe99
Joined: 22 May 2011
Total Posts: 34458
09 Jun 2015 07:29 PM
ok thanks i got it now


professional thinker - THE TAPPIER ARMY
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