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:

1local Player = game.Players.LocalPlayer
2local Name = Player.Name
3local workspacemodel = workspace.Name
4 
5local replica = workspacemodel:Clone()
6replica.Parent = workspacemodel.Parent
7replica.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 6 years ago

Try this in a script

01local Players = game:GetService("Players")
02local Player = Players:WaitForChild("Superameno")
03local workspacemodel = Player.Character or Player.CharacterAdded:Wait()
04 
05game.PlayerAdded:Connect(function()
06    workspacemodel.Archivable = true
07    local replica = workspacemodel:Clone()
08    replica.Parent = game.Workspace
09    replica.UpperTorso.Position = 385.09, 10.028, -198.253
10end)
Ad

Answer this question