|
| 03 Jul 2014 11:35 AM |
local players = game.Players:GetChildren() local names = players.name local characters game.Workspace:FindFirstChild(names)
characters.Humanoid.AutoRotate = false
|
|
|
| Report Abuse |
|
|
| |
|
Hakupa
|
  |
| Joined: 03 Sep 2011 |
| Total Posts: 5375 |
|
|
| 03 Jul 2014 11:49 AM |
| One thing that is wrong is that you wrote players.name. First of all, name should be capitalized. Second, players includes multiple objects. Also, you didn't put an equals sign between characters and game. Also, there are no "" in the parentheses for FindFirstChild. I don't think you can put a set variable in those parentheses for FindFirstChild. It has to be an object in workspace. I'm not even sure if that's everything. |
|
|
| Report Abuse |
|
|
LordGan
|
  |
| Joined: 23 Dec 2010 |
| Total Posts: 1366 |
|
|
| 03 Jul 2014 11:53 AM |
Try this:
local players = game.Players:GetChildren() local names = players.name local characters = game.Workspace:FindFirstChild("names") characters.Humanoid.AutoRotate = false |
|
|
| Report Abuse |
|
|
|
| 03 Jul 2014 12:03 PM |
for _, v in pairs(game.Players:getPlayers()) do if v.Character then v.Character.Humanoid.AutoRotate = false; end; end;
|
|
|
| Report Abuse |
|
|