function onclick()
	--finds spawn--
	local player = script.Parent.Parent.Parent.Parent.Character
	local playerPos = player.Torso.Position
	script.Parent.Pos.Value = playerPos
	local g = Instance.new("Part")
	g.Name = "Pad2"
	g.Size = Vector3.new(34.8, 1, 17.6)
	g.Parent = player
	g.Position = Vector3.new(script.Parent.Pos.Value)

	
	
	
end
script.Parent.MouseButton1Click:connect(onclick)

this is a script for a car buying button i am trying to get the car from replicated stroage and put it in workspace at the owner of the cars location. getting car from replicated storage and puting it in workspace that is done but positioning the car so it spawns where the owner/player is not working.