Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

how to fix character grey when spawn ?

Asked by 9 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

im using this and i guess it makes all characters grey my output: 13:44:29.780 - RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.

function GetItem(className,ID)
    if ID ~= 0 then
        Item = game:GetService("InsertService"):LoadAsset(ID):GetChildren()[1]
        if Item:IsA(className) then
            return Item
        else
            return false
        end
    else
        return 0
    end
end

function IsClass(item,className)
    if item then
        if item:IsA(className) then
            return true
        else
            return false
        end
    end
end
1
Follow what the output says. Use Game:GetService('HttpService'):JSONDecode() instead of RbxUtility.DecodeJSON. FearMeIAmLag 1161 — 9y
0
what is that ? Layfonex 0 — 9y
0
Look up HttpService on the Wiki. FearMeIAmLag 1161 — 9y

Answer this question