Attempt To index nil with clone! Please help? I need to fix this error. [closed]
Please do not repost your question after it has been closed.
This is my code right here. I have no idea if it's an easy fix or not.
01 | function commands.invisible(sender, args) |
02 | local playerinvis = args [ 1 ] |
03 | if playerinvis = = "me" then |
04 | local character = sender.Character |
05 | local characterClone = character:Clone() |
06 | characterClone.Name = tostring (sender.Name).. "'s Character" |
07 | characterClone.Parent = ServerS |
08 | local children = character:GetChildren() |
09 | for _, child in pairs (children) do |
10 | if child:IsA( "MeshPart" ) or child:IsA( "Part" ) then |
11 | child.Transparency = 1 |
12 | elseif child:IsA( "Accessory" ) then |
Marked as Duplicate by youtubemasterWOW
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?