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

When I clone a character, why does it fall apart?

Asked by
poke7667 142
4 years ago
Edited 4 years ago

I'm working on replays for a game, and whenever I clone the character, it just falls apart. Every part in the character is constantly being tweened which confuses me with why none of the parts move

https://gyazo.com/33b5dcb8491fa5daba18c0b6800c6ecb

Code:

01-- The portion that records the CFrames for the replays to run off of
02rec = game:GetService("RunService").RenderStepped:Connect(function()
03    for i, v in pairs(game.Players:GetPlayers()) do
04        if v.Character then
05            if rep[v.Name] == nil then
06                rep[v.Name] = {}
07            end
08            for c, d in pairs(v.Character:GetDescendants()) do         
09                if d:IsA("BasePart") then
10                    rep[v.Name][d.Name] = {}
11                    rep[v.Name][d.Name][tick()] = d.CFrame
12                    if not rep[v.Name][d.Name].Object then
13                        rep[v.Name][d.Name].Object = d
14                        if not d.Archivable then
15                            d.Archivable = true
View all 65 lines...
0
Maybe you have to collide the clone and then uncollide after a few secs so the body doesnt fall apart? Normal_StikBot 0 — 4y

Answer this question