generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Npc Error 2

Previous Thread :: Next Thread 
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
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
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:13 PM
?
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:17 PM
bump.
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
19 Jan 2014 12:20 PM
Mind telling us where line 28 is?
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:21 PM
--Name--
Npc.Name = NickName
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:30 PM
bump..
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:41 PM
bump2
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
19 Jan 2014 12:42 PM
Npc.Name = "NickName" its that simple,belive it or not..u forgot the ""
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
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
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
19 Jan 2014 12:47 PM
oh then
Npc.Name = ""..NickName..""
try that,justtt to be sure
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
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
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:52 PM
bump3
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
19 Jan 2014 12:52 PM
well that's odd...
Report Abuse
IntellectualBeing is not online. IntellectualBeing
Joined: 29 Sep 2013
Total Posts: 701
19 Jan 2014 12:58 PM
bump..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image