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

How Do I Copy The Players Avatar and Teleport It?

Asked by 6 years ago

What I am trying to do is I have a camera for my loading screen which works and looks on a backdrop, I then want to clone the players avatar and teleport the cloned avatar in the backdrop. Sort of what Site Delta has: http://prntscr.com/m1novu

This is my current code for the cloning and teleporting part:

local Player = game.Players.LocalPlayer
local Name = Player.Name
local workspacemodel = workspace.Name

local replica = workspacemodel:Clone()
replica.Parent = workspacemodel.Parent
replica.Torso.Position = 385.09, 10.028, -198.253

I have tried to debug as many errors as I can in the Developer Console but I don't see any now.

Thank you for the help in advance.

0
change line 3 to Player.Character, you also need to add a line before line 5 that does workspacemodel.Archivable = true (Character is not archivable by default meaning you can't clone it) Vulkarin 581 — 6y
0
Ok, ill try that! Superameno 34 — 6y
0
Position is a Vector3 GoldAngelInDisguise 297 — 6y
0
I tried and also made sure to do .Position = Vector3.new but it's just teleporting my torso. Image: http://prntscr.com/m1o2iy Superameno 34 — 6y

1 answer

Log in to vote
0
Answered by 5 years ago

Try this in a script

local Players = game:GetService("Players")
local Player = Players:WaitForChild("Superameno")
local workspacemodel = Player.Character or Player.CharacterAdded:Wait()

game.PlayerAdded:Connect(function()
    workspacemodel.Archivable = true
    local replica = workspacemodel:Clone()
    replica.Parent = game.Workspace
    replica.UpperTorso.Position = 385.09, 10.028, -198.253
end)


Ad

Answer this question