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: CFrame is not a valid member of Model

Previous Thread :: Next Thread 
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:17 AM
parts = game.Lighting.Track
bin = script.Parent

function onButton1Down(mouse)
target = mouse.Target
if target and target.Name == "Guide" then
local track = game.Lighting.Track:Clone()
track.Parent = workspace
track:MoveTo(target.Position)
track.CFrame = target.CFrame
target:remove()
end

end

function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)

end

bin.Selected:connect(onSelected)

--the output is the title of this thread by the way--
Report Abuse
Biostream is not online. Biostream
Joined: 28 Mar 2011
Total Posts: 913
24 Jul 2011 10:17 AM
This is like the third time you created a thread on this.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:18 AM
Note: 'Track' is a model. 'Target' is a brick.
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
24 Jul 2011 10:18 AM
Models don't have a CFrame property.

<­/thread­>

-My hand is a dolphin
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:19 AM
Well, no one bothered to help me!
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:20 AM
Well, then how do I CFrame a model? Just like the 'Target' is CFramed?
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
24 Jul 2011 10:20 AM
Then bump the original thread in the future.

Also, I believe I said:

<­/thread­>

-My hand is a dolphin
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:22 AM
What does that mean?
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
24 Jul 2011 10:23 AM
Look up "HTML closing tag".

-My hand is a dolphin
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:24 AM
Nah I'm good :P
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:26 AM
bump
Can someone actually take time to help! THIS IS THE SCRIPTING FORUM! I"VE BEEN WAITING 2 DAYS FOR HELP!!
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 10:33 AM
bump
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 11:03 AM
Bump. Once again.
Report Abuse
ServerBoost100 is not online. ServerBoost100
Joined: 24 Sep 2009
Total Posts: 39
24 Jul 2011 11:04 AM
You cant CFrame Whole Models. You can indeed weld them, which is simmiliar.

Look up welding on the Internetz

< /thread>
< Lock Thread>
Please lock it.
Report Abuse
cheez55 is not online. cheez55
Joined: 19 Oct 2008
Total Posts: 646
24 Jul 2011 11:08 AM
Model:MoveTo(Vector3.new(?,?,?))
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
24 Jul 2011 11:15 AM
So many have told you :T
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 11:17 AM
Told me what? No one really help me.
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 11:18 AM
@cheez
I'm not going to do that because 'Track' should already cframe like 'Guide' you've licked on. I've said like a million times already!
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 11:31 AM
bump. once again.
Report Abuse
Darkmist101 is not online. Darkmist101
Joined: 30 Jul 2010
Total Posts: 6208
24 Jul 2011 11:37 AM
"You cant CFrame Whole Models. You can indeed weld them, which is simmiliar."

Read it :L
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 11:37 AM
DX I want this to work though.
Report Abuse
Snej1 is online. Snej1
Joined: 25 Jun 2008
Total Posts: 809
24 Jul 2011 12:10 PM
You
can
not
CFrame
a
model

Use MoveTo() instead. I have not tested this so I don't know if there are more errors.

parts = game.Lighting.Track
bin = script.Parent

function onButton1Down(mouse)
target = mouse.Target
if target and target.Name == "Guide" then
local track = game.Lighting.Track:Clone()
track.Parent = workspace
track:MoveTo(target.Position)
target:remove()
end

end

function onSelected(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)

end

bin.Selected:connect(onSelected)
Report Abuse
stuntkid257 is not online. stuntkid257
Joined: 12 Jul 2010
Total Posts: 1394
24 Jul 2011 12:25 PM
You can cframe a model.

http://www.roblox.com/Model-CFrame-Function-item?id=34044376
Report Abuse
Megamatrixdude is not online. Megamatrixdude
Joined: 06 Dec 2009
Total Posts: 10939
24 Jul 2011 12:50 PM
That's pseudo. It probably loops through an object's children and CFrames them in relation to the other parts.

-My hand is a dolphin
Report Abuse
deathman12e3 is not online. deathman12e3
Joined: 10 Nov 2009
Total Posts: 7284
24 Jul 2011 01:02 PM
DUDE
QUIT BUMPING
WE ALREADY TOLD YOU
':MoveTo(Vector3.new(?,?,?))' or
WELD THEM


NOW GET OUT AND FIX IT ON YOUR OWN




Sorry if I sounded rude, but I have to state the truth in capitals because SOMEBODY CANT READ POSTS
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