|
| 22 Jun 2014 09:47 PM |
local arm = Players.LocalPlayer.Character["Right Arm"] arm.CFrame = CFrame.new(0, 10, 0) |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2014 09:48 PM |
what do you mean by that could you please add an example |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 09:49 PM |
| im also running it locally :/ |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 09:50 PM |
| He basically means "Players" doesn't mean anything. The script doesn't know what "Players" is, you'll have to put the location for that. So if, by "Players", you mean the folder "Players", you would put game.Players rather than just Players. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 09:51 PM |
local arm = game.Players.LocalPlayer.Character["Right Arm"] arm.CFrame = CFrame.new(0, 10, 0)
-- i tried that still doesnt work |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 09:53 PM |
| Second problem, like before, "Right Arm" isn't defined. Look on the wiki, you'll see that locations are specified by periods rather than brackets or whatever you were using. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 09:54 PM |
| oh. thanks for actually helping me this time. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 09:55 PM |
| There's nothing wrong with how you defined arm. Where is the script located? |
|
|
| Report Abuse |
|
|
| |
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 09:56 PM |
| Oh really? Nevermind then I'm still new with this. Where is the script in though? |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 09:56 PM |
| Finally I did something right. |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 09:56 PM |
I was talking to rolo*
You should put the script in StarterPack if it's a localscript. |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2014 09:58 PM |
| im not running this in studio im running this in a game |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 09:58 PM |
| Yeah I know. I meant you should move it into StarterPack. |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 09:59 PM |
| Oh really? You should use Studio, it's much easier. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 09:59 PM |
| yea but i acutally want to see it work |
|
|
| Report Abuse |
|
|
Zerio920
|
  |
| Joined: 06 Apr 2012 |
| Total Posts: 3311 |
|
|
| 22 Jun 2014 10:00 PM |
You can still see it work in Studio. There's a little "play" button on the top, it lets you run the script so you can see it without playing it.
There's also a "play solo" button that lets you play the game in studio with your player. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:02 PM |
LocalScripts don't run in workspace. Only in places which are childs/linked to a player.
@Zerio
Using brackets allows him to define the right arm, as after all, the name does have a space in it.
local arm = game.Players.LocalPlayer.Character.Right Arm >Errors local arm = game.Players.LocalPlayer.Character["Right Arm"] >Works |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:05 PM |
it does not work in solo im using the command bar |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:07 PM |
ok i made the local script idk where to put it also i cant make it so the script updates it wont even work |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:08 PM |
Local scripts only work in the player So put that script in StarterGui |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:12 PM |
ok why doesnt this work
scrpt = Instance.new("LocalScript") scrpt.Parent = game.Players.Player1.PlayerGui scrpt.Text = local arm = game.LocalPlayer.Character["Right Arm"] arm.CFrame = CFrame.new(0, 2, 0) |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2014 10:15 PM |
'scrpt.Text = local arm = game.LocalPlayer.Character["Right Arm"] arm.CFrame = CFrame.new(0, 2, 0)'
What. |
|
|
| Report Abuse |
|
|