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

How Do I Put a Package on a Player When They Enter the Game?

Asked by 10 years ago

What I am trying to do is, when a player enters they're normal package is replaced with a different package. I have tried in a few different ways, and I don't think I'm doing right or even using the correct method. If someone could help me that would be amazing.

0
I still need help. For some reason that script isn't working. lordgarmadon36 0 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

You could try an auto morph script such as this one.Insert it into the spawnpoint. Then insert the script and finally ainsert a package and hat into the script.

script.Parent.Touched:connect(function(hit) if hit.Parent == nil then return end if (hit.Parent:findFirstChild("Humanoid") == nil) then return end local human = hit.Parent:findFirstChild("Humanoid") local char = hit.Parent local player = game.Players:GetPlayerFromCharacter(hit.Parent) if (human ~= nil) and debounce == false then debounce = true originals = char:getChildren() for w = 1, #originals do if originals[w].className == "CharacterMesh" then originals[w]:remove() end end meshes = script:getChildren() for y = 1, #meshes do copy = meshes[y]:clone() copy.Parent = char end end wait(1) debounce = false end) game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(char) wait(1) originals = char:getChildren() for w = 1, #originals do if originals[w].className == "CharacterMesh" then originals[w]:remove() end end meshes = script:getChildren() for y = 1, #meshes do copy = meshes[y]:clone() copy.Parent = char end end) end)

Ad

Answer this question