|
| 19 Jan 2014 12:07 PM |
--Will run the whole NPC
--Other things local Npc = script.Parent local Head = Npc.Head local Torso = Npc.Torso
--Configuration Value Setting Variables (Add other settings if needed) local MaxLife = Npc.Settings.MaxHealth.Value local Life = Npc.Settings.Health.Value local Speed = Npc.Settings.WalkSpeed.Value local NickName = Npc.Settings.Name.Value local Damage = Npc.Settings.Damage.Value local ViewLength = Npc.Settings.ViewLength.Value
-------------------------------------------------------
--HEALTH-- Npc.Monster.MaxHealth = MaxLife Npc.Monster.Health = Life
--Walkspeed-- Npc.Monster.WalkSpeed = Speed
--Name-- Npc.Name = NickName
ERROR 10:56:03.551 - String expected 10:56:03.552 - Script 'Workspace.Villager.Main', Line 28 10:56:03.553 - stack end 11:00:20.962 - Running Script "Workspace.Villager.Main"
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
Absurdism
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 2568 |
|
|
| 19 Jan 2014 12:20 PM |
| Mind telling us where line 28 is? |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:21 PM |
--Name-- Npc.Name = NickName
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 19 Jan 2014 12:42 PM |
| Npc.Name = "NickName" its that simple,belive it or not..u forgot the "" |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:45 PM |
No, that just makes the Npc named "NickName"
I want it to be the name of the String value in the settings. Which is called Name the name should end up being Bob.
|
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:47 PM |
oh then Npc.Name = ""..NickName.."" try that,justtt to be sure |
|
|
| Report Abuse |
|
|
|
| 19 Jan 2014 12:48 PM |
11:48:10.848 - Workspace.NickName.Main:28: attempt to concatenate local 'NickName' (a nil value) 11:48:10.869 - Script 'Workspace.NickName.Main', Line 28 11:48:10.870 - stack end |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|