Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do I make this for only a SINGLE part?

Asked by 10 years ago

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
3
Your syntax is a bit off. RedCombee 585 — 10y
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.  Perci1 4988 — 10y
1
I'm assuming you don't know how to script due to the fact you can't edit this for one part. Octillerysnacker 115 — 10y
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 ) RoboFrog 400 — 10y

1 answer

Log in to vote
0
Answered by
Merely 2122 Moderation Voter Community Moderator
10 years ago
game.Workspace.PartNameHere.Anchored = true
0
WELL THANK YOU. Wheel326 0 — 10y
Ad

Answer this question