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: unanchoring a part with a specific CFrame

Previous Thread :: Next Thread 
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:05 PM
I created a function that creates a part based on the position of #### ###### ####### It takes rotation into account so I have to set the parts CFrame in order to do so. The problem is, the part needs to be unanchored but the part will not move after setting its CFrame. Is there any way to get around this?
Report Abuse
YoBoiDevDerpy is not online. YoBoiDevDerpy
Joined: 05 Feb 2011
Total Posts: 3020
03 Aug 2017 11:07 PM
?
just unanchor or anchor it with the script you use or
for i,v in pairs(game.Workspace:GetChildren()) do
if v.CFrame = CFrame.new(CFrame) then
v.Anchored = false
end
end)
Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:07 PM
*based on the position of 4 vertices.


Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:08 PM
yeah thats the problem. Nothing happens when you unanchor it. It is as if setting its CFrame overrides any anchoring value.


Report Abuse
Niveum is not online. Niveum
Joined: 15 Aug 2009
Total Posts: 3437
03 Aug 2017 11:10 PM
part.Changed:connect(function()
if part.CFrame = specific_cframe then
part.Anchored = false
end
end)


~ S P I C Y ~
Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:15 PM
i have no idea what that is supposed to accomplish. Here is my script. I don't think it will help though: local car = script.Parent local wheels = car.wheels function ####################### ####### ###### ###### local frontHalf = (front1.Position + front2.Position) local longHalf = (front1.Position + rear1.Position) local longDirec = (front1.Position - rear1.Position).unit local size = Vector3.new((front1.Position - front2.Position).magnitude - front1.Size.X, 1, (front1.Position-rear1.Position).magnitude + 2) local pos = Vector3.new((frontHalf/2).X, (longHalf/2).Y, (longHalf/2).Z) local cf = ############### ### + longDirec) return {size, cf} end local base = Instance.new('Part', wheels) base.Name = 'base' base.Anchored = true local stats = CFrameFromPoint(wheels.FL, wheels.FR, wheels.RL, wheels.RR) base.Size = stats[1] base.CFrame = stats[2]
Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:18 PM
######## 45ZjxN1E
Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:20 PM
9asteB!n

45ZjxN1E


Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
03 Aug 2017 11:58 PM
bump


Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
04 Aug 2017 12:36 AM
bumpp


Report Abuse
bigboy77584 is online. bigboy77584
Joined: 06 Jan 2009
Total Posts: 1003
04 Aug 2017 12:43 PM
bump3


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