drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 23 Aug 2011 04:47 PM |
it doesnt have any output and its in a local script
function onTouched(hit)
a = game.Players.LocalPlayer a.Character.Humanoid.Name = Zombie end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 23 Aug 2011 04:48 PM |
| Strings need quotations marks around them, as well as you're not doing any checks to see if those things exist at that point in time. What if the Humanoid's name is already Zombie? What if the Character hasn't been added yet? |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2011 04:48 PM |
Localscripts only run if they're in the Character or the Player. Nowhere else. Plus, names have to be a string.
~~{I'm a dangerous sociopath with a long history of violence}~~ ~{I don't understand how you keep forgetting that}~ |
|
|
| Report Abuse |
|
|
| |
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 23 Aug 2011 04:49 PM |
| +What swim said, I forgot to mention that. :P |
|
|
| Report Abuse |
|
|
drgn42
|
  |
| Joined: 11 Feb 2010 |
| Total Posts: 3231 |
|
|
| 23 Aug 2011 04:55 PM |
| localscript is in a part in workspace |
|
|
| Report Abuse |
|
|
|
| 23 Aug 2011 04:55 PM |
Read my last post
~~{I'm a dangerous sociopath with a long history of violence}~~ ~{I don't understand how you keep forgetting that}~ |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 23 Aug 2011 04:58 PM |
| When you say names, I think you need "" because its a string. |
|
|
| Report Abuse |
|
|