Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this for only a SINGLE part?

I am making Cliffhangers (Price Is Right yodely guy game), and using velocity to make him climb. I used this but I realized this is for the whole model. How do I cahnge this for ONE part?


game.Workspace:GetChildren(parts)
for i,v in pairs do
if i.ClassName == "Part" then
i.Anchored = true
end

--mouseclick thing goes here

4 comments

3

Your syntax is a bit off.

2

If you're good enough at scripting to use for loops and if statements, then you should know enough to make this for a single part. And yes, you have some errors in there. Nothing the output can't help you with though. 

1

I'm assuming you don't know how to script due to the fact you can't edit this for one part.

2

Might I ask what this has to do with "velocity", as specified in the post? Also, you should know this is searching the Workspace, not just a model. ( http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting )

1 answer

✓ Accepted answer
game.Workspace.PartNameHere.Anchored = true

1 comment

0

WELL THANK YOU.

This discussion is preserved as it was. New answers, comments, and votes are closed.