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: Random position around torso in a circle

Previous Thread :: Next Thread 
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
05 Sep 2016 01:04 PM
Just trying to find a random position around the torso, x studs away, in a circle.

...Torso.Position * CFrame.new(0, 0, 2) * CFrame.Angles(0, math.pi, 0)

Help
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
05 Sep 2016 01:19 PM
local x = RADIUSHERE
Torso.Position * CFrame.Angles(0, math.random() * 2 * math.pi, 0) * CFrame.new(0, 0, x)
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
05 Sep 2016 01:47 PM
attempt to multiply a Vector3 with an incompatible value type or nil

Player.Character.Torso.Position * CFrame.Angles(0, math.random() * 2 * math.pi, 0) * CFrame.new(0, 0, 2)
Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
05 Sep 2016 02:10 PM
should be Torso.CFrame not .Position
Report Abuse
AntiFiter is not online. AntiFiter
Joined: 14 May 2009
Total Posts: 12290
05 Sep 2016 02:13 PM
Then if the torso had been pushed on its side it would position stuff in the ground
Report Abuse
Ultraw is not online. Ultraw
Joined: 20 Nov 2010
Total Posts: 6575
05 Sep 2016 02:21 PM
You want a circle or a sphere?


Report Abuse
Flux_Capacitor is not online. Flux_Capacitor
Joined: 07 Apr 2008
Total Posts: 45720
05 Sep 2016 02:22 PM
If you don't want that to happen then use CFrame.new(Torso.Position)
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