Thank you for reading please tell me whats wrong
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function(key)
if key == "q" then
local torso = workspace:FindFirstChild(player.Name)
local part = game.ReplicatedStorage.Part:Clone()
part.Position = torso.UpperTorso
part.Parent = game.Workspace
end
end)

2 comments
change line 8 to [ part.Position = torso.UpperTorso.Position ], UpperTorso is an Instance, you need it's position.
Thank you so much! it worked!