|
| 12 Sep 2015 03:55 AM |
game.Workspace[""..game.workspace.PlayerName.Value..""].Torso.Anchored = true This line returns this error, and the error doesn't give me much detail either:
09:53:50.762 - is not a valid member of Workspace 09:53:50.762 - Script 'Workspace.SwordHandleBase.MainSwordAdd', Line 4
Java my tea please! |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 12 Sep 2015 03:57 AM |
| PlauerName.Value is obviously "" or something. Use FindFirstChild |
|
|
| Report Abuse |
|
|
H1M
|
  |
| Joined: 11 Apr 2009 |
| Total Posts: 218 |
|
|
| 12 Sep 2015 03:59 AM |
game.Workspace[game.Workspace.PlayerName.Value].Torso.Anchored = true
Remember to set the Value to an Actual players name
eg.
PlayerName.Value = "H1M"
would mean
game.Workspace.H1M.Torso.Anchored == true. |
|
|
| Report Abuse |
|
|
|
| 14 Sep 2015 10:52 AM |
PlayerName is a StringValue, which the value is set via another script.
Java my tea please! |
|
|
| Report Abuse |
|
|