Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i make a player into an object?

I'm trying to make a game like titan fall but what script can help me make the player a object or mesh?

2 comments

0

Mech? Mesh?

0

MECH! Like a robot and stuff

2 answers

✓ Accepted answer

Deleting the player's parts sets the player to watch where his dead invisible body was forever.

To counteract that, use a generic loop and set every part invisible plus deleting hats.

player = --find a way to refer to the player, do not use LocalPlayer

for i, v in ipairs(player:GetChildren()) do
	if v:IsA("Part") or v:IsA("MeshPart") then -- R15 and R6 friendly
		v.Transparency = 1
	elseif v:IsA("Accesory") then -- rip hats
		v:Destroy()
	end
end

If you want to set the mech and stuff just weld it to the player's invisible body parts.

To weld, there's a wiki page but the primary properties of the weld required to attach the mech is

C0 -- the part to attach aka the mech.

Part0 -- same as C0 but gathering the part's CFrame aka mech's CFrame.

C1 -- the part to attach to aka the player's body part such as a torso.

Part1 -- same as C1 but gathering the part's CFrame aka torso's CFrame.

1 comment

0

Would I be able to animate it after I connect the parts to the invisible parts

I dont actually know, but try doing something like

Mech= --Directory to Mech

game.Players.LocalPlayer.Character = Mech

-- or try

Mech= --Directory to Mech

Mech.Parent = game.Players.LocalPlayer.Character 

This discussion is preserved as it was. New answers, comments, and votes are closed.