hello everybody so I figured out how to weld a normal part with script but I can't say the same for a model though.... here is what I have (barely changed)

game.Players.PlayerAdded:Connect(function(player)
	game.Workspace:WaitForChild(player.Name)
	local bob = game.Workspace:FindFirstChild(player.Name)
	local root = bob.LowerTorso
	local it = game.Workspace.range:Clone()
	it.Name = "block"
	local weld = Instance.new("Weld")
	weld.Part0 = root
	
	weld.Part1 = it
	weld.C1 = it.CFrame:inverse()
	weld.Parent = it
	it.Anchored = false
	it.CanCollide = false
	it.Position = Vector3.new(root.Position.X, root.Position.Y -2, root.Position.Z)
	it.Size = Vector3.new(it.Size.X, it.Size.Y, it.Size.Z)
	
	
	
end)
	

1 comment

0

that it.Size part was kind of unnecisary but I left it there after testing something else.