function OnPlayerAdded(Player)
	Player.CharacterAdded:connect(function(Char)
		local Jetpack = game.ServerStorage["Jetpack Model"]:Clone()
		Jetpack.Parent = game.Workspace
		
		local Base = Char:findFirstChild("Torso")
		print("Torso found")
		local Part = Jetpack:findFirstChild("HumanoidRootPart")
		print("Base of Jetpack found")
		
		local Weld = Instance.new("Weld", Jetpack.t)
		print("Weld Instanced into Base of Jetpack")
		Weld.Part0 = Base
		print("Weld Part0 set")
		Weld.Part1 = Part
		print("Weld Part1 set")
	end)
end

game.Players.PlayerAdded:connect(OnPlayerAdded)

if #game.Players:GetPlayers() > 0 then
	OnPlayerAdded(game.Players:GetPlayers()[1])
end

Everything is being **printed **fine, but the weld is not in Jetpack.t

Thread on Scripters sub forum ^

6 comments

0

I want to attach the Jetpack to the back of the Character's Torso.

0

HumanoidRootPart is a Part of the Jetpack. Its the Part I weld to the back of the Character.

0

Everything is welded together and unanchored.

0

Put the script in the Jetpack in Workspace

0

Fixed problem.