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 » Scripters
Home Search
 

Re: How do I fix this?

Previous Thread :: Next Thread 
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:31 PM
Probably one of the most simple fixes:

code:
hum = char.Humanoid

it says "attempt to index local 'char' (a nil value)"
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:33 PM
bump1


Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:35 PM
bump2
Report Abuse
Luminak is not online. Luminak
Joined: 27 May 2012
Total Posts: 2809
04 Jul 2015 07:35 PM
you can't put a value to a humanoid you have to do it hum = char
then hum.Humanoid
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jul 2015 07:35 PM
char, hum
char = char
hum = hum
Report Abuse
vacha is not online. vacha
Joined: 06 Jan 2011
Total Posts: 1993
04 Jul 2015 07:37 PM
hum = game.Players.vacha.Character:FindFirstChild("Humanoid")

Use :WaitForChild() if you script absolutely needs something to execute

while true do the do
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:37 PM
@lum

won't work
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:41 PM
@vacha that doesnt seem to work either
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jul 2015 07:42 PM
Does mine work >_>
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:44 PM
@vl nope
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jul 2015 07:45 PM
-- no code to execute no errors
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:48 PM
any more suggestions?
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
04 Jul 2015 07:49 PM
local player = game.Players.LocalPlayer
local char = player.Character
local human = char.Humanoid
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:51 PM
@time one the line "hum.Changed:connect(function()"
it has an error. It says "attempt to index local 'hum' (a nil value)"
Report Abuse
Despawned is not online. Despawned
Joined: 06 Apr 2013
Total Posts: 12569
04 Jul 2015 07:51 PM
nevermind, wrong part of the script :/
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
04 Jul 2015 07:53 PM
Oh sorry, didnt knew you were serious .-.

local player = game.Players.LocalPlayer
local char = player.Character
local hum = character.Humanoid
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
04 Jul 2015 08:02 PM
Y'all r nubs

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local hum = char.Humanoid
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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