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

Why isnt this model appearing to other players?

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

0

i dont know why these lines of code are so messed up.

0

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.

0

Lighting should NOT be used as storage.

1 answer

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