|
| 08 Jul 2015 12:23 AM |
I keep getting this weird error from this script: "Workspace.Respawn1.Script:4: attempt to index local 'char2' (a nil value)"
The Script Itself:
script.Parent.Touched:connect(function(player) local char = player.Parent local char2 = game.Players:GetPlayerFromCharacter(char) char2:LoadCharacter() local humanoid = player.Parent:FindFirstChild("Humanoid") if humanoid then local inGame = char2:FindFirstChild("InGame") if inGame then inGame.Value = false end end end)
Mixtape Coming Out 2020! |
|
|
| Report Abuse |
|
|
Sharpy033
|
  |
| Joined: 02 Jul 2008 |
| Total Posts: 3851 |
|
|
| 08 Jul 2015 12:23 AM |
| your mixtape set the script on fire m8 |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 12:24 AM |
Maybe. lol
Mixtape Coming Out 2020! |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 12:28 AM |
Wtf, your script is weird. Here's better script
script.Parent.Touched:connect(function(player) player.Character:LoadCharacter() local char2 = player.Character local humanoid = player.Character:FindFirstChild("Humanoid") if humanoid then local inGame = char2:FindFirstChild("InGame") if inGame then inGame.Value = false end end end) |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 12:32 AM |
@someonedie "Character is not a valid member of Part" (Line 2)
Mixtape Coming Out 2020! |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 12:33 AM |
uhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Why does my mom smell like crap? Maybe I crapped on here. But I Really didn't. Maybe she crapped on her self. |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2015 12:35 AM |
..... k
Mixtape Coming Out 2020! |
|
|
| Report Abuse |
|
|