Hello ! I was wondering how, in my script, I can get the value contained in the character, having the humanoid object.
function changeDefault(part)
if part.Parent:FindFirstChild("Humanoid").Parent.IsHuman then
local character = part.Parent:FindFirstChild("Humanoid")
changeSky:FireClient(game.Players:GetPlayerFromCharacter(character.Parent), "Default")
end
end
The error message is :
ServerScriptService.Regions:30: attempt to index nil with 'Parent'
