i dont have filtering enabled just to be clear.
https://gyazo.com/f46704dcb68f31fb353b09c5edcb23f0
local Player = game.Players.LocalPlayer
local Character = Player.Character
local backpack = Player.Backpack
local userinput = game:GetService("UserInputService")
shift = game.Lighting["Armored Titan"]
userinput.InputBegan:connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
print("heck")
local myChar = shift:Clone()
myChar.Name = shift.Name
local initPos = Character.Torso.CFrame
myChar:MoveTo(Character.Torso.Position)
backpack = Player:FindFirstChild("Backpack")
if backpack then
local backpackChildren = backpack:GetChildren()
for i = 1, #backpackChildren do
if backpackChildren[i]:IsA("Tool") then
local items = {}
table.insert(items, backpackChildren[i])
end
end
end
Player.Character = myChar
Character = myChar
Character.Parent = game.Workspace
Character.Humanoid = Character:FindFirstChild("Humanoid")
Character.Torso = Character.Torso:FindFirstChild("Torso")
Character["Right Arm"] = Character:FindFirstChild("Right Arm")
end```
end)

3 comments
i dont know why these lines of code are so messed up.
Put the code inside a code block. To make the code block, click the blue Lua icon which will insert two lines of "~~~". Place the code in between these lines.
Lighting should NOT be used as storage.