I’d like the clone just to appear as an After Image.(in the correct place)
As you can see after the first time the clones just get further and further away.
-
What solutions have you tried so far?
I tried setting Position and Cframe mutiple times no fruition so far ;-;
just to preface i dont have errors its just my position attempts and the way i went about positioning is flaw’d that would be an error wouldnt it. sorry (banter)
local function AfterImage(Character)
local AfterImage = {}
local AImodel = Instance.new("Model")
-- Character.Archivable = true
for I,Inst in pairs(Character:GetDescendants()) do
if Inst:IsA("Part") or Inst:IsA("MeshPart") or Inst:IsA("Accessory") then
Inst.Archivable = true
local Cloned_Inst = Inst:Clone()
Inst.Archivable = false
local tweenInfoFast = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
local tweenInfoSlow = TweenInfo.new(2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut)
if Inst.Parent:IsA("Accessory") then
if Cloned_Inst:FindFirstChild("ThumbnailConfiguration") then
Cloned_Inst.ThumbnailConfiguration:Destroy()
end
for I,Int in pairs(Cloned_Inst:GetDescendants()) do
if Int:IsA("TouchTransmitter") or Int:IsA("Attachment") or Int:IsA("Weld") or Int:IsA("StringValue") or Int:IsA("Vector3Value") then
Int:Destroy()
end
end
Cloned_Inst.CFrame = Inst.CFrame
Cloned_Inst.Material = Enum.Material.ForceField
Cloned_Inst.Color = Color3.new(1, 1, 0)
Cloned_Inst.Anchored = true
local Size = Cloned_Inst.Size
table.insert(tweensForAfterImage,TweenService:Create(Cloned_Inst,tweenInfoFast,{Transparency = 1, Size =Vector3.new(Size.X * 1.5,Size.Y * 1.5,Size.Z * 1.5), Color = Color3.new(1, 1, 1) }))
elseif not Inst:IsA("Accessory") then
Cloned_Inst.CanCollide = false
Cloned_Inst.Anchored = true
Cloned_Inst.CastShadow = false
Cloned_Inst.CanTouch = false
Cloned_Inst.CFrame = Inst.CFrame
Cloned_Inst.Position = Inst.Position
for I,Int in pairs(Cloned_Inst:GetDescendants()) do
if Int:IsA("Motor6D") or Int:IsA("Attachment") or Int:IsA("Weld") or Int:IsA("StringValue") or Int:IsA("Vector3Value") then
Int:Destroy()
end
end
if Cloned_Inst.Name == "Head" then
Cloned_Inst.face:Destroy()
end
Cloned_Inst.Material = Enum.Material.ForceField
Cloned_Inst.Color = Color3.new(1, 1, 0)
Cloned_Inst.Transparency = 0.5
table.insert(tweensForAfterImage,TweenService:Create(Cloned_Inst,tweenInfoFast,{Transparency = 1, Color = Color3.new(1, 1, 1)}))
end
Cloned_Inst.Parent = AImodel
table.insert(AfterImage,Cloned_Inst)
end
end
AImodel.PrimaryPart = AImodel.HumanoidRootPart --// Attempts at a solution
AImodel.Parent = Player_Visiuals --// Attempts ;c
AImodel.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame --// Attempts
table.insert(AfterImage,AImodel)
return AfterImage
end
local AfterImage = AfterImage(Character)