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

On player touch, change player package script (R6) Not working can anyone help?

Asked by 5 years ago

So I'm not exactly sure what's wrong with the script. But when upon touching the part that contains this script, it does absolutely nothing and also returns no errors in output... I'm fairly beginner level and do not understand what's not working here or how to fix it. I also know that "Package URL" string is there. Changing that does not fix whatever issue there is here.

local model = game:GetService("InsertService"):LoadAsset("Package URL")

script.Parent.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
            for _, child in pairs(model:GetChildren()) do
                player:LoadCharacterAppearance(child)
       end  
   end
end
0
Do you want to change player animations or player body parts? Voxozor 162 — 5y
0
Player body parts donovanKent 0 — 5y

Answer this question