Greetings fellow humans,
So to cut it short what I'm trying to do is "continue a parent using a variable" (I realise those are the wrong terms)
I have put the following code in a script:
game.Players.PlayerAdded:Connect(function(player) --this whole function works fine
wait(1)
pcall(function()
local id = player.CharacterAppearanceId
local model = Instance.new("Model",game.ReplicatedStorage.collector)
model.Name = player.Name
local Models = game.Players:GetCharacterAppearanceAsync(id)
Models.Parent = model
wait()
for i,v in pairs(Models:GetChildren()) do
v.Parent = model
wait()
end
Models:Destroy()
end)
end)
game.Players.PlayerRemoving:Connect(function(player)
pcall(function()
game.ReplicatedStorage.collector ..player.Name --problem starts here
end)
end)
On "game.ReplicatedStorage.collector ..player.Name" i want ..player.Name to become the player name (which you probably already gathered)
I hope this doesn't sound too confusing.
Thanks in advance.

1 comment
Thanks! :D